/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Survey Card */
.survey-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

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

.survey-card h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
}

.email-display {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.email-display strong {
    color: #667eea;
    font-weight: 600;
}

.intro-text {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

/* Form Styles */
.survey-form {
    margin-top: 20px;
}

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

.question {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

/* Radio Options */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.radio-option input[type="radio"]:checked + .radio-label {
    font-weight: 600;
    color: #667eea;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* Success Page */
.success-card {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Error Page */
.error-card {
    text-align: center;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
}

.error-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .survey-card {
        padding: 30px 20px;
    }
    
    .survey-card h1 {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* File Input Styling */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 12px;
}

input[type="file"]::file-selector-button:hover {
    background: #5568d3;
}

/* Marketing Homepage */
.marketing-site {
    background: #f6f8fb;
    color: #182033;
    padding: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e3e8f0;
    backdrop-filter: blur(16px);
}

.site-nav,
.hero-section,
.content-section,
.split-section,
.site-footer {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.nav-actions,
.hero-actions,
.trust-row,
.footer-links {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    color: #182033;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #17213a;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0;
}

.nav-actions {
    gap: 22px;
}

.nav-actions a,
.footer-links a {
    color: #526174;
    font-weight: 700;
    text-decoration: none;
}

.nav-actions a:hover,
.footer-links a:hover {
    color: #1d4ed8;
}

.nav-button {
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.hero-section {
    min-height: 680px;
    padding: 72px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 54px;
}

.hero-copy h1,
.section-heading h2,
.split-section h2 {
    letter-spacing: 0;
    line-height: 1.04;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 12px 0 20px;
    color: #111827;
    font-size: clamp(42px, 6vw, 74px);
}

.eyebrow {
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-text {
    max-width: 640px;
    color: #526174;
    font-size: 20px;
    line-height: 1.7;
}

.hero-actions {
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-ghost {
    background: #fff;
    color: #17213a;
    border: 1px solid #cbd5e1;
}

.trust-row {
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.trust-row span {
    padding: 8px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #fff;
    color: #5b6778;
    font-size: 13px;
    font-weight: 700;
}

.hero-panel,
.service-card,
.process-card {
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(22, 32, 58, 0.08);
}

.hero-panel {
    padding: 24px;
}

.panel-topline,
.metric-card,
.metric-grid,
.status-list {
    border-radius: 8px;
}

.panel-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: #17213a;
    color: #fff;
}

.panel-topline span,
.metric-card span,
.metric-grid span {
    color: #8a97aa;
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.panel-topline span {
    color: #b8c2d4;
}

.metric-card {
    margin-top: 18px;
    padding: 22px;
    background: #eff6ff;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    color: #1d4ed8;
    font-size: 30px;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.metric-grid div {
    padding: 18px;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
}

.metric-grid strong {
    display: block;
    margin-top: 8px;
    color: #17213a;
}

.status-list {
    margin-top: 16px;
    padding: 18px;
    background: #f8fafc;
}

.status-list p {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #4b5563;
    font-weight: 700;
    margin-bottom: 12px;
}

.status-list p:last-child {
    margin-bottom: 0;
}

.status-list span {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: #22c55e;
    flex: 0 0 auto;
}

.content-section,
.split-section {
    padding: 78px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2,
.split-section h2 {
    margin: 10px 0 14px;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
}

.section-heading p,
.split-section p,
.service-card p,
.process-card li {
    color: #526174;
    font-size: 17px;
    line-height: 1.7;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-height: 190px;
    padding: 26px;
}

.service-card h3,
.process-card h3 {
    margin-bottom: 12px;
    color: #111827;
    font-size: 21px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 46px;
    align-items: start;
}

.check-list {
    margin-top: 24px;
    padding-left: 22px;
    color: #364152;
    line-height: 1.9;
    font-weight: 700;
}

.process-card {
    padding: 28px;
}

.process-card ol {
    margin: 18px 0 24px 22px;
}

.compact-section {
    padding-top: 44px;
}

.site-footer {
    padding: 34px 0 44px;
    border-top: 1px solid #dfe6ef;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.site-footer strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 20px;
}

.site-footer p {
    color: #637083;
}

.footer-links {
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 920px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero-section,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        padding-top: 48px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-nav,
    .hero-section,
    .content-section,
    .split-section,
    .site-footer {
        width: min(100% - 24px, 1160px);
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-text {
        font-size: 18px;
    }

    .metric-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
    }
}
