@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

/* ==========================================================
   LL Service Scheduler — Frontend Styles
   Brand color: #c8a84b (golden yellow, matches site)
   Typography: Outfit only
   ========================================================== */

/* Outfit on every element inside the scheduler (overrides theme Roboto) */
#llScheduler,
#llScheduler *,
.ll-checkout-booking-summary,
.ll-checkout-booking-summary * {
    font-family: "Outfit", sans-serif !important;
}

/* ─────────────────────────────────────────
   WRAP
───────────────────────────────────────── */
.ll-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    font-family: "Outfit", sans-serif;
    color: #222;
    box-sizing: border-box;
}

/* ─────────────────────────────────────────
   PAGE TITLE
───────────────────────────────────────── */
.ll-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 28px;
    letter-spacing: -0.02em;
}

/* ─────────────────────────────────────────
   FILTERS ROW
───────────────────────────────────────── */
.ll-filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

@media (min-width: 769px) {
    .ll-filters {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }
}

/* ─────────────────────────────────────────
   GENERIC FIELD
───────────────────────────────────────── */
.ll-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ll-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.01em;
}

.ll-field select,
.ll-field input[type="text"],
.ll-field textarea {
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    width: 100%;
}

.ll-field select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.ll-field input[type="text"] {
    -webkit-appearance: none;
    appearance: none;
}

.ll-field select:focus,
.ll-field input[type="text"]:focus,
.ll-field textarea:focus {
    outline: none;
    border-color: #c8a84b;
    box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.18);
}

/* ─────────────────────────────────────────
   CATEGORY GROUP
───────────────────────────────────────── */
.ll-cat-group {
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px 22px 16px;
    margin-bottom: 24px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ll-cat-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f2f2f2;
    text-align: center;
}

/* ─────────────────────────────────────────
   SERVICES GRID
───────────────────────────────────────── */
.ll-services-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 769px) {
    .ll-services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1200px) {
    .ll-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─────────────────────────────────────────
   SERVICE ITEM
   Left: checkbox top, title + price bottom
   Right: large image (~65% width)
───────────────────────────────────────── */
.ll-svc-item {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    user-select: none;
    background: #fff;
    height: 112px;
}

.ll-svc-item:hover {
    border-color: #c8a84b;
    background: #fffdf5;
}

.ll-svc-item.ll-checked {
    border-color: #c8a84b;
    background: #fffdf5;
    box-shadow: 0 0 0 2px rgba(200, 168, 75, 0.25);
}

/* Left side: checkbox top, text bottom */
.ll-svc-left {
    flex: 0 0 34%;
    max-width: 34%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 10px 12px 14px;
    min-width: 0;
}

.ll-svc-cb {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: #c8a84b;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.ll-svc-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: auto;
}

.ll-svc-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ll-svc-price {
    font-size: 0.78rem;
    color: #c8a84b;
    font-weight: 600;
    line-height: 1.3;
}

/* Right side: fixed-ratio image crop */
.ll-svc-right {
    flex: 1;
    min-width: 0;
    height: 112px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ll-svc-item {
        height: auto;
        min-height: 112px;
    }

    .ll-svc-left {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        padding: 12px 14px;
    }

    .ll-svc-right {
        flex: 0 0 118px;
        width: 118px;
        max-width: 38%;
    }

    .ll-svc-name {
        font-size: 0.84rem;
        line-height: 1.3;
    }

    .ll-svc-price {
        font-size: 0.74rem;
    }
}

.ll-svc-right img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ll-no-img {
    width: 100%;
    height: 112px;
    background: linear-gradient(135deg, #e8f4e8 0%, #b8d4b8 50%, #8ec08e 100%);
}

/* ─────────────────────────────────────────
   BOOKING SECTION (hidden until service selected)
───────────────────────────────────────── */
.ll-booking {
    margin-top: 40px;
    padding: 28px 28px 32px;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ll-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.ll-section-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 14px;
}

/* ─────────────────────────────────────────
   CALENDAR
───────────────────────────────────────── */
.ll-calendar-wrap {
    width: 100%;
    margin-bottom: 28px;
}

.ll-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ll-cal-header button {
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 7px 16px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #444;
    transition: border-color 0.2s, background 0.2s;
    line-height: 1;
}

.ll-cal-header button:hover {
    border-color: #c8a84b;
    background: #fffdf5;
    color: #c8a84b;
}

#llCalTitle {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.ll-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 4px;
    width: 100%;
}

.ll-cal-weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    padding: 4px 0;
}

