/**
 * Schöneberg Kosmetik Booking System - Frontend Styles
 * assets/booking.css
 */

/* Container und Basis */
.scb-booking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* Header */
.scb-booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.scb-booking-header h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 300;
}

/* Progress Bar */
.scb-progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
    padding: 0 20px;
}

.scb-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.scb-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.scb-progress-step .step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #e0e0e0;
    color: #999;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.scb-progress-step.active .step-number {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.scb-progress-step.completed .step-number {
    background: #81C784;
    color: white;
}

.scb-progress-step .step-title {
    display: block;
    font-size: 0.85em;
    color: #666;
}

.scb-progress-step.active .step-title {
    color: #4CAF50;
    font-weight: 500;
}

/* Content Area */
.scb-booking-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* Steps */
.scb-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.scb-step.active {
    display: block;
}

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

.scb-step h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 400;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 15px;
}

/* Service Grid */
.scb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.scb-service-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scb-service-card:hover {
    border-color: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.15);
}

.scb-service-card.selected {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    border-color: #4CAF50;
}

.scb-service-card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 500;
}

.scb-service-card p {
    font-size: 0.9em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.scb-service-card .scb-service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.scb-service-card .duration {
    opacity: 0.8;
}

.scb-service-card .price {
    font-weight: bold;
    font-size: 1.1em;
}

/* Questions */
.scb-question-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.scb-question-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.1em;
    color: #2c3e50;
}

.scb-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.scb-radio-option {
    position: relative;
    cursor: pointer;
}

.scb-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.scb-radio-option span {
    display: block;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.scb-radio-option input[type="radio"]:checked + span {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.scb-radio-option:hover span {
    border-color: #4CAF50;
}

.scb-voucher-code {
    margin-top: 20px;
}

.scb-voucher-code input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
}

/* Calendar */
.scb-calendar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.scb-calendar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

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

.scb-calendar-header button {
    background: #4CAF50;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

.scb-calendar-header button:hover {
    background: #45a049;
}

.scb-cal-month {
    font-size: 1.2em;
    font-weight: 500;
    color: #2c3e50;
}

.scb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.scb-calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
    padding: 5px;
}

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

.scb-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.scb-cal-day.available:hover {
    background: #e8f5e9;
    transform: scale(1.05);
}

.scb-cal-day.selected {
    background: #4CAF50;
    color: white;
}

.scb-cal-day.disabled,
.scb-cal-day.prev-month,
.scb-cal-day.next-month {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.scb-cal-day.weekend {
    background: #fff3e0;
}

/* Time Slots */
.scb-time-slots {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.scb-time-slots h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1em;
}

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

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

.scb-time-slot:hover {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.scb-time-slot.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Personal Data Form */
#scb-personal-form {
    max-width: 600px;
    margin: 0 auto;
}

.scb-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 0px;
}

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

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

.scb-form-group input,
.scb-form-group select,
.scb-form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.scb-form-group input:focus,
.scb-form-group select:focus,
.scb-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.scb-checkbox-group {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.scb-checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.scb-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.scb-checkbox-group span {
    line-height: 1.5;
    color: #555;
}

/* Summary */
.scb-booking-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.scb-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.scb-summary-item:last-child {
    border-bottom: none;
}

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

.scb-summary-item .value {
    font-weight: 600;
    color: #2c3e50;
}

/* Success Message */
.scb-success-message {
    text-align: center;
    padding: 40px;
}

.scb-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.scb-success-message h3 {
    color: #4CAF50;
    margin-bottom: 20px;
}

.scb-success-message p {
    color: #666;
    line-height: 1.6;
}

/* Navigation */
.scb-booking-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.scb-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scb-btn-back {
    background: #e0e0e0;
    color: #333;
}

.scb-btn-back:hover {
    background: #d0d0d0;
}

.scb-btn-next {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.scb-btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.scb-btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Loading */
.scb-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scb-booking-container {
        padding: 10px;
    }
    
    .scb-booking-content {
        padding: 20px;
    }
    
    .scb-progress-bar {
        padding: 0;
    }
    
    .scb-progress-step .step-title {
        font-size: 0.7em;
    }
    
    .scb-services-grid {
        grid-template-columns: 1fr;
    }
    
    .scb-calendar-container {
        grid-template-columns: 1fr;
    }
    
    .scb-form-row {
        grid-template-columns: 1fr;
    }
    
    .scb-booking-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .scb-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .scb-booking-header h2 {
        font-size: 1.8em;
    }
    
    .scb-step h3 {
        font-size: 1.4em;
    }
    
    .scb-progress-bar {
        display: none;
    }
}