/* Greenlight Booking Frontend Styles */

.glb-booking-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.glb-booking-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.glb-form-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
}

.glb-form-description {
    margin: 0 0 25px 0;
    color: #7f8c8d;
    font-size: 15px;
}

.glb-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.glb-form-group {
    display: flex;
    flex-direction: column;
}

.glb-form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.glb-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #f8f9fa;
    transition: all 0.2s;
}

.glb-input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.glb-input::placeholder {
    color: #adb5bd;
}

textarea.glb-input {
    resize: vertical;
    min-height: 80px;
}

.glb-submit-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}

.glb-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,107,107,0.4);
}

.glb-submit-btn:active {
    transform: translateY(0);
}

.glb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.glb-form-message {
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.glb-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.glb-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Calendar Styles */
.glb-calendar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.glb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.glb-calendar-nav {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    color: #2c3e50;
    transition: color 0.2s;
}

.glb-calendar-nav:hover {
    color: #ff6b6b;
}

.glb-calendar-month {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.glb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.glb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.glb-calendar-day.header {
    font-weight: 600;
    color: #7f8c8d;
    cursor: default;
}

.glb-calendar-day.available:hover {
    background: #ffe5e5;
}

.glb-calendar-day.selected {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
}

.glb-calendar-day.disabled {
    color: #dee2e6;
    cursor: not-allowed;
}

/* Time Slots */
.glb-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.glb-time-slot {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.glb-time-slot:hover {
    background: #ffe5e5;
    border-color: #ff6b6b;
}

.glb-time-slot.selected {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border-color: #ff6b6b;
}

.glb-time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Loading State */
.glb-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .glb-booking-form {
        padding: 20px;
    }
    
    .glb-form-row {
        grid-template-columns: 1fr;
    }
    
    .glb-form-title {
        font-size: 24px;
    }
    
    .glb-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .glb-booking-form {
        padding: 15px;
    }
    
    .glb-submit-btn {
        width: 100%;
    }
}