/* Berber Randevu Sistemi - Frontend Styles */

.brs-booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.brs-booking-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.brs-form-header {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 30px;
    text-align: center;
}

.brs-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.brs-form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.brs-form-step {
    padding: 30px;
    min-height: 400px;
}

.brs-form-step h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

/* Hizmet Kartları */
.brs-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.brs-service-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.brs-service-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.brs-service-card.selected {
    border-color: #3498db;
    background: #f8f9fa;
}

.brs-service-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.brs-service-info p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.brs-service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brs-price {
    font-size: 20px;
    font-weight: bold;
    color: #2ecc71;
}

.brs-duration {
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.brs-service-select {
    position: absolute;
    top: 15px;
    right: 15px;
}

.brs-service-select input[type="radio"] {
    width: 20px;
    height: 20px;
}

/* Berber Kartları */
.brs-berbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.brs-berber-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.brs-berber-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.brs-berber-card.selected {
    border-color: #3498db;
    background: #f8f9fa;
}

.brs-berber-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #e9ecef;
}

.brs-berber-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brs-berber-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.brs-berber-info p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.brs-berber-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.brs-stars {
    color: #ffc107;
    font-size: 16px;
}

.brs-rating-text {
    color: #666;
    font-size: 14px;
}

.brs-berber-select {
    position: absolute;
    top: 15px;
    right: 15px;
}

.brs-berber-select input[type="radio"] {
    width: 20px;
    height: 20px;
}

/* Tarih ve Saat Seçimi */
.brs-datetime-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.brs-date-picker label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.brs-date-picker input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

.brs-date-picker input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
}

.brs-time-slots label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

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

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

.brs-time-slot:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.brs-time-slot.selected {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.brs-time-slot.disabled {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

/* İletişim Formu */
.brs-contact-form .brs-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.brs-contact-form .brs-form-group {
    flex: 1;
}

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

.brs-form-group input,
.brs-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.brs-form-group input:focus,
.brs-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.brs-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Randevu Özeti */
.brs-booking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border: 2px solid #e9ecef;
}

.brs-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.brs-summary-item.brs-total {
    font-weight: bold;
    font-size: 18px;
    color: #2ecc71;
    border-top: 2px solid #e9ecef;
    margin-top: 10px;
    padding-top: 15px;
}

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

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

/* Navigasyon */
.brs-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.brs-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.brs-btn-primary {
    background: #3498db;
    color: white;
}

.brs-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

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

.brs-btn-secondary:hover {
    background: #5a6268;
}

.brs-btn-success {
    background: #2ecc71;
    color: white;
}

.brs-btn-success:hover {
    background: #27ae60;
    transform: translateY(-1px);
}

/* Progress Bar */
.brs-form-progress {
    padding: 20px 30px;
    background: #f8f9fa;
}

.brs-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.brs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.brs-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brs-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.brs-step.active {
    background: #3498db;
    color: white;
}

.brs-step.completed {
    background: #2ecc71;
    color: white;
}

/* Success Modal */
.brs-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.brs-success-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.brs-success-icon {
    width: 60px;
    height: 60px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.brs-success-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.brs-success-content p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brs-booking-form-container {
        padding: 10px;
    }
    
    .brs-services-grid {
        grid-template-columns: 1fr;
    }
    
    .brs-berbers-grid {
        grid-template-columns: 1fr;
    }
    
    .brs-datetime-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brs-contact-form .brs-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .brs-form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .brs-form-step {
        padding: 20px;
        min-height: 300px;
    }
    
    .brs-form-header {
        padding: 20px;
    }
    
    .brs-form-header h2 {
        font-size: 24px;
    }
    
    .brs-progress-steps {
        justify-content: center;
        gap: 10px;
    }
    
    .brs-step {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}

/* Loading State */
.brs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.brs-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

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

/* Error States */
.brs-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

.brs-form-group.error input,
.brs-form-group.error textarea {
    border-color: #e74c3c;
}

/* Hover Effects */
.brs-service-card:hover .brs-price,
.brs-berber-card:hover .brs-berber-info h4 {
    color: #3498db;
}

.brs-service-card.selected .brs-price {
    color: #3498db;
}

.brs-berber-card.selected .brs-berber-avatar {
    border-color: #3498db;
}

/* Animation */
.brs-form-step {
    animation: fadeIn 0.5s ease-in-out;
}

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