/* ============================================
   INDEX.HTML CUSTOM STYLES
   Extracted from inline styles for optimization
   ============================================ */

/* Lazy loading styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: #f0f0f0;
    min-height: 200px;
}

.lazy-image.loaded {
    opacity: 1;
    background: transparent;
}

.image-container {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.image-container.loading .loading-spinner {
    display: block;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Portfolio and Gallery Grids */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

/* Connection status indicator */
.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: none;
}

.connection-status.connected {
    background: rgba(46, 204, 113, 0.8);
}

.connection-status.connecting {
    background: rgba(241, 196, 15, 0.8);
}

.connection-status.error {
    background: rgba(231, 76, 60, 0.8);
}

.hidden {
    display: none !important;
}

/* Booking Toggle Buttons */
.booking-toggle {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.booking-toggle-buttons {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.3rem;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toggle-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.toggle-btn.active {
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Forms Container */
.forms-container {
    position: relative;
}

#booking-form {
    display: none;
}

#booking-form.active {
    display: block;
}

/* Booking Steps Indicator */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.booking-step.active .step-number {
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    border-color: #4ecdc4;
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.booking-step.completed .step-number {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.booking-step.active .step-label {
    color: #4ecdc4;
    font-weight: 500;
}

/* Booking Form Steps */
.booking-form-step {
    display: none;
}

.booking-form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
}

.service-card.selected {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.service-card i {
    font-size: 3rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.service-card .price {
    display: block;
    color: #ff6b6b;
    font-weight: 600;
    margin: 0.5rem 0;
}

.service-card .description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.time-slot {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.time-slot:hover {
    border-color: rgba(78, 205, 196, 0.5);
    background: rgba(78, 205, 196, 0.05);
}

.time-slot.selected {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
    font-weight: 600;
}

/* Booking Navigation */
.booking-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.booking-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-btn.next,
.booking-btn.submit {
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    color: white;
    margin-left: auto;
}

.booking-btn.next:hover,
.booking-btn.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.booking-btn.prev {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.booking-btn.prev:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Booking Summary */
.booking-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.summary-value {
    color: white;
    font-weight: 600;
}

/* Booking Success */
.booking-success {
    display: none;
    text-align: center;
    padding: 3rem;
    animation: fadeInUp 0.5s ease;
}

.booking-success.show {
    display: block;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

.booking-success h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.booking-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: left;
}

.booking-details p {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .toggle-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .booking-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}