/* ===================================================
   SERVICES PAGE — services.css
   Extends styles.css (must be loaded after it)
   =================================================== */

/* Active nav link */
.nav-active {
    color: #816e7c !important;
    font-weight: 600;
}

/* ===================================================
   SERVICES HERO
   =================================================== */
.services-hero {
    height: 280px;
    background-color: #806e7c;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.services-hero::before {
    display: none;
}

.services-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.services-hero-content h2 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.services-hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.88;
}

/* ===================================================
   SERVICES SECTION
   =================================================== */
.sp-section {
    background-color: #fbecfb;
    padding: 55px 40px 75px;
    min-height: 60vh;
}

/* ---- Filter Row ---- */
.sp-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}

.sp-filter-btn {
    padding: 10px 24px;
    border: 2px solid #816e7c;
    background: transparent;
    color: #816e7c;
    border-radius: 30px;
    font-size: 0.92rem;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.22s, color 0.22s, transform 0.1s;
}

.sp-filter-btn:hover {
    background-color: rgba(129, 110, 124, 0.1);
}

.sp-filter-btn.active {
    background-color: #816e7c;
    color: #fbecfb;
}

.sp-filter-btn:active {
    transform: scale(0.97);
}

/* ---- Cards Grid ---- */
.sp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1300px;
    margin: 0 auto;
}

/* ---- Service Card ---- */
.sp-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(129, 110, 124, 0.13);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.sp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(129, 110, 124, 0.24);
}

.sp-card-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.sp-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.sp-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #816e7c;
    color: #fbecfb;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    padding: 4px 11px;
    border-radius: 14px;
    text-transform: uppercase;
}

.sp-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sp-card-title {
    font-size: 1.1rem;
    color: #2c2c2c;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.35;
}

.sp-card-subtitle {
    font-size: 0.78rem;
    color: #816e7c;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sp-card-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 12px;
    flex: 1;
}

/* Price breakdown list */
.sp-card-price-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    border-top: 1px solid #f0e4ef;
    padding-top: 10px;
}

.sp-card-price-list li {
    font-size: 0.83rem;
    color: #555;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-card-price-list li::before {
    content: '›';
    color: #816e7c;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

/* Card footer */
.sp-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #f0e4ef;
    padding-top: 14px;
    margin-top: auto;
}

.sp-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-card-duration {
    font-size: 0.8rem;
    color: #999;
}

.sp-card-price {
    font-size: 1.28rem;
    font-weight: 700;
    color: #816e7c;
}

/* Book button */
.sp-book-btn {
    width: 100%;
    padding: 12px;
    background-color: #816e7c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: Arial, sans-serif;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background-color 0.2s, transform 0.1s;
}

.sp-book-btn:hover {
    background-color: #6d5a69;
}

.sp-book-btn:active {
    transform: scale(0.98);
}

/* ===================================================
   BOOKING MODAL
   =================================================== */
.sp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.52);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: sp-fade-in 0.2s ease;
}

.sp-modal-overlay.active {
    display: flex;
}

@keyframes sp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sp-modal {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    animation: sp-slide-up 0.25s ease;
}

@keyframes sp-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sp-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.9rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    transition: color 0.2s;
    font-family: Arial, sans-serif;
}

.sp-modal-close:hover {
    color: #333;
}

.sp-modal-title {
    font-size: 1.45rem;
    color: #2c2c2c;
    font-weight: 600;
    margin-bottom: 24px;
    margin-right: 30px;
}

/* Modal service summary strip */
.sp-modal-summary {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fbecfb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 26px;
}

.sp-modal-summary-img img {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.sp-modal-summary-info {
    flex: 1;
    min-width: 0;
}

.sp-modal-cat {
    font-size: 0.68rem;
    color: #816e7c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 3px;
}

.sp-modal-summary-info h3 {
    font-size: 0.98rem;
    color: #2c2c2c;
    font-weight: 600;
    margin-bottom: 7px;
    line-height: 1.3;
}

.sp-modal-meta-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.sp-modal-duration {
    font-size: 0.78rem;
    color: #888;
}

.sp-modal-price-badge {
    background-color: #816e7c;
    color: #fff;
    font-size: 0.83rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Booking form */
.sp-booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sp-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sp-form-group label {
    font-size: 0.86rem;
    color: #555;
    font-weight: 500;
}

.sp-form-group input,
.sp-form-group select,
.sp-form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.94rem;
    font-family: Arial, sans-serif;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-form-group input:focus,
.sp-form-group select:focus,
.sp-form-group textarea:focus {
    outline: none;
    border-color: #816e7c;
    box-shadow: 0 0 0 3px rgba(129, 110, 124, 0.12);
}

.sp-form-group select:disabled {
    color: #aaa;
    background: #f8f5f8;
    cursor: not-allowed;
}

.sp-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.sp-form-notice {
    font-size: 0.79rem;
    color: #999;
    line-height: 1.55;
}

/* Phone row with country code */
.sp-phone-row {
    display: flex;
    gap: 8px;
}

.sp-phone-cc {
    width: 80px;
    flex-shrink: 0;
    padding: 11px 6px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: Arial, sans-serif;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-phone-cc:focus {
    outline: none;
    border-color: #816e7c;
    box-shadow: 0 0 0 3px rgba(129, 110, 124, 0.12);
}

.sp-phone-row input {
    flex: 1;
}

/* Cancellation policy notice */
.sp-cancellation-notice {
    background: #fff8e1;
    border-left: 3px solid #f4a61e;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #7a5400;
    line-height: 1.6;
}

/* AGB checkbox row */
.sp-agb-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.5;
}

.sp-agb-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #816e7c;
    flex-shrink: 0;
    cursor: pointer;
}

.sp-agb-link {
    background: none;
    border: none;
    padding: 0;
    color: #816e7c;
    font-size: inherit;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
    display: inline;
}

.sp-agb-link:hover {
    color: #5e4e5a;
}

/* =====================================================
   AGB MODAL
   ===================================================== */
.agb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.agb-overlay--open {
    display: flex;
}

.agb-modal {
    background: #1e1e1e;
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}

.agb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px 16px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.agb-modal-header h2 {
    font-size: 1.2rem;
    color: #fbecfb;
    margin: 0;
}

.agb-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.agb-close:hover {
    color: #fff;
}

.agb-modal-body {
    padding: 22px 26px;
    overflow-y: auto;
    flex: 1;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.7;
}

.agb-modal-body h3 {
    color: #816e7c;
    font-size: 1rem;
    margin: 22px 0 6px;
    border-bottom: 1px solid #2e2e2e;
    padding-bottom: 4px;
}

.agb-modal-body p {
    margin: 0 0 10px;
}

.agb-modal-body a {
    color: #c9a0c9;
    text-decoration: underline;
}

.agb-intro {
    background: #2a2a2a;
    border-left: 3px solid #816e7c;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 18px !important;
}

.agb-stand {
    margin-top: 24px !important;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #2e2e2e;
    padding-top: 14px;
}

.agb-modal-footer {
    padding: 16px 26px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    background: #1e1e1e;
}

.sp-submit-btn {
    padding: 14px;
    background-color: #816e7c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: Arial, sans-serif;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background-color 0.2s, transform 0.1s;
}

.sp-submit-btn:hover {
    background-color: #6d5a69;
}

.sp-submit-btn:active {
    transform: scale(0.99);
}

/* Success state */
.sp-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0 8px;
    gap: 14px;
}

