/* ================================
   GLOBAL SETTINGS
================================ */
html {
    font-size: clamp(14px, 1.1vw, 16px);
}

.pab-container {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f3f4f6;
    padding: 40px 20px;
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.pab-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.pab-header-stripe {
    height: 6px;
    background: linear-gradient(90deg, #0056b3 0%, #00a0e9 100%);
    width: 100%;
}

.pab-main-title {
    text-align: center;
    color: #1f2937 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin: 30px 0 10px !important;
}

/* ================================
   PROGRESS BAR
================================ */
.pab-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    margin-bottom: 20px;
}

.pab-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    color: #9ca3af;
    text-align: center;
}

.pab-progress-step .circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.pab-progress-step.active .circle {
    background: #0056b3;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.pab-progress-step.completed .circle {
    background: #10b981;
    color: #fff;
}

.pab-progress-step .label {
    font-size: 13px;
    font-weight: 500;
}

.pab-progress-step.active .label {
    color: #0056b3;
}

.pab-progress-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 10px;
    position: relative;
    top: -12px;
    z-index: 1;
}

/* ================================
   STEPS CONTENT
================================ */
.pab-step-content {
    display: none;
    padding: 0 40px 40px;
    animation: fadeIn 0.4s ease;
}

.pab-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 20px !important;
    color: #111827 !important;
    margin-bottom: 24px;
    font-weight: 600 !important;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

/* ================================
   SERVICE CARDS
================================ */
.pab-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.pab-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.pab-card input {
    position: absolute;
    opacity: 0;
}

.pab-card .card-content {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.25s ease;
    background: #fff;
}

.pab-card input:checked + .card-content {
    border-color: #0056b3;
    background: #f0f9ff;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
}

.pab-card .service-name {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.pab-card .service-duration {
    font-size: 13px;
    color: #6b7280;
}

/* ================================
   BUTTONS
================================ */
.pab-nav {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.pab-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pab-btn.next-btn, 
.pab-btn.submit-btn {
    background: #0056b3;
    color: white;
}

.pab-btn.next-btn:hover, 
.pab-btn.submit-btn:hover {
    background: #004494;
}

.pab-btn.next-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.pab-btn.prev-btn {
    background: #e5e7eb;
    color: #374151;
}

.pab-btn.prev-btn:hover {
    background: #d1d5db;
}

/* ================================
   DATE & TIME LAYOUT
================================ */
.pab-datetime-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.pab-calendar-wrapper, 
.pab-time-wrapper {
    flex: 1;
    min-width: 300px;
}

.pab-calendar-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
}

.calendar-days-header,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-grid {
    gap: 5px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.cal-day:hover:not(.disabled) {
    background: #f3f4f6;
}

.cal-day.selected {
    background: #0056b3;
    color: white;
}

.cal-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

/* Time Slots */
.pab-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
}

.time-slot {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover:not(.disabled) {
    border-color: #0056b3;
    color: #0056b3;
}

.time-slot.selected {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* ================================
   FORM FIELDS
================================ */
.pab-form-grid {
    display: grid;
    gap: 20px;
}

.pab-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500 !important;
}

.pab-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

.pab-input-group input:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 992px) {

    .pab-datetime-layout {
        flex-direction: column;
        gap: 20px;
    }

    .pab-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .pab-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .pab-progress-line {
        display: none;
    }

    .pab-progress-step {
        flex-direction: row;
        gap: 10px;
    }

    .pab-nav {
        flex-direction: column;
    }

    .pab-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {

    .pab-container {
        padding: 20px 10px;
    }

    .pab-service-grid {
        grid-template-columns: 1fr;
    }

    .pab-slots-grid {
        grid-template-columns: 1fr;
    }

    .cal-day {
        font-size: 12px;
    }
}
