/* Survey Styles - Separate from main styles.css */

.progress-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 32px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #f5a27d 0%, #f59173 100%);
    transition: width 0.4s ease;
    border-radius: 10px;
}

.survey-timer-banner {
    background: linear-gradient(135deg, rgba(245, 128, 73, 0.95) 0%, rgba(245, 123, 86, 0.95) 100%), 
                url('images/beta/beta application.png') center/cover no-repeat;
    background-blend-mode: overlay;
    color: white;
    padding: 40px 24px;
    text-align: bottom;
    font-weight: 700;
    font-size: 28px;
    border-radius: 8px;
    margin-bottom: 24px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .survey-timer-banner {
        font-size: 20px;
        padding: 30px 16px;
        min-height: 100px;
    }
}

.survey-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .survey-section {
        padding: 20px;
        margin: 0 10px;
        width: calc(100% - 20px);
    }
}

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

.survey-header h1 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #333;
}

.survey-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.question-step {
    display: none;
}

.question-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.question-group {
    margin-bottom: 32px;
}

.question-label {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.question-subtitle {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin-bottom: 16px;
}

.checkbox-grid {
    display: grid;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    border: 2px solid transparent;
}

.checkbox-item:hover {
    background: #f9f9f9;
}

/* Visual feedback when checkbox is checked - using :has() selector */
.checkbox-item:has(input[type="checkbox"]:checked),
.checkbox-item:has(input[type="radio"]:checked) {
    background: rgba(245, 162, 125, 0.1);
    border-color: #f5a27d;
}

/* Fallback for browsers without :has() support */
.checkbox-item.selected,
.radio-item.selected {
    background: rgba(245, 162, 125, 0.1);
    border-color: #f5a27d;
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #f5a27d;
    flex-shrink: 0;
    pointer-events: auto;
    z-index: 10;
}

/* Enhanced checkbox appearance */
.checkbox-item input[type="checkbox"]:checked {
    background-color: #f5a27d;
}

.checkbox-label-text {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    flex: 1;
}

.radio-grid {
    display: grid;
    gap: 12px;
}

.radio-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.radio-item:hover {
    background: #f9f9f9;
}

/* Visual feedback when radio is checked - using :has() selector */
.radio-item:has(input[type="radio"]:checked) {
    background: rgba(245, 162, 125, 0.1);
    border-color: #f5a27d;
}

.radio-item input[type="radio"]:checked {
    background-color: #f5a27d;
}

.text-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: #f5a27d;
}

.text-area {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.2s;
    text-align: left;
    vertical-align: top;
}

.text-area:focus {
    outline: none;
    border-color: #f5a27d;
}

.text-area::placeholder {
    text-align: left;
}

.navigation-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: space-between;
}

.btn-next, .btn-prev {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-next {
    background: linear-gradient(135deg, #f5a27d 0%, #f59173 100%);
    color: white;
    flex: 1;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 162, 125, 0.3);
}

.btn-prev {
    background: #f0f0f0;
    color: #666;
}

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

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f5a27d 0%, #f59173 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 32px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 162, 125, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-container {
    text-align: center;
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
}

.success-container h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 16px;
}

.success-container h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.4;
}

.success-container p {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .success-container {
        padding: 20px 10px;
    }
    
    .success-container h2 {
        font-size: 28px;
    }
    
    .success-container h3 {
        font-size: 20px;
    }
    
    .success-container p {
        font-size: 16px;
    }
}

.cta-box {
    background: linear-gradient(135deg, rgba(245, 162, 125, 0.05) 0%, rgba(245, 145, 115, 0.05) 100%);
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .cta-box {
        padding: 20px 16px;
        margin: 20px 0;
    }
}

.cta-steps-list {
    display: grid;
    gap: 20px;
}

.cta-step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.cta-step-number {
    font-size: 28px;
    flex-shrink: 0;
}

.cta-step-text {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.back-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #f5a27d 0%, #f59173 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.2s;
    font-weight: 600;
    margin-top: 24px;
}

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

.form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
}

.question-number {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    font-weight: 500;
}

