/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

/* Page Management */
.page {
    display: none;
    padding-top: 100px;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

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

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: opacity 0.3s ease;
}

.logo-image img:hover {
    opacity: 0.9;
}

/* Fallback styling nếu image không load được */
.logo-image::before {
    content: "PT";
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-image img[src=""]:before,
.logo-image img:not([src]):before {
    opacity: 1;
}

/* Logo text styles removed - logo only now */

.company-description {
    margin-bottom: 20px;
}

.company-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

/* Cards */
.welcome-card,
.survey-card,
.thank-you-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header,
.step-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.card-header h2,
.step-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.step-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.card-content {
    padding: 40px;
}

/* Welcome Page Styles */
.intro-text {
    margin-bottom: 30px;
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.privacy-notice {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #1e3c72;
}

.privacy-icon {
    flex-shrink: 0;
}

.privacy-icon i {
    font-size: 2rem;
    color: #1e3c72;
}

.privacy-text h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.privacy-text p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Form Styles */
.survey-form {
    padding: 40px;
}

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

.question-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.5;
}

.question-label.required::after {
    content: " *";
    color: #dc3545;
}

.optional {
    color: #6c757d;
    font-weight: normal;
    font-size: 0.9rem;
}

/* Input Styles */
.text-input,
.select-input,
.textarea-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.text-input:focus,
.select-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.textarea-input {
    resize: vertical;
    min-height: 120px;
}

.other-input {
    margin-top: 10px;
}

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

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover {
    border-color: #1e3c72;
    background: #f8f9ff;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.radio-option .checkmark::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1e3c72;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.radio-option input[type="radio"]:checked + .checkmark {
    border-color: #1e3c72;
}

.radio-option input[type="radio"]:checked + .checkmark::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-option:hover {
    border-color: #1e3c72;
    background: #f8f9ff;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-option .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-option .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-weight: bold;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark {
    background: #1e3c72;
    border-color: #1e3c72;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Likert Scale Styles */
.likert-scale {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scale-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.scale-option:hover {
    border-color: #1e3c72;
    background: #f8f9ff;
}

.scale-option input[type="radio"] {
    display: none;
}

.scale-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    margin: 0;
}

.scale-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.scale-text {
    flex: 1;
    font-weight: 500;
    color: #495057;
}

.scale-option input[type="radio"]:checked ~ label .scale-number {
    background: #1e3c72;
    color: white;
}

.scale-option input[type="radio"]:checked ~ label {
    color: #2c3e50;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

/* Thank You Page */
.thank-you-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.thank-you-card h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.thank-you-message {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 40px;
    padding: 0 20px;
}

.contact-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 30px;
}

.contact-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-section p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

/* PTHub Contact Information */
.pthub-contact {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.pthub-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 1.2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-item i {
    color: rgba(255, 255, 255, 0.8);
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item span {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page {
        padding-top: 120px;
    }
    
    .card-content,
    .survey-form {
        padding: 25px;
    }
    
    .card-header,
    .step-header {
        padding: 25px 20px;
    }
    
    .card-header h2,
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .logo-image {
        width: 90px;
        height: 90px;
        padding: 12px;
        border-radius: 16px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .privacy-notice {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .scale-option label {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .scale-number {
        margin: 0 auto;
    }
    
    .contact-section {
        margin: 20px;
        padding: 20px;
    }
    
    .thank-you-message {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .card-content,
    .survey-form {
        padding: 20px;
    }
    
    .card-header,
    .step-header {
        padding: 20px 15px;
    }
    
    .question-label {
        font-size: 1rem;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 12px;
    }
    
    .scale-option label {
        padding: 15px;
    }
    
    .contact-section {
        margin: 15px;
        padding: 15px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .btn-primary {
    background: #6c757d;
}

/* Validation Styles */
.invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Focus Styles for Accessibility */
.radio-option:focus-within,
.checkbox-option:focus-within,
.scale-option:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .progress-container,
    .form-actions,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .page {
        padding-top: 0 !important;
    }
    
    .survey-card,
    .welcome-card,
    .thank-you-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
