/**
 * KiTech Booking - Frontend Styles
 */

/* Booking Calendar Container */
.kitech-booking-calendar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Calendar Header */
.kitech-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.kitech-calendar-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

/* Date Picker */
.kitech-datepicker-wrapper {
    margin-bottom: 30px;
}

.kitech-datepicker {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.kitech-datepicker:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Timeslots Grid */
.kitech-timeslots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.kitech-timeslot {
    padding: 12px 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kitech-timeslot:hover:not(.booked):not(.selected) {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kitech-timeslot.selected {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.kitech-timeslot.booked {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Booking Form */
.kitech-booking-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kitech-form-group {
    margin-bottom: 20px;
}

.kitech-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.kitech-form-group label .required {
    color: #d63031;
}

.kitech-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.kitech-form-control:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea.kitech-form-control {
    min-height: 100px;
    resize: vertical;
}

/* DSGVO Checkbox */
.kitech-dsgvo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.kitech-dsgvo-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.kitech-dsgvo-checkbox label {
    flex: 1;
    font-size: 14px;
    color: #555;
}

/* Submit Button */
.kitech-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: #ff6b35;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kitech-submit-btn:hover {
    background: #e55a28;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.kitech-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.kitech-submit-btn.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Messages */
.kitech-message {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 16px;
}

.kitech-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.kitech-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.kitech-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Loading Spinner */
.kitech-loading {
    text-align: center;
    padding: 40px;
}

.kitech-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Confirmation Screen */
.kitech-confirmation {
    text-align: center;
    padding: 40px;
}

.kitech-confirmation-icon {
    font-size: 64px;
    color: #00b894;
    margin-bottom: 20px;
}

.kitech-confirmation h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.kitech-confirmation p {
    color: #555;
    margin-bottom: 30px;
}

.kitech-meeting-link {
    display: inline-block;
    padding: 12px 24px;
    background: #0078d4;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.kitech-meeting-link:hover {
    background: #005a9e;
    transform: translateY(-2px);
}

.kitech-ics-download {
    display: inline-block;
    margin-top: 15px;
    color: #ff6b35;
    text-decoration: underline;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 782px) {
    .kitech-booking-calendar {
        padding: 15px;
    }
    
    .kitech-calendar-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .kitech-timeslots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .kitech-booking-form {
        padding: 20px;
    }
    
    .kitech-submit-btn {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .kitech-timeslots {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Accessibility */
.kitech-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus visible for keyboard navigation */
.kitech-timeslot:focus-visible,
.kitech-form-control:focus-visible,
.kitech-submit-btn:focus-visible {
    outline: 3px solid #ff6b35;
    outline-offset: 2px;
}
