/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

:root {
    --primary: #ffa800;
    --primary-dark: #cc8400;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --input-bg: #fafafa;
    --border: #dddddd;
    --error: #ff4d4d;
}

body {
    background-color: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    /* Scroll handled by JS/Transistions */
    position: relative;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.4s ease;
}

/* Full Screen Sections */
.step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100vh);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease;
    padding: 20px;
    overflow-y: auto;
    /* Allow internal scrolling if content is tall */
}

.step.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    z-index: 10;
}

.step.prev {
    transform: translateY(-100vh);
    opacity: 0;
}

/* Content Wrapper */
.content-wrapper {
    width: 100%;
    max-width: 720px;
    padding: 0 20px;
    /* Center text vertically if needed */
}

/* Typography */
h1.brand-title {
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

p.brand-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.step-indicator {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.big-label {
    display: block;
    font-size: 2.2rem;
    /* Large text */
    font-weight: 400;
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.3;
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    margin-top: -15px;
}

.optional {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 15px 0;
    font-size: 1.8rem;
    /* Cannot zoom on mobile */
    background: transparent;
    color: var(--primary);
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s;
}

input::placeholder {
    color: #cccccc;
    font-weight: 300;
}

input:focus {
    border-bottom-color: var(--primary);
}

/* Select */
.select-wrapper {
    position: relative;
    width: 100%;
}

select {
    width: 100%;
    padding: 20px 40px 20px 20px;
    font-size: 1.2rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
    appearance: none;
    cursor: pointer;
    color: var(--text);
    outline: none;
}

.select-wrapper .select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
}

select:focus {
    border-color: var(--primary);
}

/* Buttons and Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.option-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.option-btn .key {
    background: #eee;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 15px;
    font-weight: 700;
    color: var(--text-light);
}

.option-btn:hover {
    background: rgba(255, 168, 0, 0.05);
    border-color: var(--primary);
}

.option-btn:hover .key {
    background: var(--primary);
    color: white;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 168, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.btn-next {
    display: inline-flex;
    /* Hidden by default until input focus? Typeform style shows logic. Let's show it always */
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-next:hover {
    background: var(--primary-dark);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 168, 0, 0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Nav Controls (Bottom Right) */
.nav-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 0;
    z-index: 50;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-btn:hover {
    background: var(--primary-dark);
}

.nav-btn:disabled {
    background: #eee;
    color: #aaa;
    cursor: default;
}

.nav-btn.up {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Terms Box */
.terms-scroll-box {
    max-height: 480px;
    /* Increased from 200px for better ratio */
    height: 50vh;
    /* Dynamic height for mobile */
    overflow-y: auto;
    background: #fdfdfd;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.terms-list {
    padding-left: 30px;
    /* Increased from 20px to prevent number clipping */
    margin-bottom: 0;
}

.terms-list li {
    margin-bottom: 25px;
    /* Increased from 15px for better spacing */
    padding-left: 10px;
    /* Extra breathing room between number and text */
}

.clean-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.clean-list li {
    margin-bottom: 5px;
    padding-left: 5px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 1.1rem;
}

.checkbox-container input {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-container input:checked~.checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked~.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Success */
.success-icon {
    font-size: 5rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.success-title {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 15px;
}

/* Keyboard Hint */
.keyboard-hint {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    display: none;
    /* Hide on mobile by default */
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--error);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    pointer-events: none;
    z-index: 200;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Loader */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    display: none;
}

.loader.show {
    display: inline-block;
    margin-left: 10px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Success Screen Redesign */
#success-step {
    background: #ffffff;
    /* Pure white to match Lottie background */
}

.success-container {
    max-width: 500px !important;
    padding: 20px;
    margin: 0 auto;
    /* Center the container itself */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Flex center alignment */
}

.lottie-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

h2.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    text-align: center !important;
    /* Force Center */
    width: 100%;
}

p.success-desc {
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center !important;
    /* Force Center */
    width: 100%;
}

.highlight-orange {
    color: var(--primary);
    font-weight: 600;
}

/* WhatsApp Card */
.whatsapp-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    text-align: center;
    width: 100%;
}

.card-text {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 20px;
}

.btn-whatsapp-new {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-new:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-link-btn {
    text-decoration: none;
    display: block;
    width: 100%;
}


/* Tablet & Desktop Tweaks */
@media (min-width: 768px) {
    .keyboard-hint {
        display: block;
    }

    .big-label {
        font-size: 2.5rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"] {
        font-size: 2.5rem;
        padding: 20px 0;
    }
}