/**
 * VoiceScore Frontend Styles
 */

.voicescore-assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.voicescore-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.voicescore-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
}

.voicescore-header .subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
}

.voicescore-progress {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.voicescore-progress h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.voicescore-progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.voicescore-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.voicescore-step {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.voicescore-step.active {
    display: block;
}

.voicescore-step h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.voicescore-recording-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 2px dashed #667eea;
}

.voicescore-recording-section h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.voicescore-audio-recorder {
    text-align: center;
    margin: 20px 0;
}

.voicescore-record-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.voicescore-record-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.voicescore-record-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.voicescore-record-btn.recording {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.voicescore-audio-player {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.voicescore-checkbox-section {
    margin-bottom: 30px;
}

.voicescore-checkbox-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.voicescore-checkbox-group {
    margin-bottom: 20px;
}

.voicescore-checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.voicescore-checkbox-item:hover {
    background: #e9ecef;
}

.voicescore-checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    transform: scale(1.2);
    accent-color: #667eea;
}

.voicescore-checkbox-item label {
    cursor: pointer;
    flex: 1;
    font-size: 1em;
    line-height: 1.5;
    color: #333;
}

.voicescore-section .voicescore-checkbox {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    margin-bottom: 12px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.voicescore-section .voicescore-checkbox input[type="checkbox"] {
    grid-column: 2;
    justify-self: end;
    width: 20px;
    height: 20px;
    margin: 0;
}

.voicescore-section .voicescore-checkbox label {
    grid-column: 1;
    margin: 0;
}

.voicescore-contact-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.voicescore-form-group {
    margin-bottom: 20px;
}

.voicescore-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.voicescore-form-group input,
.voicescore-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.voicescore-form-group input:focus,
.voicescore-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.voicescore-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.voicescore-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.voicescore-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.voicescore-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.voicescore-btn-secondary {
    background: #6c757d;
    color: white;
}

.voicescore-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.voicescore-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.voicescore-results {
    text-align: center;
    padding: 40px 20px;
}

.voicescore-score-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.voicescore-score-number {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 10px;
}

.voicescore-score-label {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.voicescore-level {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
}

.voicescore-results-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.voicescore-results-content h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.voicescore-results-content p {
    margin-bottom: 15px;
    color: #333;
}

.voicescore-results-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.voicescore-results-content li {
    margin-bottom: 8px;
    color: #555;
}

.voicescore-recommendations {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.voicescore-recommendations h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.voicescore-download-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.voicescore-download-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.voicescore-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.voicescore-loading {
    text-align: center;
    padding: 40px;
}

.voicescore-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.voicescore-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.voicescore-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .voicescore-assessment-container {
        padding: 15px;
    }
    
    .voicescore-header {
        padding: 20px;
    }
    
    .voicescore-header h1 {
        font-size: 2em;
    }
    
    .voicescore-step {
        padding: 20px;
    }
    
    .voicescore-score-display {
        padding: 30px 20px;
    }
    
    .voicescore-score-number {
        font-size: 3em;
    }
    
    .voicescore-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .voicescore-btn {
        width: 100%;
        text-align: center;
    }
}

/* Animation Classes */
.voicescore-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.voicescore-slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
.voicescore-results .voicescore-breakdown {
    margin-top: 20px;
}

.voicescore-booking-options ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}
.voicescore-booking-options li {
    margin-bottom: 10px;
}
.voicescore-booking-options a {
    display: inline-block;
}

.voicescore-results .voicescore-breakdown {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.voicescore-results .voicescore-breakdown table {
    min-width: 420px;
    width: 100%;
    table-layout: auto;
}
.voicescore-ai-report {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    margin-top: 15px;
}