/* Booking System Styles */

/* Booking Form Styles */
.gim-booking-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.gim-booking-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.gim-booking-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 600;
}

.gim-booking-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Step Indicator */
.gim-booking-steps {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.gim-step {
    display: flex;
    align-items: center;
    margin: 0 15px;
    position: relative;
}

.gim-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.gim-step.completed:not(:last-child)::after {
    background: #28a745;
}

.gim-step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.gim-step.active .gim-step-number {
    background: #0073aa;
    color: white;
    transform: scale(1.1);
}

.gim-step.completed .gim-step-number {
    background: #28a745;
    color: white;
}

.gim-step-label {
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
}

.gim-step.active .gim-step-label {
    color: #0073aa;
    font-weight: 600;
}

.gim-step.completed .gim-step-label {
    color: #28a745;
}

/* Form Content */
.gim-booking-content {
    padding: 30px;
}

.gim-form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.gim-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gim-form-step h2 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 1.8em;
    font-weight: 600;
}

/* Service Cards */
.gim-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gim-service-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.gim-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--service-color, #0073aa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.gim-service-card:hover {
    border-color: #0073aa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,115,170,0.15);
}

.gim-service-card:hover::before {
    transform: scaleX(1);
}

.gim-service-card.selected {
    border-color: #0073aa;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,115,170,0.2);
}

.gim-service-card.selected::before {
    transform: scaleX(1);
}

.gim-service-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

.gim-service-card p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

.gim-service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.gim-service-duration {
    color: #666;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gim-service-price {
    font-size: 1.4em;
    font-weight: bold;
    color: #0073aa;
}

/* Agent Cards */
.gim-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gim-agent-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
}

.gim-agent-card:hover {
    border-color: #0073aa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,115,170,0.15);
}

.gim-agent-card.selected {
    border-color: #0073aa;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,115,170,0.2);
}

.gim-agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 2em;
    font-weight: bold;
}

.gim-agent-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.gim-agent-card p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Date & Time Selection */
.gim-date-time-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
}

.gim-date-picker {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.gim-time-slots-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
}

.gim-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.gim-time-slot {
    padding: 12px 8px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #fff;
}

.gim-time-slot:hover {
    border-color: #0073aa;
    background: #f8f9ff;
}

.gim-time-slot.selected {
    border-color: #0073aa;
    background: #0073aa;
    color: white;
    transform: scale(1.05);
}

.gim-time-slot.unavailable {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.gim-time-slot.unavailable:hover {
    border-color: #e9ecef;
    background: #f8f9fa;
    transform: none;
}

/* Form Controls */
.gim-form-group {
    margin-bottom: 25px;
}

.gim-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.gim-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.gim-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.gim-form-control::placeholder {
    color: #999;
}

/* Booking Summary */
.gim-booking-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
}

.gim-booking-summary h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
}

.gim-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.gim-summary-item:last-child {
    font-weight: bold;
    font-size: 1.1em;
    border-top: 2px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
    color: #0073aa;
}

.gim-summary-label {
    color: #666;
    font-weight: 500;
}

.gim-summary-value {
    color: #333;
    font-weight: 600;
}

/* Buttons */
.gim-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}

.gim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.gim-btn-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
}

.gim-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004666 100%);
}

.gim-btn-secondary {
    background: #6c757d;
    color: white;
}

.gim-btn-secondary:hover {
    background: #545b62;
}

.gim-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.gim-btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

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

.gim-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Form Actions */
.gim-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

/* Loading States */
.gim-loading {
    text-align: center;
    padding: 40px 20px;
}

.gim-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gim-loading p {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

/* Success State */
.gim-booking-success {
    text-align: center;
    padding: 40px 20px;
}

.gim-booking-success h3 {
    color: #28a745;
    font-size: 2em;
    margin: 0 0 20px 0;
}

.gim-booking-success .gim-booking-code {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.3em;
    font-weight: bold;
    color: #0073aa;
    margin: 20px 0;
    display: inline-block;
    border: 2px dashed #0073aa;
}

/* Calendar Widget */
.gim-booking-calendar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.gim-calendar-header {
    background: #0073aa;
    color: white;
    padding: 20px;
    text-align: center;
}

.gim-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gim-calendar-nav button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.gim-calendar-nav button:hover {
    background: rgba(255,255,255,0.3);
}

.gim-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.gim-calendar-day {
    background: #fff;
    padding: 15px 5px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gim-calendar-day:hover {
    background: #f8f9fa;
}

.gim-calendar-day.selected {
    background: #0073aa;
    color: white;
}

.gim-calendar-day.has-appointments {
    background: #e8f4fd;
}

.gim-calendar-day.has-appointments::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #0073aa;
    border-radius: 50%;
    margin: 2px auto 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gim-booking-steps {
        flex-wrap: wrap;
        padding: 20px 10px;
    }
    
    .gim-step {
        margin: 5px 10px;
    }
    
    .gim-step:not(:last-child)::after {
        display: none;
    }
    
    .gim-booking-content {
        padding: 20px;
    }
    
    .gim-services-grid,
    .gim-agents-grid {
        grid-template-columns: 1fr;
    }
    
    .gim-date-time-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gim-time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gim-form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .gim-form-actions .gim-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gim-booking-header {
        padding: 20px 15px;
    }
    
    .gim-booking-header h1 {
        font-size: 1.8em;
    }
    
    .gim-service-card,
    .gim-agent-card {
        padding: 20px;
    }
    
    .gim-time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gim-booking-summary {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .gim-form-actions,
    .gim-booking-steps {
        display: none;
    }
    
    .gim-booking-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .gim-service-card,
    .gim-agent-card,
    .gim-time-slot {
        border-width: 3px;
    }
    
    .gim-btn {
        border: 2px solid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gim-service-card,
    .gim-agent-card,
    .gim-time-slot,
    .gim-btn {
        transition: none;
    }
    
    .gim-spinner {
        animation: none;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}