.sp-success-check {
    width: 68px;
    height: 68px;
    background-color: #816e7c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 4px;
}

.sp-success h3 {
    font-size: 1.35rem;
    color: #2c2c2c;
    font-weight: 600;
}

.sp-success p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.65;
    max-width: 360px;
}

/* ===================================================
   RESPONSIVE — Mobile
   =================================================== */
@media screen and (max-width: 768px) {

    /* ---- Hero ---- */
    .services-hero {
        height: 200px;
    }

    .services-hero-content h2 {
        font-size: 1.75rem;
    }

    .services-hero-content p {
        font-size: 0.88rem;
    }

    /* ---- Section & Filters ---- */
    .sp-section {
        padding: 28px 12px 44px;
    }

    .sp-filter-row {
        gap: 7px;
        margin-bottom: 24px;
    }

    .sp-filter-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    /* ---- Cards Grid ---- */
    .sp-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sp-card-img {
        height: 185px;
    }

    .sp-card-body {
        padding: 16px 16px 18px;
    }

    .sp-card-title {
        font-size: 1rem;
    }

    .sp-card-subtitle {
        font-size: 0.74rem;
        margin-bottom: 8px;
    }

    .sp-card-desc {
        font-size: 0.83rem;
        margin-bottom: 10px;
    }

    .sp-card-price-list li {
        font-size: 0.8rem;
    }

    .sp-card-duration {
        font-size: 0.76rem;
    }

    .sp-card-price {
        font-size: 1.15rem;
    }

    .sp-book-btn {
        padding: 11px;
        font-size: 0.9rem;
    }

    /* ---- Booking Modal ---- */
    .sp-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .sp-modal {
        padding: 22px 16px 24px;
        border-radius: 14px 14px 0 0;
        max-height: 92vh;
    }

    .sp-modal-close {
        top: 12px;
        right: 14px;
        font-size: 1.6rem;
    }

    .sp-modal-title {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    .sp-modal-summary {
        flex-direction: row;
        padding: 10px 12px;
        gap: 12px;
        margin-bottom: 20px;
    }

    .sp-modal-summary-img img {
        width: 54px;
        height: 54px;
        border-radius: 6px;
    }

    .sp-modal-summary-info h3 {
        font-size: 0.9rem;
    }

    .sp-modal-cat {
        font-size: 0.62rem;
    }

    .sp-modal-duration {
        font-size: 0.72rem;
    }

    .sp-modal-price-badge {
        font-size: 0.78rem;
    }

    /* ---- Booking Form ---- */
    .sp-booking-form {
        gap: 13px;
    }

    .sp-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sp-form-group label {
        font-size: 0.82rem;
    }

    .sp-form-group input,
    .sp-form-group select,
    .sp-form-group textarea {
        padding: 10px 12px;
        font-size: 0.88rem;
    }

    .sp-phone-cc {
        width: 72px;
        padding: 10px 5px;
        font-size: 0.82rem;
    }

    .sp-form-notice {
        font-size: 0.74rem;
    }

    .sp-cancellation-notice {
        font-size: 0.78rem;
        padding: 9px 12px;
    }

    .sp-agb-label {
        font-size: 0.82rem;
        gap: 8px;
    }

    .sp-submit-btn {
        padding: 13px;
        font-size: 0.95rem;
    }

    /* ---- Success State ---- */
    .sp-success-check {
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }

    .sp-success h3 {
        font-size: 1.15rem;
    }

    .sp-success p {
        font-size: 0.85rem;
    }

    /* ---- AGB Modal ---- */
    .agb-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .agb-modal {
        max-height: 88vh;
        border-radius: 14px 14px 0 0;
    }

    .agb-modal-header {
        padding: 16px 18px 12px;
    }

    .agb-modal-header h2 {
        font-size: 1rem;
    }

    .agb-modal-body {
        padding: 16px 18px;
        font-size: 0.82rem;
    }

    .agb-modal-body h3 {
        font-size: 0.9rem;
    }

    .agb-modal-footer {
        padding: 12px 18px;
    }
}