/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #E8734A;
    --orange-hover: #d4623b;
    --green: #4CAF50;
    --bg-dark: #0D0D0D;
    --bg-card: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #707070;
    --border: #2A2A2A;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== FORM PAGE ===== */
.form-page {
    min-height: calc(100vh - 80px);
    padding: 48px 0 60px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Radial glow background */
.form-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(232, 115, 74, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.form-page .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ===== BRAND LINK ===== */
.brand-link {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 40px;
    transition: color 0.3s;
}

.brand-link:hover {
    color: var(--orange);
}

/* ===== FORM HEADER ===== */
.form-header {
    text-align: center;
    margin-bottom: 36px;
}

.accent-bar {
    width: 48px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.form-header h1 {
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== FORM ===== */
.qualify-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 80px rgba(232, 115, 74, 0.03);
}

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

.form-group {
    margin-bottom: 24px;
}

.form-group > label:first-child {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 115, 74, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23707070' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* ===== RADIO BUTTONS ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-size: 14px;
    color: var(--text-secondary);
}

.radio-option:hover {
    border-color: #444;
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--orange);
}

.radio-option input[type="radio"]:checked::after {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-option:has(input:checked) {
    border-color: var(--orange);
    background: rgba(232, 115, 74, 0.05);
    box-shadow: 0 0 0 3px rgba(232, 115, 74, 0.06);
}

.radio-option:has(input:checked) span {
    color: var(--text-primary);
}

/* ===== CTA BUTTON ===== */
.cta-button {
    display: inline-block;
    background: var(--orange);
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 52px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(232, 115, 74, 0.3);
    letter-spacing: 0.01em;
}

.cta-button:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 115, 74, 0.4);
}

.submit-btn {
    width: 100%;
    margin-top: 8px;
    font-size: 18px;
    padding: 18px;
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(232, 115, 74, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(232, 115, 74, 0.5); }
}

/* ===== FOOTER ===== */
footer {
    padding: 32px 0;
    text-align: center;
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== THANK YOU PAGES ===== */
.thank-you {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 60px 24px 40px;
    position: relative;
}

.thank-you::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(232, 115, 74, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.thank-you-content {
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.thank-you-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.thank-you h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.thank-you p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.thank-you .cta-button {
    margin-top: 24px;
}

/* ===== CALENDAR EMBED (Qualified Thank-You) ===== */
.calendar-embed {
    width: 100%;
    max-width: 700px;
    margin: 32px auto 0;
    position: relative;
    z-index: 1;
}

.calendar-embed iframe {
    border-radius: 12px;
    background: var(--bg-card);
}

/* ===== EMBEDDED (iframe) MODE ===== */
html.embedded body {
    background: transparent;
}

html.embedded .form-page {
    min-height: 0;
    padding: 12px 0 0;
}

html.embedded .form-page::before {
    display: none;
}

html.embedded .brand-link {
    display: none;
}

html.embedded .form-header {
    display: none;
}

html.embedded footer {
    display: none;
}

html.embedded .qualify-form {
    border-radius: 20px;
    border: none;
    box-shadow: none;
}

html.embedded .container {
    padding: 0 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-page {
        padding: 32px 0 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .qualify-form {
        padding: 28px 20px;
    }

    .form-header h1 {
        font-size: 28px;
    }
}
