/**
 * EOI Assessment Confirmation Styles
 * Mobile-first, responsive design
 */

.eoi-assessment-confirmation-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.eoi-booking-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.eoi-branding-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem 1.5rem;
    text-align: center;
}

.eoi-brand-text {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Page Title */
.eoi-page-title {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

.eoi-page-title h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #333;
}

.eoi-page-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Forms */
.eoi-form {
    padding: 1.5rem;
}

.eoi-form-group {
    margin-bottom: 1.5rem;
}

.eoi-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.eoi-required {
    color: #e74c3c;
}

.eoi-form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.eoi-form-group input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.eoi-form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.eoi-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px; /* Touch-friendly */
    min-width: 120px;
}

.eoi-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.eoi-btn-primary {
    background: #667eea;
    color: #fff;
}

.eoi-btn-primary:hover:not(:disabled) {
    background: #5568d3;
}

.eoi-btn-success {
    background: #27ae60;
    color: #fff;
}

.eoi-btn-success:hover:not(:disabled) {
    background: #229954;
}

.eoi-btn-warning {
    background: #f39c12;
    color: #fff;
}

.eoi-btn-warning:hover:not(:disabled) {
    background: #e67e22;
}

.eoi-btn-danger {
    background: #e74c3c;
    color: #fff;
}

.eoi-btn-danger:hover:not(:disabled) {
    background: #c0392b;
}

/* Assessment Items */
.eoi-assessments-list {
    padding: 1.5rem;
}

.eoi-assessment-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fafafa;
}

.eoi-assessment-item.eoi-past-assessment {
    opacity: 0.85;
    border-color: #ccc;
    background: #f5f5f5;
}

.eoi-assessment-item.eoi-past-assessment .eoi-assessment-header h4 {
    color: #666;
}

.eoi-assessment-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.eoi-assessment-header h4 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #333;
}

.eoi-assessment-meta {
    font-size: 0.9rem;
    color: #666;
}

.eoi-meta-label {
    font-weight: 500;
}

.eoi-assessment-details {
    margin-bottom: 1.5rem;
}

.eoi-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.eoi-detail-item {
    flex: 1;
    min-width: 200px;
}

.eoi-detail-label {
    display: block;
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.eoi-detail-value {
    display: block;
    color: #333;
    font-size: 1rem;
}

/* Assessment Actions */
.eoi-assessment-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.eoi-assessment-actions .eoi-btn {
    width: 100%;
    text-align: center;
}

/* Messages */
.eoi-message-container {
    margin-top: 1rem;
}

.eoi-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.eoi-message-error {
    background: #fee;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

.eoi-message-success {
    background: #efe;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.eoi-message-info {
    background: #e8f4f8;
    color: #2980b9;
    border: 1px solid #3498db;
}

/* Success Container */
.eoi-success-container {
    padding: 3rem 1.5rem;
    text-align: center;
}

.eoi-success-message {
    max-width: 500px;
    margin: 0 auto;
}

.eoi-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
}

.eoi-success-message h3 {
    margin: 0 0 1rem;
    color: #333;
    font-size: 1.75rem;
}

.eoi-success-message p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer */
.eoi-branding-footer {
    background: #f5f5f5;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.eoi-footer-text {
    color: #666;
    font-size: 0.9rem;
}

.eoi-no-assessments {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Verification Code Form */
.eoi-verification-code-container {
    padding: 1.5rem;
}

.eoi-resend-code {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.eoi-resend-code a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.eoi-resend-code a:hover {
    text-decoration: underline;
}

.eoi-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.eoi-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

/* Verification Code Input */
#eoi-verification-code {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

#eoi-verification-code::placeholder {
    letter-spacing: 0.25rem;
    font-weight: normal;
}

/* Responsive Design */
@media (min-width: 768px) {
    .eoi-assessment-confirmation-container {
        padding: 2rem;
    }
    
    .eoi-page-title h3 {
        font-size: 1.75rem;
    }
    
    .eoi-assessment-actions {
        flex-direction: row;
    }
    
    .eoi-assessment-actions .eoi-btn {
        flex: 1;
    }
}

@media (min-width: 992px) {
    .eoi-assessment-confirmation-container {
        max-width: 900px;
    }
    
    .eoi-form-group input[type="email"] {
        max-width: 500px;
        margin: 0 auto;
        display: block;
    }
}

/* Loading States */
.eoi-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Accessibility */
.eoi-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.eoi-form-group input[type="email"]:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Confirmation Modal */
.eoi-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.eoi-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.eoi-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: eoi-modal-fade-in 0.3s ease-out;
}

@keyframes eoi-modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.eoi-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.eoi-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.eoi-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.eoi-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.eoi-modal-close:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.eoi-modal-body {
    padding: 1.5rem;
}

.eoi-modal-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.eoi-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.eoi-modal-footer .eoi-btn {
    min-width: 100px;
}

/* Responsive Modal */
@media (max-width: 576px) {
    .eoi-modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .eoi-modal-header {
        padding: 1rem;
    }
    
    .eoi-modal-title {
        font-size: 1.25rem;
    }
    
    .eoi-modal-body {
        padding: 1rem;
    }
    
    .eoi-modal-footer {
        flex-direction: column-reverse;
        padding: 1rem;
    }
    
    .eoi-modal-footer .eoi-btn {
        width: 100%;
    }
}
