:root {
    --bg-color: #e2e8f0;
    --surface-color: #f1f5f9;
    --surface-hover: #e2e8f0;
    --accent-color: #00bfa5;
    --accent-hover: #00a891;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #cbd5e1;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.form-container {
    width: 100%;
    max-width: 550px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%; 
    transition: width 0.4s ease;
    border-radius: 4px;
}

.form-wrapper {
    background-color: var(--surface-color);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

#main-header {
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px 15px;
    margin-bottom: 30px;
}

.main-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.secondary-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.cover-image-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.cover-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 350px;
}

.w-100 {
    width: 100%;
    justify-content: center;
}

.step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step.active {
    display: block;
}

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

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.option-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.option-card:hover {
    border-color: var(--accent-color);
    background-color: rgba(0, 191, 165, 0.05);
    box-shadow: 0 4px 15px rgba(0, 191, 165, 0.1);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--accent-color);
    background-color: rgba(0, 191, 165, 0.1);
    box-shadow: 0 0 0 1px var(--accent-color), 0 4px 15px rgba(0, 191, 165, 0.15);
}

.option-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

/* Inputs y Textareas */
.info-box {
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.input-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input {
    width: 100%;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(0, 191, 165, 0.02);
    box-shadow: 0 0 0 2px rgba(0, 191, 165, 0.2);
}

.input-group input::placeholder {
    color: #9ca3af;
}

/* intl-tel-input overrides for light mode */
.iti {
    width: 100%;
}
.iti__flag-container {
    padding: 2px;
}
.iti__selected-flag {
    background-color: transparent !important;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.iti__country-list {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.iti__country-list .iti__country:hover, 
.iti__country-list .iti__country.iti__highlight {
    background-color: var(--surface-hover);
}
.iti__divider {
    border-bottom: 1px solid var(--border-color);
}

/* Final screens */
.result-content {
    text-align: left;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.result-content p {
    margin-bottom: 16px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin: 24px 0;
    background-color: #000;
    border: 1px solid var(--border-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.final-text {
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    margin-top: 24px;
}

.final-text.highlight {
    color: var(--accent-color);
}

.buttons-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.buttons-container.end {
    justify-content: flex-end;
}

.buttons-container.between {
    justify-content: space-between;
}

.buttons-container.center {
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 191, 165, 0.4);
}

.btn-primary:disabled {
    background-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
    border-color: #9ca3af;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 191, 165, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px auto;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}
