/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    color: #e6edf3;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.company-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #374151;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

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

.language-selector {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

#google_translate_element {
    background: #374151;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #4b5563;
}

/* Google Translate widget customization */
.goog-te-gadget {
    font-family: inherit !important;
    color: #e6edf3 !important;
}

.goog-te-gadget .goog-te-combo {
    background: #1f2937 !important;
    color: #e6edf3 !important;
    border: 1px solid #4b5563 !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    margin: 0 !important;
}

.goog-te-gadget .goog-te-combo option {
    background: #1f2937 !important;
    color: #e6edf3 !important;
}

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.skiptranslate iframe {
    visibility: hidden !important;
    height: 0 !important;
}

.header h1 {
    color: #60a5fa;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    color: #9ca3af;
    font-size: 1.1rem;
}

/* Section Styles */
.section {
    background: #1f2937;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.section h2 {
    color: #60a5fa;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #374151;
    padding-bottom: 10px;
}

.instructions {
    background: #374151;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #60a5fa;
    color: #d1d5db;
    font-size: 0.95rem;
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #60a5fa 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Question Styles */
.question {
    margin-bottom: 35px;
    padding: 25px;
    background: #374151;
    border-radius: 10px;
    border: 1px solid #4b5563;
}

.question h3 {
    color: #f3f4f6;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.option {
    padding: 15px;
    background: #4b5563;
    border: 2px solid #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.option:hover {
    background: #5b6471;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.option-text {
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 5px;
}

.option-description {
    font-size: 0.85rem;
    color: #d1d5db;
    opacity: 0.9;
}

/* Ranking Colors */
.option.rank-1 {
    background: #065f46;
    border-color: #10b981;
    color: #ecfdf5;
}

.option.rank-2 {
    background: #713f12;
    border-color: #facc15;
    color: #fffbeb;
}

.option.rank-3 {
    background: #9a3412;
    border-color: #fb923c;
    color: #fff7ed;
}

.option.rank-4 {
    background: #7f1d1d;
    border-color: #ef4444;
    color: #fef2f2;
}

.option.rank-5 {
    background: #581c87;
    border-color: #a855f7;
    color: #faf5ff;
}

.option.rank-6 {
    background: #1e3a8a;
    border-color: #3b82f6;
    color: #eff6ff;
}

.rank-number {
    font-weight: bold;
    margin-right: 8px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e6edf3;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #374151;
    color: #e6edf3;
    border: 1px solid #4b5563;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #374151;
}

.submit-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    background: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .company-header {
        margin-bottom: 15px;
        padding: 10px 0;
    }
    
    .company-name {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .language-selector {
        margin: 10px 0;
    }
    
    .section {
        padding: 20px;
    }
    
    .option {
        padding: 12px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

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

.loading {
    border: 3px solid #374151;
    border-top: 3px solid #60a5fa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
}