/**
 * Offyce Wellbeing Assessment - Public/Frontend Styles
 * Huisstijlkleuren: #0f4c5c (dark teal), #1a6b7f (light teal)
 */

/* Main Container */
.offyce-wellbeing-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.offyce-assessment-header {
    background: linear-gradient(135deg, #0f4c5c 0%, #1a6b7f 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.offyce-assessment-header h1 {
    font-size: 36px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.offyce-assessment-header p {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

/* Progress Bar */
.offyce-progress-container {
    background: #f5f5f5;
    padding: 25px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.offyce-progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.offyce-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0f4c5c 0%, #1a6b7f 100%);
    transition: width 0.4s ease;
    border-radius: 10px;
}

.offyce-progress-text {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* Content */
.offyce-assessment-content {
    padding: 50px 40px;
}

/* Question */
.offyce-question {
    animation: fadeInUp 0.5s ease;
}

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

.offyce-question-title {
    font-size: 28px;
    color: #0f4c5c;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.offyce-question-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.5;
}

/* Input Group */
.offyce-input-group {
    margin-bottom: 30px;
}

.offyce-input-label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.offyce-input-label .required {
    color: #e74c3c;
    margin-left: 4px;
}

.offyce-input-field {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.offyce-input-field:focus {
    outline: none;
    border-color: #0f4c5c;
}

/* Radio Options */
.offyce-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offyce-radio-option {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.offyce-radio-option:hover {
    border-color: #0f4c5c;
    background: #f8f9fa;
    transform: translateX(5px);
}

.offyce-radio-option.selected {
    border-color: #0f4c5c;
    background: #e8f4f8;
    box-shadow: 0 4px 12px rgba(15, 76, 92, 0.1);
}

.offyce-radio-option input[type="radio"] {
    margin-right: 15px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #0f4c5c;
}

.offyce-radio-option label {
    flex: 1;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

/* Checkbox Options */
.offyce-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offyce-checkbox-option {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.offyce-checkbox-option:hover {
    border-color: #0f4c5c;
    background: #f8f9fa;
}

.offyce-checkbox-option.selected {
    border-color: #0f4c5c;
    background: #e8f4f8;
    box-shadow: 0 4px 12px rgba(15, 76, 92, 0.1);
}

.offyce-checkbox-option input[type="checkbox"] {
    margin-right: 15px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #0f4c5c;
}

.offyce-checkbox-option label {
    flex: 1;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

/* Slider */
.offyce-slider {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    margin: 20px 0;
}

.offyce-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f4c5c;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 76, 92, 0.3);
}

.offyce-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f4c5c;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(15, 76, 92, 0.3);
}

.offyce-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

/* Buttons */
.offyce-button-group {
    display: flex;
    gap: 15px;
    margin-top: 50px;
}

.offyce-btn {
    flex: 1;
    padding: 18px 35px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.offyce-btn-primary {
    background: linear-gradient(135deg, #0f4c5c 0%, #1a6b7f 100%);
    color: white;
}

.offyce-btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 76, 92, 0.3);
}

.offyce-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.offyce-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.offyce-btn-secondary:hover {
    background: #e0e0e0;
}

/* Results */
.offyce-results {
    animation: fadeInUp 0.6s ease;
}

.offyce-results-header {
    text-align: center;
    margin-bottom: 50px;
}

.offyce-results-header h2 {
    font-size: 36px;
    color: #0f4c5c;
    margin-bottom: 20px;
}

.offyce-score {
    font-size: 72px;
    font-weight: 700;
    color: #1a6b7f;
    margin: 25px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.offyce-score-label {
    font-size: 20px;
    color: #666;
    margin-bottom: 15px;
}

/* Recommendation Card */
.offyce-recommendation-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #0f4c5c;
    margin-bottom: 25px;
}

.offyce-recommendation-card h3 {
    font-size: 24px;
    color: #0f4c5c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.offyce-recommendation-card .icon {
    font-size: 28px;
}

.offyce-recommendation-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.offyce-recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.offyce-recommendation-list li {
    padding: 12px 0 12px 35px;
    color: #333;
    line-height: 1.6;
    position: relative;
}

.offyce-recommendation-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: #0f4c5c;
    font-weight: bold;
    font-size: 20px;
}

/* Product Links */
.offyce-product-links {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf2 100%);
    border-radius: 12px;
}

.offyce-product-links h3 {
    font-size: 28px;
    color: #0f4c5c;
    margin-bottom: 25px;
    text-align: center;
}

.offyce-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.offyce-product-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.offyce-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.offyce-product-card h4 {
    font-size: 20px;
    color: #0f4c5c;
    margin-bottom: 12px;
}

.offyce-product-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.offyce-product-card a {
    display: inline-block;
    padding: 12px 25px;
    background: #0f4c5c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.offyce-product-card a:hover {
    background: #1a6b7f;
}

/* Email Form */
.offyce-email-form {
    margin-top: 50px;
    padding: 35px;
    background: #f8f9fa;
    border-radius: 12px;
}

.offyce-email-form h3 {
    font-size: 24px;
    color: #0f4c5c;
    margin-bottom: 25px;
    text-align: center;
}

.offyce-email-input-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.offyce-email-input-group input {
    flex: 1;
}

/* Email Sent Confirmation */
.offyce-email-sent {
    text-align: center;
    padding: 35px;
    background: #d4edda;
    border-radius: 12px;
    color: #155724;
}

.offyce-email-sent .icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.offyce-email-sent h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Loading State */
.offyce-assessment-loading {
    text-align: center;
    padding: 80px 40px;
}

.offyce-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0f4c5c;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.offyce-assessment-loading p {
    font-size: 18px;
    color: #666;
}

/* GDPR Checkbox */
.offyce-gdpr-checkbox {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0f4c5c;
}

.offyce-gdpr-checkbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.offyce-gdpr-checkbox input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0f4c5c;
}

.offyce-gdpr-checkbox a {
    color: #0f4c5c;
    text-decoration: underline;
}

/* Error Message */
.offyce-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .offyce-wellbeing-app {
        margin: 20px auto;
        border-radius: 0;
    }
    
    .offyce-assessment-header {
        padding: 35px 25px;
    }
    
    .offyce-assessment-header h1 {
        font-size: 28px;
    }
    
    .offyce-assessment-header p {
        font-size: 16px;
    }
    
    .offyce-assessment-content {
        padding: 35px 25px;
    }
    
    .offyce-progress-container {
        padding: 20px 25px;
    }
    
    .offyce-question-title {
        font-size: 24px;
    }
    
    .offyce-product-grid {
        grid-template-columns: 1fr;
    }
    
    .offyce-email-input-group {
        flex-direction: column;
    }
    
    .offyce-email-input-group input {
        width: 100%;
    }
    
    .offyce-button-group {
        flex-direction: column;
    }
    
    .offyce-score {
        font-size: 56px;
    }
}

/* Honeypot (hidden) */
.offyce-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

/* LinkedIn Footer */
.offyce-linkedin-footer {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-top: 3px solid #0077B5;
}

.offyce-linkedin-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #0077B5;
}

.offyce-linkedin-link:hover {
    background: #0077B5;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

.offyce-linkedin-link:hover span {
    color: white !important;
}

.offyce-linkedin-link:hover svg {
    fill: white;
}

/* Recommendation Image */
.offyce-recommendation-image {
    text-align: center;
    margin-bottom: 20px;
}

.offyce-recommendation-image img {
    border: 3px solid #e8f4f8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
