/* LADDERS FORM STYLES */
/* Motion-first, gravity-driven design */

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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --red: #ff0000;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-micro: #999999;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==== ENTRY TRANSITION ==== */
.entry-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.entry-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.entry-content {
    max-width: 600px;
    text-align: center;
    padding: 40px;
}

.entry-text-1 {
    color: var(--white);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInText 0.6s ease forwards;
}

.entry-text-2 {
    color: var(--white);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInText 0.6s ease forwards 0.4s;
}

.entry-continue-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 0;
    position: relative;
    opacity: 0;
    animation: fadeInText 0.6s ease forwards 0.8s;
    transition: transform 0.2s ease;
}

.entry-continue-btn:hover {
    transform: translateY(-2px);
}

.entry-continue-btn .red-underline {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--red);
    transform: scaleX(0);
    animation: expandUnderline 0.4s ease forwards 1.2s;
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

@keyframes expandUnderline {
    to {
        transform: scaleX(1);
    }
}

/* ==== FORM CONTAINER ==== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.form-container.visible {
    opacity: 1;
}

/* ==== FORM STEPS ==== */
.form-step {
    display: none;
    animation: fadeIn 0.6s ease;
}

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

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

.step-headline {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.step-subtext {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* ==== TRACK SELECTION PANELS ==== */
.panels-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.panel {
    position: relative;
    padding: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.panel:hover {
    border-color: #c0c0c0;
    transform: translateY(-2px);
}

.panel.selected {
    background: var(--gray-light);
    border-color: var(--black);
}

.panel-checkmark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.panel.selected .panel-checkmark {
    background: var(--white);
    border-color: var(--red);
}

.panel.selected .panel-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--red);
    font-size: 16px;
    font-weight: bold;
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.panel-subtext {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.panel-microtext {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-micro);
    font-style: italic;
}

/* ==== QUESTIONS ==== */
.questions-container {
    margin-bottom: 40px;
}

.questions-container.centered-question {
    max-width: 600px;
    margin: 60px auto 40px;
}

.question-block {
    margin-bottom: 48px;
}

.question-label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.question-label.large-question {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.question-context {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.question-hint {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: -12px;
    margin-bottom: 16px;
}

/* ==== OPTIONS ==== */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.option-label:hover {
    border-color: #c0c0c0;
    background: #fafafa;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.option-label span {
    font-size: 16px;
    color: var(--text-primary);
}

/* ==== TEXT INPUTS ==== */
.text-input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    resize: vertical;
    transition: border-color 0.2s ease;
    line-height: 1.6;
}

.text-input:focus {
    outline: none;
    border-color: var(--black);
}

/* ==== SLIDERS ==== */
.slider-container {
    margin-top: 24px;
}

.slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    outline: none;
    border-radius: 3px;
    margin-bottom: 12px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--black);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: var(--red);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--black);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    transition: background 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    background: var(--red);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==== FOLLOWUP QUESTIONS ==== */
.followup-question {
    margin-top: 24px;
    padding-left: 24px;
    border-left: 2px solid var(--red);
    animation: fadeIn 0.4s ease;
}

/* ==== BUTTONS ==== */
.continue-btn,
.submit-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.continue-btn:hover,
.submit-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn {
    padding: 16px 56px;
    position: relative;
}

.submit-btn .red-underline {
    position: absolute;
    bottom: 12px;
    left: 56px;
    right: 56px;
    height: 1px;
    background: var(--red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover .red-underline {
    opacity: 1;
}

/* ==== CONFIRMATION SCREEN ==== */
.confirmation-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--black);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.confirmation-screen.active {
    display: flex;
}

.confirmation-content {
    max-width: 600px;
    text-align: center;
    padding: 40px;
}

.confirmation-line-1 {
    color: var(--white);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInText 0.6s ease forwards;
}

.confirmation-line-2 {
    color: var(--white);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInText 0.6s ease forwards 0.4s;
}

.confirmation-line-3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 500;
    opacity: 0;
    animation: fadeInText 0.6s ease forwards 1.2s;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .form-container {
        padding: 60px 24px;
    }

    .step-headline {
        font-size: 28px;
    }

    .step-subtext {
        font-size: 16px;
    }

    .panel {
        padding: 24px;
    }

    .panel-title {
        font-size: 18px;
    }

    .question-label {
        font-size: 16px;
    }

    .question-label.large-question {
        font-size: 20px;
    }

    .entry-text-1 {
        font-size: 20px;
    }

    .entry-text-2 {
        font-size: 16px;
    }

    .confirmation-line-1 {
        font-size: 20px;
    }

    .confirmation-line-2 {
        font-size: 16px;
    }

    .confirmation-line-3 {
        font-size: 18px;
    }
}

/* ==== STEP 0: CONTACT INFORMATION ==== */
.intro-text-container {
    margin-bottom: 40px;
}

.intro-question {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInText 0.8s ease forwards 0.2s;
}

.contact-question {
    margin-top: 60px;
    animation: fadeInText 0.8s ease forwards;
}

.name-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.contact-section {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.contact-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.optional-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
}

.text-input {
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.text-input::placeholder {
    color: #999;
}

.field-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

.field-error {
    font-size: 12px;
    color: var(--red);
    display: none;
}

.field-error.visible {
    display: block;
}

/* Phone input styling for intl-tel-input */
.iti {
    width: 100%;
}

.iti__flag-container {
    padding: 0;
}

.iti__selected-flag {
    padding: 0 12px;
}

/* ==== ACCESSIBILITY ==== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
