/* Relatórios — Figma E14F3B4 node 1:2 / 2:28 */
:root {
    --page-bg: #fff8eb;
    --panel-bg: #fff3da;
    --card-bg: #fff8ea;
    --title-color: #9c6e0b;
    --label-color: #5e450e;
    --intro-color: #866a2d;
    --body-text: #000000;
    --input-bg: #ffffff;
    --input-border: rgba(0, 0, 0, 0.28);
    --input-placeholder: #5e450e;
    --input-text: #5e450e;
    --title-bar: linear-gradient(90deg, #eb9847 0%, #d3930a 100%);
    --cta: linear-gradient(90deg, #b36214 0%, #1aa9a5 100%);
    --error: #d93025;
    --success: #2f6f5e;
    --radius: 10px;
    --font-ui: 'Raleway', 'Inter', sans-serif;
    --font-eyebrow: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    background: var(--page-bg);
    color: var(--label-color);
    overflow-x: hidden;
    position: relative;
}

html:has(.capture-page),
body.capture-page {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-padding-bottom: 48px;
}

.capture-page {
    display: block;
    padding: 0;
    min-height: var(--app-height, 100dvh);
    height: auto;
    max-height: none;
    overflow: visible;
}

.page-shell {
    width: 100%;
    min-height: var(--app-height, 100dvh);
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 880fr) minmax(0, 1040fr);
    position: relative;
    z-index: 2;
}

.brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(24px, 5vh, 72px) 32px;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.logo {
    width: min(320px, 28vh, 72%);
    height: auto;
    margin-bottom: clamp(10px, 1.8vh, 22px);
    position: relative;
    z-index: 2;
}

.brand-panel .brand-gift {
    margin: 0 0 clamp(8px, 1.4vh, 16px);
    color: #000;
    text-transform: uppercase;
    font-family: var(--font-eyebrow);
    font-weight: 500;
    font-size: clamp(14px, 1.8vw, 22px);
    letter-spacing: 0.22em;
    line-height: 1.2;
}

.brand-panel h1 {
    margin: 0;
    color: var(--title-color);
    text-transform: uppercase;
    font-family: var(--font-ui);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.03em;
    font-size: clamp(20px, 2vw, 30px);
    max-width: 532px;
}

.brand-panel > p {
    margin: clamp(10px, 1.8vh, 20px) 0 0;
    color: #000;
    font-family: var(--font-eyebrow);
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 20px);
    line-height: 1.35;
    text-align: center;
    max-width: 500px;
}

.form-panel {
    width: 100%;
    background: var(--panel-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(36px, 5vh, 56px) 32px;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.form-card {
    background: var(--card-bg);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 15.1px rgba(0, 0, 0, 0.06);
    padding: clamp(28px, 3.5vh, 40px) clamp(20px, 2.4vw, 36px) clamp(16px, 2vh, 24px);
    overflow: visible;
    position: relative;
    z-index: 2;
    width: min(735px, 100%);
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
}

.form-card-title {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: min(556px, 86%);
    padding: 10px 14px;
    background: var(--title-bar);
    color: #ffffff;
    text-transform: uppercase;
    font-family: var(--font-eyebrow);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-align: center;
    line-height: 1.2;
    border-radius: 10px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.form-card-intro {
    margin: 8px 0 14px;
    color: var(--intro-color);
    font-size: clamp(16px, 1.8vw, 22px);
    font-style: italic;
    font-weight: 400;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.03em;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    align-items: start;
}

.form-grid__full {
    grid-column: 1 / -1;
}

#full-form-fields {
    margin-top: 10px;
}

#full-form-fields[hidden] {
    display: none;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-width: 0;
}

.input-group > label,
.input-group .field-label {
    margin-bottom: 4px;
    color: var(--label-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    min-height: 2.6em;
}

.input-group:has(input[required]:not([type="radio"])) > label::after,
.input-group:has(input[required][type="radio"]) > .field-label::after {
    content: " *";
}

.input-group .label-optional {
    color: var(--label-color);
    font-weight: 400;
}

.input-group input:not([type="radio"]) {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    min-height: 44px;
    height: 44px;
    padding: 8px 14px;
    font-size: 16px;
    color: var(--input-text);
    font-family: var(--font-ui);
}

.input-group input::placeholder {
    color: var(--input-placeholder);
    opacity: 0.85;
}

.input-group input:not([type="radio"]):focus {
    outline: none;
    border-color: #d3930a;
    box-shadow: 0 0 0 3px rgba(211, 147, 10, 0.18);
}

.input-group .input-help {
    display: none;
}

.input-group .iti {
    width: 100%;
}

.input-group .iti__tel-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    min-height: 44px;
    height: 44px;
    padding: 8px 14px 8px 90px;
    font-size: 16px;
    color: var(--input-text);
    font-family: var(--font-ui);
}

.input-group .iti__tel-input:focus {
    outline: none;
    border-color: #d3930a;
    box-shadow: 0 0 0 3px rgba(211, 147, 10, 0.18);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.gender-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.gender-option {
    margin: 0;
    cursor: pointer;
    text-transform: none;
}

.gender-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.gender-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: 44px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-ui);
}

