 :root {
            --primary: #0b825e; /* Deep green */
            --secondary: #252525; /* Dark grey */
            --accent: #32ba92; /* Medium green */
            --light: #f8faf8; /* Light background */
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #eaefe9;
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Urbanist', sans-serif;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Urbanist', sans-serif;
        }

        body {
            background-color: var(--light);
            color: var(--secondary);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .container {
    min-width: 1400px;
    margin: 0 auto;       /* center */
    padding: 20px 80px;  /* left & right spacing */
    flex: 1;
}

      header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid var(--light-gray);
            margin-bottom: 30px;
            animation: fadeIn 0.5s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo-img {
            height: 40px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            transition: var(--transition);
            cursor: pointer;
        }

        .user-avatar:hover {
            transform: scale(1.1);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .booking-container {
            display: flex;
            gap: 30px;
            animation: slideUp 0.5s ease-in-out;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .profile-section {
            flex: 1;
            max-width: 350px;
            position: sticky;
            top: 20px;
            align-self: flex-start;
        }

        .profile-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            padding: 25px;
            text-align: center;
            margin-bottom: 20px;
            transition: var(--transition);
        }

        .profile-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 15px;
            border: 3px solid var(--light-gray);
            transition: var(--transition);
            cursor: pointer;
        }

        .profile-avatar:hover {
            transform: scale(1.05);
            border-color: var(--primary);
        }

        .profile-name {
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .verified-badge {
            color: var(--primary);
            margin-left: 5px;
            font-size: 16px;
        }

        .profile-title {
            color: var(--gray);
            margin-bottom: 15px;
            font-size: 16px;
        }

        .profile-bio {
            margin-bottom: 20px;
            font-size: 14px;
            color: var(--dark);
            text-align: left;
        }

        .profile-company {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
        }

        .company-logo {
            width: 20px;
            height: 20px;
            border-radius: 2px;
            margin-right: 8px;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 15px 15px;
        }

        .social-link {
            color: var(--gray);
            font-size: 20px;
            transition: var(--transition);
            width: 36px;
            height: 30px;
            border-radius: 20%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .social-link:hover {
            color: white;
            background-color: var(--primary);
            transform: translateY(-3px);
        }

        .stats {
            display: flex;
            justify-content: space-around;
            margin-top: 20px;
        }

        .stat-item {
            text-align: center;
            transition: var(--transition);
            padding: 5px;
            border-radius: 8px;
        }

        .stat-item:hover {
            background-color: rgba(0, 0, 0, 0.03);
            transform: translateY(-3px);
        }

        .stat-number {
            font-size: 20px;
            font-weight: bold;
            color: var(--primary);
        }

        .stat-label {
            font-size: 12px;
            color: var(--gray);
        }

        .booking-section {
            flex: 3;
        }

        .step-indicator {
            display: flex;
            margin-bottom: 30px;
            position: relative;
        }

        .step {
            flex: 1;
            text-align: center;
            position: relative;
            z-index: 1;
            transition: var(--transition);
        }

        .step-number {
            width: 36px;
            height: 36px;
            background-color: var(--light-gray);
            color: var(--gray);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            font-weight: bold;
            border: 2px solid var(--light-gray);
            transition: var(--transition);
        }

        .step.active .step-number {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: scale(1.1);
        }

        .step.completed .step-number {
            background-color: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        .step-title {
            font-size: 14px;
            color: var(--gray);
            transition: var(--transition);
        }

        .step.active .step-title {
            color: var(--primary);
            font-weight: bold;
        }

        .step.completed .step-title {
            color: var(--accent);
        }

        .step-indicator::after {
            content: '';
            position: absolute;
            top: 18px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: var(--light-gray);
            z-index: 0;
        }

        .step-content {
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            padding: 30px;
            margin-bottom: 20px;
            transition: var(--transition);
            animation: fadeInContent 0.5s ease-in-out;
        }

        @keyframes fadeInContent {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .step-content:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .step-content h2 {
            margin-bottom: 20px;
            font-size: 22px;
            position: relative;
            display: inline-block;
        }

        .step-content h2::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: var(--primary);
            border-radius: 3px;
        }

        .service-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .service-option {
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            padding: 20px;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .service-option:hover {
            border-color: var(--primary);
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .service-option.selected {
            border-color: var(--primary);
            background-color: rgba(5, 90, 65, 0.1);
        }

        .service-option.selected::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 10px;
            right: 10px;
            width: 24px;
            height: 24px;
            background-color: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .service-name {
            font-weight: bold;
            margin-bottom: 5px;
        }

        .service-duration {
            color: var(--gray);
            font-size: 14px;
            margin-bottom: 10px;
        }

        .service-price {
            font-weight: bold;
            color: var(--primary);
            font-size: 18px;
        }

        .service-price.free {
            color: var(--accent);
        }

        .dynamic-pricing {
            font-size: 12px;
            color: var(--accent);
            margin-top: 5px;
            font-style: italic;
        }

        .calendar-container {
            margin-bottom: 20px;
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .calendar-title {
            font-size: 18px;
            font-weight: bold;
        }

        .calendar-nav {
            display: flex;
            gap: 10px;
        }

        .calendar-nav button {
            background: none;
            border: 1px solid var(--light-gray);
            border-radius: 4px;
            padding: 5px 10px;
            cursor: pointer;
            transition: var(--transition);
        }

        .calendar-nav button:hover {
            background-color: var(--light-gray);
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
        }

        .calendar-day-header {
            text-align: center;
            font-weight: bold;
            font-size: 14px;
            padding: 5px;
            color: var(--gray);
        }

        .calendar-day {
            /* aspect-ratio: 1; */
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .calendar-day:hover {
            background-color: var(--light-gray);
        }

        .calendar-day.available {
            background-color: rgba(5, 90, 65, 0.1);
            color: var(--primary);
            font-weight: bold;
        }

        .calendar-day.available:hover {
            background-color: rgba(5, 90, 65, 0.2);
        }

        .calendar-day.selected {
            background-color: var(--primary);
            color: white;
            transform: scale(1.05);
        }

        .calendar-day.disabled {
            color: var(--light-gray);
            cursor: not-allowed;
        }

        .calendar-day.today {
            font-weight: bold;
            position: relative;
        }

        .calendar-day.today::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            width: 5px;
            height: 5px;
            background-color: var(--accent);
            border-radius: 50%;
        }

        .time-slots {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
            margin-top: 20px;
        }

        .time-slot {
            padding: 8px 10px;
            border: 1px solid var(--light-gray);
            border-radius: 4px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .time-slot:hover {
            border-color: var(--primary);
            transform: translateY(-3px);
        }

        .time-slot.selected {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: scale(1.05);
        }

        .time-slot.disabled {
            color: var(--light-gray);
            cursor: not-allowed;
        }

        .time-slot.booked {
            position: relative;
            color: var(--light-gray);
            cursor: not-allowed;
        }

        .time-slot.booked::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 10%;
            width: 80%;
            height: 1px;
            background-color: var(--accent);
            transform: rotate(-15deg);
        }

        .form-group {
            margin-bottom: 20px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--light-gray);
            border-radius: 4px;
            font-size: 16px;
            transition: var(--transition);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(5, 90, 65, 0.1);
        }

        .form-control.invalid {
            border-color: var(--accent);
        }

        .error-message {
            color: var(--accent);
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .details-container {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .booking-summary {
            flex: 1;
            background-color: var(--light-gray);
            padding: 20px;
            border-radius: 8px;
        }

        .details-form {
            flex: 1;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .summary-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .summary-label {
            color: var(--gray);
        }

        .summary-value {
            font-weight: bold;
        }

        .payment-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .payment-option {
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .payment-option:hover {
            border-color: var(--primary);
            transform: translateY(-3px);
        }

        .payment-option.selected {
            border-color: var(--primary);
            background-color: rgba(5, 90, 65, 0.1);
            transform: scale(1.05);
        }

        .payment-icon {
            font-size: 24px;
            margin-bottom: 10px;
        }

        .payment-name {
            font-size: 14px;
        }

        .btn {
            display: inline-block;
            padding: 12px 24px;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .btn:hover {
            background-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(0, 0, 0, 0.1);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        .btn:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        }

        .btn-secondary {
            background-color: white;
            color: var(--secondary);
            border: 1px solid var(--secondary);
        }

        .btn-secondary:hover {
            background-color: var(--light-gray);
        }

        .btn-accent {
            background-color: var(--accent);
            color: white;
        }

        .btn-accent:hover {
            background-color: #147a5d;
        }

        .action-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
        }

        .hidden {
            display: none;
        }

        .confirmation-icon {
            font-size: 34px;
            color: var(--accent);
            margin-bottom: 20px;
            animation: bounce 1s;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
            40% {transform: translateY(-30px);}
            60% {transform: translateY(-15px);}
        }

        .confirmation-message {
            text-align: center;
            margin-bottom: 30px;
        }

        .confirmation-message h2 {
            margin-bottom: 10px;
            font-size: 28px;
        }

        .confirmation-details {
            background-color: var(--light-gray);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        .confirmation-qr {
            width: 150px;
            height: 150px;
            margin: 20px auto;
            background-color: white;
            padding: 10px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .confirmation-qr img {
            max-width: 100%;
            max-height: 100%;
        }

        .tooltip {
            position: relative;
            display: inline-block;
        }

        .tooltip .tooltiptext {
            visibility: hidden;
            width: 200px;
            background-color: var(--secondary);
            color: white;
            text-align: center;
            border-radius: 6px;
            padding: 8px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 12px;
            font-weight: normal;
        }

        .tooltip .tooltiptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: var(--secondary) transparent transparent transparent;
        }

        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

        .loading-spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-left: 10px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .btn-loading .loading-spinner {
            display: inline-block;
        }

      

        .otp-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .otp-input {
            width: 50px;
            height: 50px;
            text-align: center;
            font-size: 20px;
            border: 1px solid var(--light-gray);
            border-radius: 4px;
            transition: var(--transition);
        }

        .otp-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(5, 90, 65, 0.1);
        }

        .resend-otp {
            color: var(--primary);
            cursor: pointer;
            font-size: 14px;
            margin-top: 10px;
            display: inline-block;
        }

        .resend-otp:hover {
            text-decoration: underline;
        }

        footer {
            background-color: var(--secondary);
            color: white;
            text-align: center;
            padding: 15px 0;
            margin-top: 40px;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        @media (max-width: 768px) {
            .booking-container {
                flex-direction: column;
            }

            .profile-section {
                max-width: 100%;
                position: static;
            }

            .service-options {
                grid-template-columns: 1fr 1fr;
            }

            .payment-options {
                grid-template-columns: 1fr;
            }

            .details-container {
                flex-direction: column;
            }
        }

        /* Tablet (landscape & portrait, ≤1024px) */
@media (max-width: 1024px) {
    .container {
        min-width: 100%;
        padding: 20px 40px;
    }

    .booking-container {
        flex-direction: column;
        gap: 20px;
    }

    .profile-section {
       display: none;
    }

    .service-name {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 14px;
        }

     .dynamic-pricing {
        display: none;
     }

    .booking-section {
        order: 1;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .details-container {
        flex-direction: column;
        gap: 15px;
    }

    .step-indicator {
        flex-wrap: wrap;
        row-gap: 15px;
    }
    .user-avatar {
        display: none;
    }
    .confirmation-qr
    {
        width: 30px;
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .container {
        padding: 15px 20px;
    }

    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .user-avatar {
        display: none;
    }
    .booking-container {
        flex-direction: column;
        gap: 15px;
    }

    .profile-card {
        padding: 15px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
    }

    .profile-name {
        font-size: 18px;
    }

    .step-indicator {
        display: none;
    }

    .step {
        text-align: left;
        flex: unset;
    }

    .step-title {
        font-size: 13px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .service-options,
    .payment-options {
        grid-template-columns: 1fr 1fr;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr); /* 7 days fit perfectly */
        gap: 2px; /* tighter spacing */
    }

    .calendar-day-header {
        font-size: 10px;   /* smaller text */
        padding: 2px;      /* compact headers */
    }

    
    .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }

    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }

    .otp-container {
        gap: 5px;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }

    footer {
        font-size: 13px;
        padding: 10px 0;
    }
}

