/* ══════════════════════════════════════════════════════════════════════════════
   HaloClean Booking – Service Cards & CTA
   Matches the Laravel booking layout design tokens.
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    --hc-brand:       #001837;
    --hc-brand-dark:  #0a2a52;
    --hc-accent:      #FBA311;
    --hc-bg:          #f4f6fb;
    --hc-card-shadow: 0 1px 8px rgba(0, 0, 0, .07);
    --hc-text:        #001837;
    --hc-muted:       #6c757d;
    --hc-border:      #edf0f5;
    --hc-radius:      14px;
}

/* ── Services Section ──────────────────────────────────────────────────────── */

.haloclean-services-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.haloclean-services-header {
    text-align: center;
    margin-bottom: 2rem;
}

.haloclean-services-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hc-text);
    margin: 0 0 .35rem;
}

.haloclean-services-subtitle {
    font-size: .95rem;
    color: var(--hc-muted);
    margin: 0;
}

/* ── Service Card Grid ─────────────────────────────────────────────────────── */

.haloclean-services-grid {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

/* ── Service Card (iOS menu row) ───────────────────────────────────────────── */

.haloclean-service-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .85rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--hc-border);
    padding: .5rem .75rem;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    cursor: pointer;
    position: relative;
}

.haloclean-service-card:hover {
    background: #f8f9fb;
}

.haloclean-service-card:active {
    background: #f0f2f5;
}

.haloclean-service-card:focus-visible {
    outline: 2px solid var(--hc-brand);
    outline-offset: 2px;
}

/* Divider between rows (except last) */
.haloclean-service-card + .haloclean-service-card {
    border-top: none;
}

/* Icon */
.haloclean-service-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hc-bg);
    border-radius: 11px;
}

.haloclean-service-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Body */
.haloclean-service-body {
    flex: 1;
    min-width: 0;
}

.haloclean-service-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--hc-text);
    margin: 0;
    line-height: 1.3;
}

.haloclean-service-desc {
    font-size: .975rem;
    color: var(--hc-muted);
    margin: .1rem 0 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.haloclean-service-price {
    display: inline-block;
    font-size: .94rem;
    font-weight: 600;
    color: var(--hc-brand);
    margin-top: .1rem;
}

.haloclean-badge-enquiry {
    display: inline-block;
    font-size: .65rem;
    font-weight: 500;
    color: var(--hc-muted);
    background: #f1f3f5;
    border-radius: 4px;
    padding: .1rem .4rem;
}

/* Arrow — right side chevron */
.haloclean-service-arrow {
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hc-brand);
    line-height: 1;
    transition: transform .15s;
}

.haloclean-service-card:hover .haloclean-service-arrow {
    transform: translateX(3px);
}

/* Empty state */
.haloclean-services-empty {
    text-align: center;
    padding: 2rem;
    color: var(--hc-muted);
}

/* ── CTA Section ───────────────────────────────────────────────────────────── */

.haloclean-cta {
    background: linear-gradient(135deg, #001837 0%, #0a2a52 100%);
    border-radius: var(--hc-radius);
    padding: 3.5rem 1.5rem;
    text-align: center;
    margin: 1rem 0;
}

.haloclean-cta-inner {
    max-width: 560px;
    margin: 0 auto;
}

.haloclean-cta-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .65rem;
    line-height: 1.2;
}

.haloclean-cta-subheading {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .88);
    margin: 0 0 1.75rem;
    line-height: 1.5;
}

.haloclean-btn-book {
    display: inline-block;
    background: #FBA311;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .85rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
}

.haloclean-btn-book:hover {
    background: #e6951a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 163, 17, .35);
}

.haloclean-btn-book:active {
    transform: translateY(0);
}

.haloclean-btn-book--secondary {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    padding: .65rem 2rem;
    opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Quote Grid — 3-column wide cards
   ══════════════════════════════════════════════════════════════════════════════ */

.haloclean-quote-section {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.haloclean-quote-header {
    display: none;
}

.haloclean-quote-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.haloclean-quote-grid > * {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 200px;
}

@media (max-width: 768px) {
    .haloclean-quote-grid > * {
        flex: 1 1 100%;
    }
}

/* Card */
.haloclean-quote-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    border: 1px solid #e9ecef;
    padding: 1.25rem 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .15s;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.haloclean-quote-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}

.haloclean-quote-card:active {
    transform: scale(.98);
}

.haloclean-quote-card:focus-visible {
    outline: 2px solid var(--hc-brand);
    outline-offset: 2px;
}

/* Icon */
.haloclean-quote-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hc-bg);
    border-radius: 16px;
    margin-bottom: .5rem;
}

.haloclean-quote-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* Text */
.haloclean-quote-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hc-text);
    margin: 0 0 .15rem;
    line-height: 1.3;
}

.haloclean-quote-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--hc-muted);
    margin: 0 0 .5rem;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.haloclean-quote-price {
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    color: var(--hc-brand);
    margin-top: auto;
    margin-bottom: .25rem;
}

/* CTA link at bottom */
.haloclean-quote-arrow {
    display: inline-block;
    margin-top: auto;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    color: var(--hc-brand);
    transition: color .15s;
}

