/* BG Hair - Randevu Page Styles */

/* Randevu Hero Section */
.randevu-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.randevu-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.randevu-hero .hero-content {
    position: relative;
    z-index: 2;
}

.randevu-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.randevu-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Randevu Section */
.randevu-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.randevu-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Steps */
.form-step {
    display: none;
    background: var(--text-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

.step-header {
    text-align: center;
    margin-bottom: 3rem;
}

.step-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Services Selection */
.services-selection {
    margin-bottom: 2rem;
}

/* Campaign Badge */
.service-option {
    position: relative;
}

.service-option.has-campaign {
    border: 2px solid #ec4899 !important;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.campaign-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.campaign-badge i {
    font-size: 0.7rem;
}

.campaign-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 0.25rem;
    font-size: 0.85rem;
    color: #ec4899;
    font-weight: 500;
}

.service-category {
    margin-bottom: 3rem;
}

.service-category h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.service-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-option {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.service-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-option.selected {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
}

.service-checkbox input[type="checkbox"] {
    display: none;
}

.service-checkbox label {
    width: 24px;
    height: 24px;
    background: var(--text-white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-checkbox input[type="checkbox"]:checked + label {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.service-checkbox input[type="checkbox"]:checked + label::after {
    content: '✓';
    color: var(--text-white);
    font-weight: bold;
    font-size: 14px;
}

.service-option .service-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--text-white);
}

.service-option h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-option p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.service-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Selected Services Summary */
.selected-services-summary {
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.selected-services-summary h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.selected-service-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-service-item .remove-btn {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.selected-service-item .remove-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.total-info {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
    text-align: center;
}

.total-duration {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Calendar Styles */
.calendar-container {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.calendar-nav {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.calendar-nav:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.calendar-nav:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day-header {
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--text-white);
    font-weight: 500;
    min-height: 30px;
    font-size: 0.85rem;
}

.calendar-day:hover {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

.calendar-day.available {
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day.available:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.calendar-day.available::after {
    content: "✓";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.calendar-day.available:hover::after {
    opacity: 1;
}

.calendar-day.unavailable {
    color: var(--text-light);
    background: #f8f9fa;
    cursor: not-allowed;
}

.calendar-day.unavailable:hover {
    border-color: transparent;
    background: #f8f9fa;
}

.calendar-day.today {
    background: rgba(212, 175, 55, 0.3);
    color: var(--text-dark);
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.calendar-day.selected {
    background: var(--primary-color) !important;
    color: var(--text-white) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3) !important;
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: var(--text-light);
    opacity: 0.5;
}

/* Time Slots */
.time-slots-container {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.selected-date-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 10px;
    font-weight: bold;
}

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

.time-slot {
    padding: 1rem;
    background: var(--text-white);
    border: 2px solid transparent;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

.time-slot.available {
    color: var(--text-dark);
}

.time-slot.unavailable {
    color: var(--text-light);
    background: #f8f9fa;
    cursor: not-allowed;
}

.time-slot.unavailable:hover {
    border-color: transparent;
    background: #f8f9fa;
}

.time-slot.selected {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-dark);
}

/* Customer Information */
.customer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.appointment-summary {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    height: fit-content;
}

.appointment-summary h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.summary-item.total {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
}

.summary-item .label {
    color: var(--text-light);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-fields .form-group {
    margin-bottom: 0;
}

.form-fields label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-fields input,
.form-fields textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--text-white);
}

.form-fields input:focus,
.form-fields textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-fields textarea {
    resize: vertical;
    min-height: 100px;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.step-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contact Info Section */
.contact-info-section {
    padding: 4rem 0;
    background: var(--text-white);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .randevu-hero h1 {
        font-size: 2rem;
    }
    
    .randevu-hero p {
        font-size: 1rem;
    }
    
    .form-step {
        padding: 2rem 1.5rem;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .customer-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .time-slot {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .randevu-hero {
        padding: 6rem 0 3rem;
    }
    
    .form-step {
        padding: 1.5rem 1rem;
    }
    
    .calendar-container,
    .time-slots-container,
    .appointment-summary {
        padding: 1.5rem;
    }
    
    .service-option {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Animation for form steps */
.form-step {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Progress indicator */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Success/Error Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.message i {
    font-size: 1.2rem;
}
