/* Pet Hospital Booking CSS File - Premium Design matching Mockup */

.pet-booking-app {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
    max-width: 620px;
    margin: 40px auto;
    background: #ffffff;
    box-sizing: border-box;
    padding: 0 10px;
    /* Slight buffer for layout */
}

/* Base resets inside the app block to keep independent of theme */
.pet-booking-app *,
.pet-booking-app *::before,
.pet-booking-app *::after {
    box-sizing: border-box;
}

/* Progress Card Styling */
.pet-booking-progress-card {
    background: #ffffff;
    border: 1px solid #eaebed;
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.pet-booking-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pet-booking-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f3d2a;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.pet-booking-step-count {
    font-size: 14px;
    font-weight: 700;
    color: #0f3d2a;
}

.pet-booking-progress-bar-container {
    background: #eef2f0;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
}

.pet-booking-progress-bar {
    background: #51a27e;
    height: 100%;
    width: 25%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

/* Content & Typography */
.pet-booking-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.pet-booking-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pet-booking-service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 195px;
    justify-content: flex-start;
}

.pet-booking-service-card:hover {
    border-color: #51a27e;
    box-shadow: 0 6px 16px rgba(81, 162, 126, 0.08);
    transform: translateY(-2px);
}

.pet-booking-service-card.pet-booking-selected {
    border: 2px solid #51a27e;
    background-color: #f6fbf8;
}

.pet-booking-service-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f3d2a;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-booking-service-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
}

.pet-booking-service-icon svg {
    display: block;
}

.pet-booking-service-desc {
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* Responsive adjustment for Grid */
@media (max-width: 550px) {
    .pet-booking-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .pet-booking-services-grid {
        grid-template-columns: 1fr;
    }
}

.pet-booking-specialists-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pet-booking-doctor-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pet-booking-doctor-row:hover {
    border-color: #51a27e;
    box-shadow: 0 4px 12px rgba(81, 162, 126, 0.05);
}

.pet-booking-doctor-row.pet-booking-selected {
    border: 2px solid #51a27e;
    background-color: #f6fbf8;
}

.pet-booking-doctor-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 18px;
    flex-shrink: 0;
    background-color: #f3f4f6;
}

.pet-booking-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-booking-doctor-info {
    display: flex;
    flex-direction: column;
}

.pet-booking-doctor-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
}

.pet-booking-doctor-title {
    font-size: 11.5px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 3px;
}

.pet-booking-specialist-notes {
    font-size: 12.5px;
    color: #4b5563;
    line-height: 1.5;
    margin-top: 30px;
    padding-top: 15px;
}

.pet-booking-note-label {
    color: #111827;
    margin-bottom: 8px;
}

.pet-booking-note-footer {
    margin-top: 15px;
}

/* STEP 3: CALENDAR & DATE SELECTOR */
.pet-booking-calendar-card {
    border: 1px solid #eaebed;
    border-radius: 16px;
    padding: 20px 24px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 18px;
}

.pet-booking-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.pet-booking-month-year {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pet-booking-calendar-nav {
    display: flex;
    gap: 15px;
}

.pet-booking-cal-arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pet-booking-cal-arrow:hover {
    color: #111827;
    background-color: #f3f4f6;
}

.pet-booking-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #0f3d2a;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.pet-booking-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 12px;
    column-gap: 4px;
    text-align: center;
}

.pet-booking-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    transition: all 0.25s ease;
    width: 36px;
    height: 36px;
    margin: 0 auto;
}

.pet-booking-day-cell:hover:not(.pet-booking-day-inactive) {
    background-color: #f3f4f6;
}

.pet-booking-day-cell.pet-booking-day-inactive {
    color: #d1d5db;
    cursor: not-allowed;
}

.pet-booking-day-cell.pet-booking-day-available {
    color: #0f3d2a;
    font-weight: 700;
}

.pet-booking-day-cell.pet-booking-day-selected {
    background-color: #51a27e !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(81, 162, 126, 0.3);
}

.pet-booking-day-cell.pet-booking-day-blocked-admin {
    background-color: #fee2e2 !important;
    color: #ef4444 !important;
    border: 1px dashed #fca5a5 !important;
    cursor: help !important;
}