.haloclean-quote-card:hover .haloclean-quote-arrow {
    color: var(--hc-brand-dark);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 576px) {
    .haloclean-cta {
        padding: 2.5rem 1rem;
    }

    .haloclean-cta-heading {
        font-size: 1.5rem;
    }

    .haloclean-cta-subheading {
        font-size: .95rem;
    }

    .haloclean-service-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .haloclean-services-section {
        padding: 1.5rem .75rem;
    }

    .haloclean-promo {
        border-radius: 16px !important;
    }

    .haloclean-promo-highlight {
        font-size: 1.3rem !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   Promo CTA — visual service tile picker
   ══════════════════════════════════════════════════════════════════════════════ */

.haloclean-promo {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #565656;
}

.haloclean-promo-content {
    display: flex;
    flex-direction: column;
}

.haloclean-promo-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #001837;
    margin: 0 0 .25rem;
    line-height: 1.3;
}

.haloclean-promo-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 400;
    color: #8a94a6;
    margin: 0 0 1rem;
    line-height: 1.45;
}

.haloclean-promo-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Service tiles ─────────────────────────────────────────────────────────── */

/* Hide the native radio — position:absolute so Safari doesn't reserve space */
.hc-promo-tile-radio {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    -webkit-appearance: none;
    appearance: none;
}

.hc-promo-services {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 5px;
}

.hc-promo-tile {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    gap: 10px;
    position: relative;
    background: #f8f9fb;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    margin: 0;
    line-height: normal;
    -webkit-tap-highlight-color: transparent;
}

.hc-promo-tile:hover {
    border-color: #dde1e8;
}

/* Selected state — :has() + JS fallback class */
.hc-promo-tile:has(input:checked),
.hc-promo-tile--selected {
    border-color: #001837;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 24, 55, .06);
}

.hc-promo-tile-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    transition: background .15s;
}

.hc-promo-tile:has(input:checked) .hc-promo-tile-icon,
.hc-promo-tile--selected .hc-promo-tile-icon {
    background: #e8f4fd;
}

.hc-promo-tile-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.hc-promo-tile-body {
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.hc-promo-tile-name {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #001837;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-promo-tile-price {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #8a94a6;
    line-height: 1.2;
    margin-top: 2px;
}

/* Checkmark circle */
.hc-promo-tile-check {
    width: 18px;
    height: 18px;
    min-width: 18px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    border: 2px solid #dde1e8;
    border-radius: 50%;
    margin-left: auto;
    transition: border-color .15s, background .15s;
    background: transparent;
    background-size: 10px 10px;
    background-position: center;
    background-repeat: no-repeat;
}

.hc-promo-tile:has(input:checked) .hc-promo-tile-check,
.hc-promo-tile--selected .hc-promo-tile-check {
    border-color: #001837;
    background-color: #001837;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ── Progressive disclosure fields ─────────────────────────────────────────── */

.hc-promo-fields {
    display: none;
    -webkit-flex-direction: column;
    flex-direction: column;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid #edf0f5;
}

.hc-promo-fields--visible {
    display: -webkit-flex;
    display: flex;
    -webkit-animation: hcSlideIn .2s ease-out;
    animation: hcSlideIn .2s ease-out;
}

@-webkit-keyframes hcSlideIn {
    from { opacity: 0; -webkit-transform: translateY(6px); }
    to   { opacity: 1; -webkit-transform: translateY(0); }
}

@keyframes hcSlideIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.haloclean-promo-label {
    display: block;
    float: none;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #8a94a6;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: 0;
    margin-bottom: .25rem;
}

.haloclean-promo-input {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    padding: .75rem .85rem;
    background: #f8f9fb;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    color: #2d3748;
    outline: none;
    transition: border-color .15s;
}

.haloclean-promo-input:focus {
    border-color: #6382F7;
    background: #fff;
}

.haloclean-promo-input::placeholder {
    color: #adb5bd;
}

.haloclean-promo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    margin-top: .65rem;
    font-family: 'Poppins', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    background: #001837;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .7rem 1rem;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    transition: background .15s, transform .1s, box-shadow .15s;
}

.haloclean-promo-btn:hover {
    background: #0a2a52;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 24, 55, .2);
}

.haloclean-promo-btn:active {
    transform: translateY(0);
}

.haloclean-promo-btn-arrow {
    font-size: 1rem;
    transition: transform .15s;
}

.haloclean-promo-btn:hover .haloclean-promo-btn-arrow {
    transform: translateX(3px);
}

/* ── App Store Buttons ── */

.haloclean-app-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    padding: 0.5rem 0;
}

.haloclean-app-buttons--center { justify-content: center; }
.haloclean-app-buttons--left   { justify-content: flex-start; }
.haloclean-app-buttons--right  { justify-content: flex-end; }

.haloclean-app-badge {
    flex: 1 1 0;
    min-width: 0;
    transition: opacity .15s, transform .15s;
}

.haloclean-app-badge img {
    width: 100%;
    height: auto;
    display: block;
}

.haloclean-app-buttons--small .haloclean-app-badge img {
    width: 100%;
    height: auto;
}

.haloclean-app-badge:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════════════
   Cancellation / Modification Policy Tables
   ══════════════════════════════════════════════════════════════════════════════ */

.hc-policy-tables {
    color: #565656;
}

.hc-policy-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--hc-border, #edf0f5);
    border-radius: 12px;
    overflow: hidden;
}

.hc-policy-table th {
    background: var(--hc-bg, #f4f6fb);
    color: var(--hc-muted, #6c757d);
    text-align: left;
    padding: .6rem 1rem;
    font-weight: 500;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    border-bottom: 1px solid var(--hc-border, #edf0f5);
}

.hc-policy-table td {
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--hc-border, #edf0f5);
    color: var(--hc-text, #001837);
}

.hc-policy-table tbody tr:last-child td {
    border-bottom: none;
}

.hc-policy-blocked td {
    color: #dc2626;
    font-weight: 600;
}

@media (max-width: 576px) {
    .hc-policy-table th,
    .hc-policy-table td {
        padding: .5rem .65rem;
        font-size: .8rem;
    }
}