.ll-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
}

.ll-cal-cell {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 6px;
    font-weight: 500;
    border: 1.5px solid transparent;
    cursor: default;
    transition: background 0.15s, border-color 0.15s;
}

.ll-cal-empty {
    background: transparent;
}

.ll-cal-disabled {
    color: #ccc;
    cursor: not-allowed;
}

.ll-cal-available {
    color: #333;
    background: #f5f5f5;
    cursor: pointer;
}

.ll-cal-available:hover {
    background: #fff3cc;
    border-color: #c8a84b;
}

.ll-cal-selected {
    background: #c8a84b !important;
    color: #fff !important;
    font-weight: 800;
    border-color: #c8a84b !important;
}

/* ─────────────────────────────────────────
   TIME SLOTS
───────────────────────────────────────── */
.ll-times {
    margin-bottom: 28px;
}

.ll-times-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ll-time-btn {
    padding: 10px 20px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.ll-time-btn:hover {
    border-color: #c8a84b;
    background: #fffdf5;
    color: #a07e2a;
}

.ll-time-selected {
    border-color: #c8a84b !important;
    background: #c8a84b !important;
    color: #fff !important;
}

/* ─────────────────────────────────────────
   NOTES TEXTAREA
───────────────────────────────────────── */
.ll-notes-field {
    margin-top: 24px;
    margin-bottom: 24px;
}

.ll-notes-field textarea {
    width: 100%;
    resize: vertical;
}

/* ─────────────────────────────────────────
   ORDER SUMMARY
───────────────────────────────────────── */
.ll-summary {
    background: #f9f9f9;
    border: 1.5px solid #ebebeb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.ll-summary-header {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 10px;
}

.ll-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #444;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ll-summary-item:last-child {
    border-bottom: none;
}

.ll-summary-total {
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 2px solid #e8e8e8;
    text-align: right;
}

.ll-summary-total strong {
    color: #c8a84b;
    font-size: 1.15rem;
}

/* ─────────────────────────────────────────
   SUBMIT BUTTON
───────────────────────────────────────── */
.ll-btn-submit {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #c8a84b;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 14px rgba(200, 168, 75, 0.35);
    text-align: center;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .ll-btn-submit {
        display: inline-block;
        width: auto;
        border-radius: 50px;
        padding: 14px 44px;
    }
}

.ll-btn-submit:hover {
    background: #b89438;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200, 168, 75, 0.45);
}

.ll-btn-submit:active {
    transform: translateY(0);
}

.ll-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─────────────────────────────────────────
   STATUS MESSAGES
───────────────────────────────────────── */
.ll-msg {
    margin-top: 14px;
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
}

.ll-msg:not(:empty) {
    display: block;
}

.ll-msg-error {
    background: #fff5f5;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

.ll-msg-success {
    background: #f0fff8;
    color: #1a7c4f;
    border: 1px solid #b7e4cc;
}

/* ─────────────────────────────────────────
   MISC
───────────────────────────────────────── */
.ll-no-services {
    padding: 20px;
    color: #888;
    font-style: italic;
}

/* Smooth reveal animation for booking section */
.ll-booking {
    animation: llFadeIn 0.35s ease;
}

@keyframes llFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────
   CART / CHECKOUT BOOKING META
───────────────────────────────────────── */
.ll-checkout-booking-meta {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #555;
}

.ll-checkout-booking-summary {
    margin-bottom: 24px;
}

.ll-checkout-booking-summary p {
    margin: 0 0 8px;
}