.pet-booking-calendar-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    margin-top: 15px;
    margin-bottom: 30px;
}

.pet-booking-status-dot {
    width: 8px;
    height: 8px;
    background-color: #00e676;
    border-radius: 50%;
    display: inline-block;
}

/* Time Slots Section */
.pet-booking-timeslots-section {
    margin-top: 25px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pet-booking-selected-date-header {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.pet-booking-availability-note {
    font-size: 11.5px;
    font-weight: 400;
    color: #6b7280;
    text-transform: none;
    margin-left: 5px;
}

.pet-booking-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pet-booking-time-slot {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #0f3d2a;
    cursor: pointer;
    background-color: #ffffff;
    transition: all 0.25s ease;
}

.pet-booking-time-slot:hover:not(.pet-booking-slot-disabled) {
    border-color: #51a27e;
    background-color: #fcfdfd;
}

.pet-booking-time-slot.pet-booking-slot-selected {
    background-color: #51a27e !important;
    color: #ffffff !important;
    border-color: #51a27e !important;
    box-shadow: 0 4px 10px rgba(81, 162, 126, 0.2);
}

.pet-booking-time-slot.pet-booking-slot-disabled {
    color: #d1d5db;
    border-color: #e5e7eb;
    background-color: #fafafa;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .pet-booking-time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pet-booking-details-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pet-booking-form-group {
    position: relative;
    width: 100%;
}

.pet-booking-form-input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    color: #1e293b;
    outline: none;
    background-color: transparent;
    transition: all 0.25s ease;
    font-family: inherit;
}

.pet-booking-form-input:focus {
    border-color: #51a27e;
    box-shadow: 0 0 0 3px rgba(81, 162, 126, 0.08);
}

/* Custom placeholder color */
.pet-booking-form-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.pet-booking-form-label {
    position: absolute;
    top: -9px;
    left: 15px;
    background-color: #ffffff;
    padding: 0 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: #1f4030;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Dropdown specific styling */
.pet-booking-form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-color: #ffffff;
}

.pet-booking-select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    display: flex;
    align-items: center;
}

/* Textarea specific styling */
.pet-booking-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.pet-booking-form-group-textarea .pet-booking-form-label {
    top: -9px;
}

/* BOTTOM NAVIGATION */
.pet-booking-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaebed;
    padding-top: 25px;
    margin-top: 30px;
}

.pet-booking-btn {
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
}

.pet-booking-btn-continue {
    background-color: #51a27e;
    color: #ffffff;
    border: none;
    padding: 16px 28px;
    margin-left: auto;
}

.pet-booking-btn-continue:hover:not(:disabled) {
    background-color: #418b6a;
    box-shadow: 0 4px 12px rgba(81, 162, 126, 0.2);
}

.pet-booking-btn-continue:disabled {
    background-color: #9bcbbb;
    cursor: not-allowed;
}

.pet-booking-btn-back {
    background: none;
    border: none;
    color: #000000;
    padding: 12px 18px;
    margin-left: 0;
}

.pet-booking-btn-back:hover {
    background-color: #f3f4f6;
    border-radius: 12px;
}

/* SUCCESS BOX STYLING */
.pet-booking-success-card {
    text-align: center;
    padding: 30px 10px 10px 10px;
}

.pet-booking-success-icon-wrapper {
    width: 68px;
    height: 68px;
    background-color: #51a27e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 8px 20px rgba(81, 162, 126, 0.2);
}

.pet-booking-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.pet-booking-success-message {
    color: #6b7280;
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.pet-booking-summary-box {
    background-color: #fcfdfd;
    border: 1px solid #eaebed;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 30px;
    text-align: left;
}

.pet-booking-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.pet-booking-summary-row:first-child {
    padding-top: 0;
}

.pet-booking-summary-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.summary-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.summary-val {
    color: #111827;
    font-weight: 700;
    font-size: 14px;
}

.pet-booking-btn-restart {
    margin: 0 auto;
    width: 100%;
}

.pet-booking-hidden {
    display: none !important;
}

/* Spinner for loading state */
.pet-booking-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 18px;
    height: 18px;
    animation: pet-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes pet-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}