/**
 * NeonGlass RTL Training Theme - Booking System Styles
 *
 * Enhanced styles for the reservation/booking system
 *
 * @package NeonGlassRTL
 * @since 1.0.0
 */

/* ============================================
   AVAILABILITY INDICATOR
   ============================================ */

.availability-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #22c55e;
    animation: slideIn 0.3s ease;
}

.availability-indicator svg {
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

.form-section {
    margin-bottom: 2rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #6366f1;
}

body.dark-mode .section-label {
    color: #a855f7;
}

.section-label svg {
    width: 20px;
    height: 20px;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row.two-col {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FLOATING LABELS
   ============================================ */

.form-group.floating {
    position: relative;
}

.form-group.floating label {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: rgba(0, 0, 0, 0.5);
    background: transparent;
    padding: 0 0.25rem;
}

body.dark-mode .form-group.floating label {
    color: rgba(255, 255, 255, 0.5);
}

.form-group.floating input:focus+label,
.form-group.floating input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.75rem;
    color: #6366f1;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 0.5rem;
    border-radius: 0.25rem;
}

body.dark-mode .form-group.floating input:focus+label,
body.dark-mode .form-group.floating input:not(:placeholder-shown)+label {
    color: #a855f7;
    background: rgba(0, 0, 0, 0.9);
}

/* ============================================
   SELECT STYLING
   ============================================ */

.form-group.select-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 20px;
    padding-left: 3rem;
}

body[dir="ltr"] .form-group.select-group select {
    background-position: right 1rem center;
    padding-right: 3rem;
    padding-left: 1rem;
}

.form-group.select-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   ENHANCED CHECKBOX
   ============================================ */

.checkbox-group.enhanced {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.375rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
    border-color: #6366f1;
}

.checkbox-label input:checked~.checkmark {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: #6366f1;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked~.checkmark:after {
    display: block;
}

.checkbox-text {
    line-height: 1.6;
}

.checkbox-text a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.checkbox-text a:hover {
    color: #a855f7;
    text-decoration: underline;
}

body.dark-mode .checkbox-text a {
    color: #a855f7;
}

body.dark-mode .checkbox-text a:hover {
    color: #ec4899;
}

/* ============================================
   SUBMIT BUTTON ENHANCEMENTS
   ============================================ */

.submit-btn {
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.submit-btn .btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn .btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover .btn-overlay {
    width: 300px;
    height: 300px;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ============================================
   DATE/TIME PICKER ENHANCEMENTS
   ============================================ */

input[type="date"],
input[type="time"] {
    position: relative;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* ============================================
   RESERVATION INFO CARD
   ============================================ */

.reservation-info-card {
    padding: 2rem;
    border-radius: 1rem;
    position: sticky;
    top: 5rem;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.info-card-header svg {
    color: #6366f1;
}

.info-card-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.info-intro {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.info-items-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item-large {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.info-item-large:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(-5px);
}

.info-item-large .item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 0.5rem;
    color: white;
}

.info-item-large .item-content h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.info-item-large .item-content p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.info-item-large .item-content a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item-large .item-content a:hover {
    color: #6366f1;
}

.info-card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.social-links-compact {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-links-compact a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.5rem;
    color: #6366f1;
    transition: all 0.3s ease;
}

.social-links-compact a:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   SESSION TYPES SECTION
   ============================================ */

.session-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.session-type-card {
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.session-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.session-type-card.featured {
    border: 2px solid #6366f1;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.type-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 1rem;
    color: white;
}

.session-type-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.session-type-card p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.type-duration {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6366f1;
}

body.dark-mode .type-duration {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
    .reservation-info-card {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .session-types-grid {
        grid-template-columns: 1fr;
    }

    .info-items-vertical {
        gap: 1rem;
    }

    .info-item-large {
        padding: 0.75rem;
    }
}

/* ============================================
   DARK MODE ADJUSTMENTS
   ============================================ */

body.dark-mode .checkmark {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(168, 85, 247, 0.3);
}

body.dark-mode .checkbox-label:hover .checkmark {
    border-color: #a855f7;
}

body.dark-mode .checkbox-label input:checked~.checkmark {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-color: #a855f7;
}

body.dark-mode .info-card-header {
    border-bottom-color: rgba(168, 85, 247, 0.2);
}

body.dark-mode .info-card-header svg {
    color: #a855f7;
}

body.dark-mode .info-item-large {
    background: rgba(168, 85, 247, 0.05);
}

body.dark-mode .info-item-large:hover {
    background: rgba(168, 85, 247, 0.1);
}

body.dark-mode .info-item-large .item-icon {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

body.dark-mode .info-item-large .item-content a:hover {
    color: #a855f7;
}

body.dark-mode .info-card-footer {
    border-top-color: rgba(168, 85, 247, 0.2);
}

body.dark-mode .social-links-compact a {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

body.dark-mode .social-links-compact a:hover {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

body.dark-mode .session-type-card.featured {
    border-color: #a855f7;
}

body.dark-mode .type-icon {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

body.dark-mode .availability-indicator {
    background: rgba(34, 197, 94, 0.15);
}