.gender-option input:checked + span {
    border-color: #d3930a;
    background: rgba(235, 152, 71, 0.16);
    box-shadow: 0 0 0 3px rgba(211, 147, 10, 0.12);
}

.gender-option input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(211, 147, 10, 0.28);
}

.path-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.path-switch-btn {
    min-height: 40px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-ui);
    cursor: pointer;
    padding: 6px 8px;
}

.path-switch-btn.is-active {
    border-color: #d3930a;
    background: rgba(235, 152, 71, 0.16);
    box-shadow: 0 0 0 3px rgba(211, 147, 10, 0.12);
}

.path-hint {
    margin: 0 0 10px;
    color: var(--label-color);
    font-size: 13px;
    line-height: 1.35;
}

.cta-button {
    width: 100%;
    min-height: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--cta);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 16px;
}

.cta-button:hover {
    filter: brightness(1.04);
}

.cta-button:active {
    transform: scale(0.995);
}

.cta-button:disabled {
    filter: grayscale(0.25);
    cursor: not-allowed;
}

.privacy-note {
    margin: 10px 0 0;
    color: var(--label-color);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: center;
}

.spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
    animation: spin 1s linear infinite;
}

.cta-button.loading .button-text {
    opacity: 0;
}

.cta-button.loading .spinner {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.error-message,
.success-message {
    display: none;
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.35;
}

.error-message {
    color: var(--error);
}

.success-message {
    color: var(--success);
}

.figma-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.figma-deco--form {
    z-index: 1;
}

.brand-panel > :not(.figma-deco) {
    position: relative;
    z-index: 2;
}

.figma-deco__circle {
    position: absolute;
    object-fit: cover;
    object-position: center;
    display: block;
}

.figma-deco__tl-lg {
    width: 357px;
    height: 357px;
    top: -121px;
    left: -150px;
}

.figma-deco__tl-sm {
    width: 288px;
    height: 288px;
    top: -166px;
    left: 70px;
}

.figma-deco__br-lg {
    width: 357px;
    height: 357px;
    right: 104px;
    bottom: -171px;
}

.figma-deco__br-sm {
    width: 288px;
    height: 288px;
    right: -47px;
    bottom: -216px;
}

.mobile-only {
    display: none;
}

#loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.loading-box {
    text-align: center;
    color: #ffffff;
}

.loading-box .spinner {
    position: static;
    width: 52px;
    height: 52px;
    opacity: 1;
    transform: none;
    margin: 0 auto 18px;
    border-width: 4px;
}

#loading-status {
    margin: 0;
    font-size: 24px;
    color: #f8f8f8;
}

.styled-alert-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.styled-alert-backdrop.show {
    display: flex;
}

.styled-alert-box {
    width: min(420px, 100%);
    background: var(--card-bg);
    border: 0;
    border-radius: 18px;
    padding: 22px 20px 18px;
    text-align: center;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
    color: var(--label-color);
}

.styled-alert-box h3 {
    margin: 0 0 8px;
    color: var(--title-color);
    font-size: 22px;
}

.styled-alert-box p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.45;
}

.styled-alert-button {
    border: 0;
    border-radius: 20px;
    min-height: 42px;
    min-width: 120px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    background: var(--cta);
}

.styled-alert-button:hover {
    filter: brightness(1.04);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .page-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(min-content, 1fr);
        min-height: var(--app-height, 100dvh);
        height: auto;
        overflow: visible;
    }

    .brand-panel {
        padding: 20px 20px 8px;
        justify-content: flex-end;
    }

    .logo {
        width: min(160px, 28vw);
        margin-bottom: 6px;
    }

    .brand-panel .brand-gift {
        font-size: 13px;
        margin-bottom: 4px;
        letter-spacing: 0.18em;
    }

    .brand-panel h1 {
        font-size: 18px;
        line-height: 1.25;
    }

    .brand-panel > p {
        margin-top: 6px;
        font-size: 13px;
        max-width: 420px;
    }

    .form-panel {
        padding: 24px 16px 16px;
        align-items: center;
    }

    .figma-deco--brand,
    .figma-deco__tl-lg,
    .figma-deco__tl-sm {
        display: none;
    }

    .figma-deco__br-lg {
        width: 357px;
        height: 357px;
        left: -149px;
        right: auto;
        bottom: -138px;
    }

    .figma-deco__br-sm {
        width: 240px;
        height: 240px;
        left: 122px;
        right: auto;
        bottom: -54px;
    }
}

