/* Survey Page Styling - Íslandsbanki Theme */
:root {
    --isb-red: #DC1E35;
    --isb-red-hover: #C4002A;
    --isb-dark-gray: #404040;
    --isb-light-gray: #F5F5F5;
    --isb-border: #E0E0E0;
    --isb-text: #404040;
    --isb-text-secondary: #666666;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    min-height: 100vh;
}

.survey-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.survey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    height: 48px;
    width: auto;
    max-width: 134px;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 8px 16px;
    border: 1px solid var(--isb-border);
    background: white;
    color: var(--isb-text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--isb-red);
    color: var(--isb-red);
}

.lang-btn.active {
    background: var(--isb-red);
    color: white;
    border-color: var(--isb-red);
}

.survey-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
}

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

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

/* Star Rating Styles */
.star-rating-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.star-rating {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.star-btn:hover {
    transform: scale(1.1);
}

.star-btn svg {
    fill: #E0E0E0;
    stroke: #D0D0D0;
    stroke-width: 1;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.star-btn.filled svg {
    fill: #DC1E35;
    stroke: #DC1E35;
}

.star-btn.hovered svg {
    fill: var(--isb-red);
    stroke: var(--isb-red);
}

/* Rating labels removed - no longer used */

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border: 1px solid var(--isb-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.radio-label:hover {
    border-color: var(--isb-red);
    background: rgba(227, 0, 43, 0.03);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--isb-red);
}

.radio-text {
    font-size: 15px;
    color: var(--isb-text);
}

/* Textarea Styles */
.comment-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid var(--isb-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--isb-red);
}

/* Submit Button */
.submit-container {
    display: flex;
    justify-content: stretch;
    margin-top: 32px;
}

.submit-btn {
    background: var(--isb-red);
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    background: var(--isb-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 0, 43, 0.25);
}

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

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Thank You Card */
.thank-you-card {
    text-align: center;
    padding: 60px 40px;
}

.success-icon, .error-icon {
    margin-bottom: 24px;
}

.thank-you-card h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--isb-text);
    margin: 0 0 16px 0;
}

.thank-you-card p {
    font-size: 16px;
    color: var(--isb-text-secondary);
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* Retry Link Styles */
.retry-link {
    display: inline-block;
    background: var(--isb-red);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.retry-link:hover {
    background: #B80023;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 0, 43, 0.3);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .survey-container {
        padding: 24px 16px;
    }
    
    .survey-card {
        padding: 24px;
    }
    
    .question-block {
        margin-bottom: 28px;
    }
    
    .star-rating {
        padding: 0 5px;
        gap: 8px;
    }
    
    .submit-container {
        justify-content: stretch;
    }
    
    .submit-btn {
        width: 100%;
    }
}

/* Accessibility */
.star-btn:focus-visible,
.lang-btn:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid var(--isb-red);
    outline-offset: 2px;
}

input[type="radio"]:focus-visible {
    outline: 2px solid var(--isb-red);
    outline-offset: 2px;
}
