:root {
    --yellow: #FFCA3A;
    --lime: #8AC926;
    --red: #FF595E;
    --blue: #1982C4;
    --dark: #2B2D42;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
}

* {
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

input[type="text"],
input[type="tel"],
input[type="date"],
textarea,
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

body {
    margin: 0;
    color: var(--dark);
    overflow-x: hidden;
    background: linear-gradient(-45deg, #FFCA3A, #8AC926, #1982C4, #FF595E);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-shapes .shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
}
.bg-shapes .shape:nth-child(1) { width: 300px; height: 300px; background: var(--yellow); top: 10%; left: -50px; }
.bg-shapes .shape:nth-child(2) { width: 350px; height: 350px; background: var(--red); bottom: 10%; right: -50px; }
.bg-shapes .shape:nth-child(3) { width: 250px; height: 250px; background: var(--blue); top: 40%; right: 20%; }

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
    text-align: center;
}

h1 {
    font-size: 3.5rem; 
    font-weight: 900; 
    margin-bottom: 5px; 
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--dark), var(--blue));
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.location {
    font-size: 1.3rem; 
    color: var(--blue); 
    font-weight: 800; 
    margin-top: 0; 
    margin-bottom: 25px;
}

.description {
    font-size: 1.1rem; 
    line-height: 1.6; 
    max-width: 750px; 
    margin: 0 auto 30px;
    color: #333; 
    background: rgba(255,255,255,0.75); 
    padding: 25px 30px; 
    border-radius: 20px;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5); 
    text-align: center;
}

.description-text {
    margin-bottom: 20px;
}

