/* ===== SURVEY PLATFORM STYLES - MODERN VERSION ===== */
/* This file builds on the design system for survey-specific components */

/* ===== SURVEY SELECTION PAGE ===== */
.survey-selection {
    max-width: 600px;
    margin: var(--space-20) auto;
    padding: var(--space-8);
}

.survey-selection h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--neutral-900);
    margin-bottom: var(--space-8);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.survey-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.survey-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.survey-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.survey-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.survey-button:hover::before {
    left: 100%;
}

.survey-button::after {
    content: '→';
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    transition: transform var(--transition-fast);
}

.survey-button:hover::after {
    transform: translateX(5px);
}

/* ===== BANNER SECTION ===== */
.banner-container {
    width: 100%;
    margin-bottom: var(--space-8);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-900) 100%);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 1.5s var(--transition-slow);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: var(--space-8);
    color: white;
}

.banner-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
}

.banner-subtitle {
    font-size: var(--text-lg);
    opacity: 0.9;
}

/* ===== INFO SECTION ===== */
.info-box {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

.info-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--neutral-900);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.info-bullets {
    list-style: none;
    padding: 0;
}

.info-bullets li {
    padding: var(--space-3) 0;
    color: var(--neutral-600);
    font-size: var(--text-base);
    position: relative;
    padding-left: var(--space-8);
}

.info-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-500);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
}

/* ===== PRIVACY SECTION ===== */
.privacy-box {
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
}

.privacy-content {
    text-align: center;
}

.privacy-details-button {
    background: none;
    border: none;
    color: var(--primary-600);
    cursor: pointer;
    font-size: var(--text-sm);
    text-decoration: underline;
    transition: color var(--transition-fast);
    margin-top: var(--space-2);
}

.privacy-details-button:hover {
    color: var(--primary-700);
}

/* ===== SURVEY INPUT SECTION ===== */
.header-textbox {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    margin-bottom: var(--space-8);
    text-align: center;
}

.survey-id {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-4);
    font-family: var(--font-family-mono);
    background: var(--neutral-100);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    display: inline-block;
}

.name-input-container {
    margin-bottom: var(--space-6);
}

.name-input {
    width: 100%;
    max-width: 300px;
    padding: var(--space-4);
    font-size: var(--text-lg);
    text-align: center;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: var(--neutral-50);
    transition: all var(--transition-normal);
}

.name-input:focus {
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

/* ===== QUESTION SECTIONS ===== */
.question-section {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    animation: fadeIn 0.6s var(--transition-normal);
}

.question-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--neutral-900);
    margin-bottom: var(--space-6);
    text-align: center;
}

.question-instruction {
    font-size: var(--text-base);
    color: var(--neutral-600);
    text-align: center;
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

/* ===== OPTIONS GRID ===== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.option {
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    position: relative;
    overflow: hidden;
}

.option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: left 0.5s;
}

.option:hover {
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.option:hover::before {
    left: 100%;
}

.option.selected {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.option.selected::after {
    content: '✓';
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: var(--success-500);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
}

.option img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.option span {
    font-weight: var(--font-medium);
    color: var(--neutral-700);
}

/* ===== SLIDER COMPONENTS ===== */
.slider-container {
    margin: var(--space-8) 0;
}

.slider-group {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    transition: all var(--transition-normal);
}

.slider-group:hover {
    box-shadow: var(--shadow-md);
}

.slider-label {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--neutral-800);
    margin-bottom: var(--space-4);
    display: block;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    outline: none;
    margin: var(--space-4) 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

.slider-value {
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-600);
    margin-top: var(--space-2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--neutral-500);
    margin-top: var(--space-2);
}

/* ===== BUTTON CONTAINERS ===== */
.button-container {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.button-container.space-between {
    justify-content: space-between;
}

.centered-buttons {
    justify-content: center;
}

/* ===== FOLLOW-UP SECTIONS ===== */
.follow-up-question {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    animation: slideInFromRight 0.5s var(--transition-normal);
}

.follow-up-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.follow-up-option {
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.follow-up-option:hover {
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.follow-up-option.selected {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    box-shadow: var(--shadow-lg);
}

.follow-up-option img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.follow-up-option .option-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--neutral-700);
    line-height: 1.3;
}

/* ===== TEXTAREA STYLING ===== */
.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--space-4);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-family-sans);
    line-height: 1.5;
    resize: vertical;
    transition: all var(--transition-normal);
    background: var(--neutral-50);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ===== CHECKBOX STYLING ===== */
.checkbox-container {
    margin: var(--space-6) 0;
}

.checkbox-item {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.checkbox-item:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-sm);
}

.checkbox-item.selected {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    box-shadow: var(--shadow-md);
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    margin-right: var(--space-3);
    accent-color: var(--primary-500);
}

.checkbox-title {
    font-weight: var(--font-semibold);
    color: var(--neutral-800);
    display: block;
    margin-bottom: var(--space-2);
}

.checkbox-description {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.5;
}

/* ===== MODAL STYLING ===== */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-2xl);
    position: relative;
    animation: fadeIn 0.3s var(--transition-normal);
}

.close-button {
    position: absolute;
    right: var(--space-4);
    top: var(--space-4);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    cursor: pointer;
    color: var(--neutral-400);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.close-button:hover {
    color: var(--neutral-600);
    background: var(--neutral-100);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .question-section,
    .info-box,
    .header-textbox,
    .follow-up-question {
        padding: var(--space-6);
        margin-bottom: var(--space-6);
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .follow-up-grid {
        grid-template-columns: 1fr;
    }
    
    .button-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button-container.space-between {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 180px;
        margin-bottom: var(--space-6);
    }
    
    .survey-selection {
        margin: var(--space-12) auto;
        padding: var(--space-4);
    }
    
    .question-title {
        font-size: var(--text-xl);
    }
    
    .info-title {
        font-size: var(--text-xl);
    }
}

/* ===== WHOAREU SPECIFIC OVERRIDES ===== */
/* These overrides ensure WhoAreU icons are larger and not clipped */
#whoareu-container .follow-up-option img {
    max-width: 80px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

#whoareu-container .follow-up-option {
    padding: 25px 15px !important;
    min-height: 140px !important;
    justify-content: space-around !important;
}

/* Mobile responsive overrides for WhoAreU */
@media (max-width: 768px) {
    #whoareu-container .follow-up-option {
        padding: 20px 12px !important;
        min-height: 120px !important;
    }
    
    #whoareu-container .follow-up-option img {
        max-width: 70px !important;
        max-height: 50px !important;
    }
}