/**
 * SEO Course Frontend Styles
 * Mobile-first responsive design
 */

/* Base styles */
.seo-course-booking-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a202c;
    line-height: 1.6;
}

/* Form container */
.seo-course-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Headings */
.seo-course-form h2 {
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.seo-course-form h3 {
    color: #2563eb;
    margin: 24px 0 16px;
    font-size: 18px;
    font-weight: 600;
}

.seo-course-form .subtitle {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 16px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a202c;
    font-size: 14px;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 4px;
}

/* Input styles */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #1a202c;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Time slot selector */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.time-slot {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.time-slot:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.time-slot.selected {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.time-slot.unavailable {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.time-slot.unavailable:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* Course schedule display */
.course-schedule {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #2563eb;
}

.course-schedule h4 {
    margin: 0 0 12px;
    color: #1a202c;
    font-size: 16px;
    font-weight: 600;
}

.schedule-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.schedule-day:last-child {
    border-bottom: none;
}

.schedule-day .day-info {
    font-weight: 500;
    color: #1a202c;
}

.schedule-day .time-info {
    color: #2563eb;
    font-weight: 600;
}

/* Buttons */
button.seo-course-btn.btn-next-step {
    background: #2563eb;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s 
ease;
    display: inline-flex
;
    align-items: center;
    gap: 8px;
}
button.seo-course-btn.btn-next-step {
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    background: rgb(37, 99, 235);
    padding: 16px 32px;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    gap: 8px;
}
.seo-course-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.seo-course-btn:active {
    transform: translateY(0);
}

.seo-course-btn:disabled {
    background: #94a3b8 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    color: white !important;
    padding: 16px 32px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}


.seo-course-btn.secondary {
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.seo-course-btn.secondary:hover {
    background: #2563eb;
    color: white;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error and success messages */
.message {
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-weight: 500;
}

.message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.message.success {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.message.info {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Course info box */
.course-info {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.course-info h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: white;
}

.course-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.course-info li {
    padding: 4px 0;
    display: flex;
    align-items: center;
}

.course-info li::before {
    content: '✓';
    margin-right: 8px;
    font-weight: bold;
}

/* Step indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #2563eb;
    color: white;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    max-width: 80px;
}

.step.active .step-label {
    color: #1a202c;
    font-weight: 600;
}

/* Booking summary */
.booking-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
}

.summary-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-section h4 {
    color: #1a202c;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
}

.summary-section p {
    margin: 4px 0;
    color: #475569;
}

/* Responsive design */
@media (max-width: 768px) {
    .seo-course-booking-container {
        padding: 16px;
    }
    
    .seo-course-form {
        padding: 20px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .time-slot {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .schedule-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .seo-course-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .form-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .form-group .seo-course-btn {
        width: 100%;
    }
}

/* Field errors */
.field-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.no-slots {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-style: italic;
}

.loading-slots {
    text-align: center;
    padding: 20px;
    color: #64748b;
}