.description-text p.indent-p {
    text-align: justify;
    text-indent: 1.5em;
    margin-top: 0;
    margin-bottom: 0;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.pricing-scheme {
    background: rgba(255, 202, 58, 0.25); 
    padding: 16px 22px; 
    border-radius: 16px;
    margin-top: 15px; 
    border-left: 5px solid var(--yellow); 
    font-size: 1rem;
    line-height: 1.7;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.pricing-scheme .price-line {
    white-space: nowrap;
}

.stats { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    margin: 30px 0; 
    flex-wrap: wrap; 
}

.stat-item {
    background: white; 
    padding: 20px 35px; 
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
    transition: transform 0.4s ease; 
    min-width: 200px;
}
.stat-item:hover { transform: translateY(-6px); }
.stat-number { font-size: 2.2rem; font-weight: 900; color: var(--dark); }
.stars { color: var(--yellow); font-size: 1.8rem; margin-bottom: 5px; }

.actions { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.btn {
    border: none; padding: 16px 40px; font-size: 1.2rem; border-radius: 40px; font-weight: 800;
    cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.25); }
.btn-primary { background: var(--dark); color: white; }
.btn-primary:hover { background: #3f4263; }
.btn-secondary { background: white; color: var(--dark); }

.collapsible-section {
    max-height: 0; 
    opacity: 0; 
    overflow: hidden;
    transition: max-height 0.8s ease, opacity 0.8s ease, margin 0.8s ease;
}
.collapsible-section.active { max-height: 3500px; opacity: 1; margin-top: 40px; }

.week-picker {
    position: relative;
    display: inline-block;
    z-index: 40;
}

.custom-date-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-date-picker:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cal-popup {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    z-index: 50;
    text-align: center;
}

.cal-popup.open {
    display: block;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.cal-month {
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--dark);
    flex: 1;
}

.cal-nav {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f3f6f9;
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cal-nav:hover {
    background: var(--yellow);
    transform: scale(1.06);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #888;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--dark);
    font-weight: 800;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.cal-day.is-empty {
    pointer-events: none;
}

.cal-day.in-week:not(.is-selected):not(.is-disabled) {
    background: rgba(138, 201, 38, 0.18);
}

.cal-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 2px var(--yellow);
}

.cal-day.is-selected {
    background: var(--dark);
    color: #fff;
}

.cal-day:hover:not(.is-disabled):not(.is-empty):not(.is-selected) {
    background: var(--lime);
    color: #fff;
    transform: scale(1.08);
}

.cal-day.is-disabled {
    color: #c5c9d1;
    cursor: not-allowed;
    background: transparent;
}

.table-container {
    overflow-x: auto; 
    padding-bottom: 25px; 
    margin-bottom: 15px;
    touch-action: auto; 
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.4s ease;
}

.table-container::-webkit-scrollbar { height: 30px; }
.table-container::-webkit-scrollbar-track {
    background: #e9ecef; border-radius: 15px; box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}
.table-container::-webkit-scrollbar-thumb {
    background: var(--blue); border-radius: 15px; border: 5px solid #e9ecef; 
}

table { 
    border-collapse: separate;
    border-spacing: 0 4px;
    margin: 0 auto; 
    user-select: none; 
    table-layout: fixed;
}

th, td { 
    width: 50px; min-width: 50px; max-width: 50px; 
    padding: 6px 0; text-align: center; box-sizing: border-box;
}

th { 
    font-size: 0.95rem; color: #555; font-weight: 800; 
}

.axis-label { 
    width: 70px; min-width: 70px; max-width: 70px; 
    position: sticky; left: 0;
    z-index: 30; 
    background: transparent !important; 
    border: none !important; box-shadow: none !important;
}

.day-label { 
    width: 70px; min-width: 70px; max-width: 70px; 
    padding: 6px 4px; text-align: center; 
    position: sticky; left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 20; 
    border-radius: 14px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 0.95rem; font-weight: 800; color: #555;
}

.date-label { font-size: 0.75rem; color: #777; font-weight: 600; display: block; margin-top: 1px; }

.slot-wrapper { width: 50px; height: 38px; display: block; }

.slot {
    height: 38px; width: 38px; margin: 0 auto; 
    background-color: var(--lime); border-radius: 19px; 
    position: relative; z-index: 1; 
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; 
    cursor: pointer; 
}

.slot.disabled { background-color: #e2e8f0; cursor: not-allowed; opacity: 0.45; pointer-events: none; }
.slot.removing { transform: scale(0) !important; opacity: 0; transition: all 0.35s ease; }
.slot:hover:not(.disabled) { transform: scale(1.1); z-index: 5; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); filter: brightness(1.05); }
.slot.holding { transform: scale(0.9); opacity: 0.8; }

.slot.booked {
    background-color: #ff4d4f !important;
    border-color: #ff4d4f !important;
    cursor: not-allowed !important;
    opacity: 0.85;
}

.slot.booked:hover {
    transform: none !important;
    box-shadow: none !important;
}

.slot.selected { background-color: var(--red); }
.slot.connected-left { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.slot.connected-right { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.slot.connected-right::after {
    content: '';
    position: absolute;
    top: 0;
    right: -12px;
    width: 12px;
    height: 100%;
    background-color: inherit;
    z-index: 1;
}

.booking-form {
    background: white; padding: 0; margin-top: 0; border-radius: 25px; text-align: left; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); overflow: hidden; opacity: 0; max-height: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, margin 0.4s ease;
}

.booking-form.active { opacity: 1; max-height: 2500px; transform: translateY(0); pointer-events: auto; padding: 30px; margin-top: 30px; }
.booking-form.hiding { opacity: 0; transform: translateY(20px) scale(0.98); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; pointer-events: none; }

.input-group { margin-bottom: 22px; }
.input-group label { display: block; font-weight: 800; margin-bottom: 8px; color: var(--dark); }
.input-group input[type="text"],
.input-group input[type="tel"] {
    width: 100%; padding: 14px 18px; font-size: 1rem; border: 2px solid #eef2f5;
    border-radius: 15px; background: #ffffff; transition: all 0.3s; font-family: inherit; outline: none;
}
.input-group input:focus { border-color: var(--blue); background: white; }

.char-counter { display: block; text-align: right; font-size: 0.85rem; color: #888; margin-top: 6px; font-weight: 600; }

.services-section-title { font-size: 1.25rem; font-weight: 900; color: var(--dark); margin-top: 25px; margin-bottom: 15px; }
.services-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.service-card { background: #ffffff; border: 2px solid #eef2f5; border-radius: 18px; padding: 14px 18px; transition: all 0.25s ease; overflow: hidden; }

.checkbox-container { display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer; user-select: none; font-weight: 800; font-size: 1.05rem; color: var(--dark); }
.checkbox-container input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; outline: none; }
.checkmark { width: 24px; height: 24px; background-color: #fff; border: 2px solid #cbd5e1; border-radius: 7px; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; flex-shrink: 0; margin-left: 15px; }
.checkbox-container:hover .checkmark { border-color: var(--blue); }
.checkbox-container input[type="checkbox"]:checked ~ .checkmark { background-color: var(--blue); border-color: var(--blue); }
.checkmark::after { content: ""; display: none; width: 6px; height: 12px; border: solid white; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); margin-bottom: 2px; }
.checkbox-container input[type="checkbox"]:checked ~ .checkmark::after { display: block; }

#otherTextContainer { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; padding-bottom: 0; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease, padding-bottom 0.3s ease; }
#otherTextContainer.visible { max-height: 240px; opacity: 1; margin-top: 12px; padding-bottom: 8px; }

#wishTextarea, #revText {
    width: 100%; padding: 14px 18px; font-size: 0.95rem; font-family: inherit; color: var(--dark);
    background-color: #ffffff; border: 2px solid #e2e8f0; border-radius: 16px; outline: none; resize: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02); transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
#wishTextarea:focus, #revText:focus { border-color: var(--blue); background-color: #ffffff; box-shadow: 0 0 0 3px rgba(25, 130, 196, 0.12); }

.ticket-box {
    background: #fffbe6; border: 3px solid #ffe58f; border-radius: 24px; padding: 22px 24px; margin: 25px 0;
    box-shadow: 0 10px 25px rgba(255, 202, 58, 0.12); position: relative; user-select: none; overflow: hidden;
}
.total-hours-info { font-size: 1.1rem; color: #334155; font-weight: 800; margin-bottom: 14px; }
.breakdown-list { display: flex; flex-direction: column; gap: 10px; }
.breakdown-item {
    display: flex; justify-content: space-between; align-items: center; background: #ffffff; border: 1px solid #ffe58f;
    padding: 12px 16px; border-radius: 16px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02); max-height: 120px;
    opacity: 1; transform: scale(1) translateX(0); transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; gap: 12px;
}
.breakdown-item.removing { opacity: 0; transform: scale(0.85) translateX(30px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -5px; margin-bottom: -5px; border-color: transparent; }
.breakdown-left { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: 1; min-width: 0; }
.breakdown-day-title { font-size: 0.98rem; font-weight: 800; color: #1e293b; word-break: break-word; }
.breakdown-hours-sub { font-size: 0.85rem; font-weight: 600; color: #64748b; }
.breakdown-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.breakdown-cost { font-size: 1.05rem; font-weight: 800; color: #1e293b; white-space: nowrap; }
.btn-remove-date { background: none; border: none; color: var(--red); font-size: 1.3rem; cursor: pointer; padding: 0 4px; font-weight: bold; transition: transform 0.2s; flex-shrink: 0; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.btn-remove-date:hover { transform: scale(1.2); }
.ticket-divider { border: none; border-top: 2px dashed #fadb14; margin: 20px 0 16px 0; }
.ticket-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 12px; }
.ticket-footer .price-label { font-size: 1.15rem; font-weight: 800; color: #1e293b; white-space: nowrap; }
.ticket-footer .price-value { font-size: 1.35rem; font-weight: 900; color: #1e293b; white-space: nowrap; }

.stars-input { display: inline-flex; gap: 8px; font-size: 3.5rem; cursor: pointer; user-select: none; touch-action: none; }
.stars-input span { color: #e9ecef; transition: color 0.1s, transform 0.1s; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.stars-input span.active { color: var(--yellow); }

.reviews-container { background: white; padding: 30px; border-radius: 25px; text-align: left; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
.review-list { margin-bottom: 30px; }
.review-item { padding: 20px; border-bottom: 1px solid #eee; transition: background 0.3s; border-radius: 15px; }
.review-item h4 { margin: 0 0 5px 0; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.review-stars { color: var(--yellow); letter-spacing: 2px; }

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

.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: white; padding: 30px; border-radius: 25px; max-width: 400px; width: 90%;
    text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: translateY(20px); transition: all 0.3s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

@media (max-width: 600px) {
    .container { padding: 20px; margin: 12px; }
    h1 { font-size: 2.5rem; }
    .pricing-scheme { padding: 12px 14px; font-size: 0.92rem; }
    .actions { flex-direction: column; width: 100%; gap: 12px; }
    .btn { width: 100%; }
    .stars-input { font-size: 2.8rem; gap: 4px; }
    .input-group input[type="text"], .input-group input[type="tel"] { padding: 12px 14px; font-size: 0.9rem; }
    .ticket-box { padding: 16px 18px; }
    .breakdown-item { padding: 10px 12px; gap: 8px; }
    .breakdown-day-title { font-size: 0.9rem; }
    .breakdown-cost { font-size: 0.95rem; }
    .ticket-footer { flex-wrap: wrap; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
    .ticket-footer .price-label { font-size: 1rem; white-space: normal; }
    .ticket-footer .price-value { font-size: 1.25rem; }
    .week-picker, .custom-date-picker { width: 100%; }
    .cal-popup { left: 0; transform: none; width: 100%; max-width: none; }
    .axis-label, .day-label { width: 58px; min-width: 58px; max-width: 58px; padding: 5px 2px; font-size: 0.85rem; }
    .date-label { font-size: 0.7rem; }
}