/* pedir-servico.css — Flow minimalista para solicitar serviço */

body.page-request {
    margin: 0;
    min-height: 100svh;
    background: var(--bg, #07030d);
    color: #ffffff;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.page-request::before { display: none; }

.request-flow,
.request-flow *,
.request-flow *::before,
.request-flow *::after {
    box-sizing: border-box;
}

/* Container */
.request-flow {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.request-flow__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 16px;
    position: sticky;
    top: 0;
    background: var(--bg, #07030d);
    z-index: 10;
}

.request-flow__back,
.request-flow__close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted, #9b89b0);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin: -8px;
}
.request-flow__back:hover,
.request-flow__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.request-flow__back .material-symbols-rounded,
.request-flow__close .material-symbols-rounded {
    font-size: 1.4rem;
}

.request-flow__progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}

.request-flow__progress-fill {
    height: 100%;
    width: 25%;
    background: var(--accent, #8a05be);
    border-radius: 99px;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Panels */
.request-flow__container {
    flex: 1;
    padding: 24px 24px 120px;
}

.request-panel {
    display: none;
    animation: reqSlideIn 0.35s ease forwards;
}

.request-panel--active { display: block; }

@keyframes reqSlideIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.request-panel__title {
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.request-panel__subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted, #9b89b0);
    margin: 0 0 32px;
}

/* Fields */
.request-field { margin-bottom: 24px; }
.request-field--main { margin-top: 40px; margin-bottom: 36px; }
.request-field--margin-top { margin-top: 28px; }

.request-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted, #9b89b0);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Inputs */
.request-input--giant {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.2s;
}
.request-input--giant:focus { border-color: var(--accent, #8a05be); }
.request-input--giant::placeholder { color: rgba(255, 255, 255, 0.2); font-weight: 500; }

.request-input--standard {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.request-input--standard:focus {
    border-color: var(--accent, #8a05be);
    background: rgba(255, 255, 255, 0.05);
}
.request-input--standard::placeholder { color: rgba(255, 255, 255, 0.3); }

.request-input--textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.5;
}

/* Choices */
.request-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.request-choice-list--vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.request-choice {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted, #9b89b0);
    padding: 10px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.request-choice:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.request-choice.is-active {
    background: rgba(138, 5, 190, 0.15);
    border-color: var(--accent, #8a05be);
    color: #fff;
}

.request-choice-list--vertical .request-choice {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 14px;
    padding: 22px 18px;
    font-size: 1rem;
    min-height: 96px;
}
.request-choice-list--vertical .request-choice.is-active {
    border-color: var(--accent, #8a05be);
    background: rgba(138, 5, 190, 0.08);
}

.choice-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
    color: #fff;
}

.choice-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted, #9b89b0);
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

/* Summary */
.request-summary {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}

.request-summary__row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.request-summary__row span:first-child {
    font-size: 0.78rem;
    color: var(--text-muted, #9b89b0);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}
.request-summary__row span:last-child {
    font-size: 1rem;
    font-weight: 600;
}

/* Footer */
.request-flow__footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    padding: 16px 24px 24px;
    background: var(--bg, #07030d);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.request-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 22px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}
.request-btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

.request-main-btn {
    background: var(--accent, #8a05be);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    width: 100%;
}
.request-main-btn:hover { background: #7504a8; transform: translateY(-1px); }
.request-main-btn:disabled {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

.request-main-btn__label { text-align: center; }

/* Toast */
.request-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 3, 13, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: reqToastIn 0.25s ease;
    text-align: center;
    max-width: calc(100% - 48px);
}

@keyframes reqToastIn {
    from { opacity: 0; transform: translate(-50%, -12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* IBGE Autocomplete dropdown */
.ibge-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(12, 6, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
}
.ibge-dropdown__item {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.12s;
}
.ibge-dropdown__item:hover,
.ibge-dropdown__item--active {
    background: rgba(138, 5, 190, 0.15);
    color: #fff;
}
.ibge-dropdown__item + .ibge-dropdown__item {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.request-fade-group {
    animation: reqSlideIn 0.3s ease forwards;
}

@media (max-width: 600px) {
    .request-panel__title { font-size: 1.6rem; }
    .request-input--giant { font-size: 1.3rem; }
}

/* Toast (shared by pedir-servico & solicitar-orcamento) */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 3, 13, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    text-align: center;
    max-width: calc(100% - 48px);
    animation: reqToastIn 0.25s ease;
}

/* Duplicate-request inline warning */
.request-duplicate-warn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #fbbf24;
    line-height: 1.45;
}
.request-duplicate-warn .material-symbols-rounded {
    font-size: 20px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .request-flow { max-width: 680px; }
    .request-flow__container { padding: 40px 32px 120px; }
    .request-panel__title { font-size: 2.4rem; }
    .request-input--giant { font-size: 1.8rem; }

    .request-flow__footer {
        max-width: 680px;
    }
}

/* ── Solicitar-prestador: Payment Type Selection ── */
.sp-payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.sp-pay-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface, #0f0819);
    border: 1.5px solid var(--border, #2a1c3d);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color 160ms, background 160ms;
    text-align: left;
    color: inherit;
    font-family: inherit;
}

.sp-pay-option:hover {
    border-color: var(--border-hover, #3b2a55);
}

.sp-pay-option--active {
    border-color: var(--accent, #8a05be);
    background: rgba(138, 5, 190, 0.06);
}

.sp-pay-option__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(138, 5, 190, 0.1);
    flex-shrink: 0;
}

.sp-pay-option__icon span {
    font-size: 24px;
    color: var(--accent, #8a05be);
}

.sp-pay-option__text {
    flex: 1;
    min-width: 0;
}

.sp-pay-option__text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #f5f0ff;
    margin-bottom: 4px;
}

.sp-pay-option__text p {
    font-size: 0.85rem;
    color: var(--text-muted, #6d6487);
    line-height: 1.4;
    margin: 0;
}

/* ── Milestones ── */
.sp-milestone-item {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.sp-milestone-item .sp-ms-title {
    flex: 2;
}

.sp-milestone-item .sp-ms-amount {
    flex: 1;
    max-width: 110px;
}

.sp-ms-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: #ef4444;
    cursor: pointer;
    border-radius: 8px;
    transition: background 160ms;
    flex-shrink: 0;
}

.sp-ms-remove:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
}

.sp-ms-remove:disabled {
    color: var(--text-muted, #6d6487);
    cursor: default;
}

.sp-ms-remove .material-symbols-rounded {
    font-size: 20px;
}

.sp-btn-add-ms {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px dashed var(--border, #2a1c3d);
    border-radius: 10px;
    color: var(--accent, #8a05be);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 16px;
    cursor: pointer;
    margin-top: 4px;
    transition: border-color 160ms;
    width: 100%;
    justify-content: center;
}

.sp-btn-add-ms:hover {
    border-color: var(--accent, #8a05be);
}

.sp-btn-add-ms .material-symbols-rounded {
    font-size: 18px;
}

/* ── Proposal Hint ── */
.sp-proposal-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(138, 5, 190, 0.06);
    border: 1px solid rgba(138, 5, 190, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-muted, #a99fc4);
    line-height: 1.45;
}

.sp-proposal-hint .material-symbols-rounded {
    font-size: 18px;
    color: var(--accent, #8a05be);
    flex-shrink: 0;
    margin-top: 1px;
}
