/* =========================================================================
   Base Styles & Reset - Steve Keen Brand Theme
   ========================================================================= */
:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-meta: #64748b;
    --primary-btn: #0f172a;
    --primary-btn-hover: #000000;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    background: linear-gradient(to bottom, #e2e8f0 0%, #94a3b8 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================================
   Page Layout - Above the Fold Centered
   ========================================================================= */
.page-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header {
    text-align: center;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 70px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-image {
        height: 90px;
    }
}

.page-headline {
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 800;
    font-family: var(--font-heading);
    text-align: center;
    line-height: 1.3;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-headline {
        font-size: 1.85rem;
    }
}

/* Media Inquiry Link */
.media-inquiry-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0.75rem 0;
    background: none;
    border: none;
    font-family: inherit;
}

.media-inquiry-link:hover {
    color: #7c3aed;
}

.media-inquiry-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* iClosed Embed Container */
.iclosed-embed-container {
    width: 100%;
    flex-grow: 1;
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.08);
}

.iclosed-embed-container iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
}

@media (min-width: 768px) {
    .iclosed-embed-container {
        min-height: 650px;
    }
    .iclosed-embed-container iframe {
        min-height: 650px;
    }
}

/* =========================================================================
   Footer (Disclaimer text)
   ========================================================================= */
.page-footer {
    text-align: center;
    padding: 2rem 1rem 4rem 1rem;
    color: var(--text-meta);
    font-size: 0.75rem;
    flex-shrink: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================================================
   Modal Styles (verbatim from router)
   ========================================================================= */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    border: none;
    background: transparent;
    color: var(--text-secondary);
}

.modal-title {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

/* =========================================================================
   Multi-Step Media Form CSS (verbatim from router)
   ========================================================================= */

/* Progress Bar */
.modal-progress-container {
    width: 100%;
    height: 16px;
    background-color: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    display: none;
}

.modal-progress-bar {
    height: 100%;
    background: var(--primary-btn);
    width: 0%;
    transition: width 0.4s ease-out;
    border-radius: 0 8px 8px 0;
}

/* Step Container */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

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

/* Input Fields */
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-btn);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

.form-label {
    display: block;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    line-height: 1.3;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Next / Continue Button */
.step-next-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 1.25rem;
    background: var(--primary-btn);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.step-next-btn:hover {
    background: #FFFC9B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-next-btn .main-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    transition: color 0.2s;
}

.step-next-btn .sub-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    transition: color 0.2s;
}

.step-next-btn:hover .main-text,
.step-next-btn:hover .sub-text {
    color: var(--primary-btn);
}

/* 1-Click Option Buttons */
.one-click-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.one-click-btn:hover {
    background-color: #FFFC9B;
    color: #0f172a;
    border-color: #FFFC9B;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.one-click-btn svg {
    margin-right: 1rem;
    color: #64748b;
    width: 20px;
    height: 20px;
    transition: color 0.2s;
}

.one-click-btn:hover svg {
    color: #0f172a;
}

/* Back button */
.step-back-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.step-back-btn:hover {
    color: var(--primary-btn);
}

/* Spinner Overlay inside Modal */
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-btn);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.spinner-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* Success Container */
.success-container {
    text-align: center;
    display: none;
    padding: 1rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.success-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* iClosed iframe embed container (inside modal) */
.embed-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