@media (max-width: 700px) {
    .figma-deco--brand,
    .figma-deco__tl-lg,
    .figma-deco__tl-sm {
        display: none;
    }

    .figma-deco__br-lg {
        width: calc(357 / 700 * 100vw);
        height: calc(357 / 700 * 100vw);
        left: calc(-149 / 700 * 100vw);
        bottom: calc(-138 / 700 * 100vw);
    }

    .figma-deco__br-sm {
        width: calc(240 / 700 * 100vw);
        height: calc(240 / 700 * 100vw);
        left: calc(122 / 700 * 100vw);
        bottom: calc(-54 / 700 * 100vw);
    }
}

@media (max-width: 640px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .form-card {
        padding: 28px 16px 14px;
    }

    .form-card-title {
        width: min(485px, 92%);
        font-size: 13px;
        letter-spacing: 0.16em;
        padding: 8px 10px;
        top: -16px;
    }

    .form-card-intro {
        font-size: 16px;
        margin: 4px 0 10px;
    }

    .form-grid {
        gap: 8px 10px;
        grid-template-columns: 1fr;
    }

    .input-group > label,
    .input-group .field-label {
        font-size: 13px;
        min-height: 0;
    }

    .input-group input:not([type="radio"]),
    .input-group .iti__tel-input,
    .gender-option span {
        min-height: 44px;
        height: 44px;
        font-size: 16px;
    }

    .cta-button {
        min-height: 44px;
        height: 44px;
        font-size: 13px;
        margin-top: 10px;
    }

    .privacy-note {
        font-size: 11px;
        margin-top: 8px;
    }
}

html.is-zoomed .brand-panel {
    padding: 16px 16px 8px;
}

html.is-zoomed .logo {
    width: min(140px, 26vw, 22vh);
    margin-bottom: 6px;
}

html.is-zoomed .brand-panel .brand-gift {
    font-size: 13px;
    margin-bottom: 4px;
}

html.is-zoomed .brand-panel h1 {
    font-size: clamp(16px, 2.4vw, 22px);
}

html.is-zoomed .brand-panel > p {
    margin-top: 6px;
    font-size: 13px;
}

html.is-zoomed .form-panel {
    padding: 16px 16px 28px;
}

html.is-zoomed .form-card {
    padding: 24px 16px 16px;
}

html.is-zoomed .form-grid {
    grid-template-columns: 1fr;
}

html.is-pinch-zoomed,
html.is-pinch-zoomed body.capture-page,
html.is-pinch-zoomed .capture-page,
html.is-pinch-zoomed .page-shell {
    overflow: visible;
}

html.is-keyboard-open .brand-panel {
    padding-top: 8px;
    padding-bottom: 0;
}

html.is-keyboard-open .brand-panel > p,
html.is-keyboard-open .logo {
    display: none;
}

.pac-container {
    z-index: 10000;
}

input[type="date"],
input[type="time"] {
    min-width: 0;
}

@media (max-height: 760px) {
    .brand-panel {
        padding: 16px 16px 8px;
    }

    .logo {
        width: min(140px, 24vw, 18vh);
        margin-bottom: 6px;
    }

    .form-panel {
        padding: 16px 16px 28px;
    }
}

/* Página de confirmação pós-Calendly */
.confirmacao-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.confirmacao-card {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    background: var(--card-bg);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 15.1px rgba(0, 0, 0, 0.06);
    padding: 40px 36px 36px;
    text-align: center;
}

.confirmacao-logo {
    width: min(180px, 70%);
    margin-bottom: 12px;
}

.confirmacao-card .brand-gift {
    margin: 0 0 12px;
    color: var(--title-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
}

.confirmacao-card h1 {
    margin: 0;
    color: var(--title-color);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0;
}

.confirmacao-texto {
    margin: 20px 0 0;
    color: var(--label-color);
    font-size: 16px;
    line-height: 1.5;
}

.confirmacao-erro {
    color: var(--error);
}
