* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #C0CFE3;
}

@font-face {
    font-family: 'Laginchy';
    src: url('/assets/font/Laginchy.woff2') format('woff2'),
        url('/assets/font/Laginchy.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.theme-font {
    font-family: 'Laginchy', serif;
}

/* ── Header ─────────────────────────────────────────────────── */
.main-header {
    background: #082E4F;
}

.logo img {
    height: 120px;
}

.navbar-nav {
    margin: auto;
    gap: 35px;
}

.nav-link {
    color: #c8d4e0 !important;
    font-weight: 500;
    font-size: 18px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff80 !important;
}

.contact-btn {
    text-decoration: none;
    background: #fff;
    color: #244a73;
    transition: 0.2s;
    padding: 10px 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-btn:hover {
    color: #fff;
    background-color: #F2201C;
}

.contact-btn span {
    width: 6px;
    height: 6px;
    background: #0d6efd;
    display: inline-block;
}

/* ── Form Section ────────────────────────────────────────────── */
.form-sec {
    padding: 40px 0;
    position: relative;
    background: url('/assets/img/form-bg.jpg') no-repeat center center / cover;
    background-attachment: fixed;
}

.form-sec::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: 0.3;
}

.form-container {
    background: #fff;
    max-width: 950px;
    margin: 0 auto;
    padding: 45px;
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-link {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 16px;
    color: #000;
}

.form-heading {
    font-family: 'Laginchy', serif;
    text-align: center;
    font-size: 42px;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: #0c2745;
}

/* ── Form Fields ─────────────────────────────────────────────── */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a596e;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 12px;
    border-radius: 0;
    border: 1px solid #e1e1e1;
    font-size: 14px;
    background: #fdfdfd;
    transition: all .25s;
}

select:focus,
input:focus {
    outline: none;
    border-color: #2f6fb3;
    box-shadow: 0 0 0 3px rgba(47, 111, 179, .12);
}

select.is-invalid,
input.is-invalid {
    border-color: #c11f1f;
}

.error-msg {
    color: #c11f1f;
    font-size: 12px;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 22px;
}

/* ── Duration Cards ──────────────────────────────────────────── */
.duration-option {
    padding: 11px;
    border: 2px solid #e4e4e4;
    background: white;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 16px;
    transition: all .25s;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    display: block;
    min-height: 48px;
}

.duration-option:hover {
    border-color: #2f6fb3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    background: #f5f9ff;
}

.duration-option input[type="radio"] {
    display: none;
}

.duration-option.selected {
    border-color: #2075f3;
    background: #f0f7ff;
}

.discount-badge {
    font-size: 11px;
    background: #e8f3ff;
    color: #2f6fb3;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 6px;
    font-weight: 600;
}

/* ── Duration Placeholder ────────────────────────────────────── */
#durationPlaceholder {
    text-align: center;
    color: #7a8fa6;
    font-size: 14px;
    padding: 24px;
    border: 2px dashed #dde3ea;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ── Slot Messages ───────────────────────────────────────────── */
.slot-msg {
    display: none;
    padding: 11px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    align-items: center;
    gap: 8px;
}

.slot-msg.conflict {
    display: flex;
    background: #fdecea;
    border: 1px solid #f5b7b1;
    color: #c11f1f;
}

.slot-msg.available {
    display: flex;
    background: #e9f7ef;
    border: 1px solid #a9dfbf;
    color: #1e8449;
}

.slot-msg.checking {
    display: flex;
    background: #f4f7fb;
    border: 1px solid #d0dce8;
    color: #4a596e;
}

/* ── Booking Summary ─────────────────────────────────────────── */
.summary {
    margin-top: 30px;
    padding: 20px;
    background: #f4f7fb;
    border-left: 4px solid #2f6fb3;
}

.summary strong {
    display: block;
    margin-bottom: 12px;
    color: #0c2745;
    font-size: 16px;
}

.summary p {
    margin-bottom: 6px;
    font-size: 14px;
    color: #4a596e;
}

.summary .price-highlight {
    color: #c11f1f;
    font-weight: 700;
    font-size: 18px;
}

/* ── Alert ───────────────────────────────────────────────────── */
.form-alert {
    background: #fdecea;
    border: 1px solid #f5b7b1;
    color: #c11f1f;
    padding: 13px 16px;
    margin-bottom: 22px;
    font-size: 13px;
    border-radius: 2px;
}

/* ── Submit Button ───────────────────────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 16px;
    margin-top: 30px;
    background: linear-gradient(135deg, #e23c3c, #c11f1f);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .5px;
    transition: all .25s;
    box-shadow: 0 8px 20px rgba(194, 30, 30, .35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(194, 30, 30, .45);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Footer ──────────────────────────────────────────────────── */
.main-footer {
    background: #0f3a5a;
    color: #cfd9e4;
    padding-top: 80px;
}

.footer-logo img {
    width: 220px;
    margin-bottom: 20px;
}

.footer-text {
    max-width: 320px;
    line-height: 1.6;
}

.footer-title {
    color: #fff;
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 500;
}

.main-footer ul {
    padding-left: 1rem;
}

.footer-links li {
    margin-bottom: 20px;
}

.footer-links a {
    text-decoration: none;
    color: #cfd9e4;
    text-transform: uppercase;
    font-size: 18px;
}

.footer-links a:hover {
    color: #fff;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2f5576;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

.social-icons {
    margin-top: 25px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2f5576;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: white;
    text-decoration: none;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding: 25px 0;
    font-size: 14px;
}

.footer-bottom-links a {
    color: #cfd9e4;
    text-decoration: none;
    margin-left: 15px;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.back-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: #ff2e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

@media(max-width: 991px) {
    .navbar-nav {
        margin-top: 20px;
        gap: 15px;
    }

    .contact-btn {
        margin-top: 15px;
        width: max-content;
    }
}

@media(max-width: 750px) {
    .form-container {
        padding: 28px 20px;
    }

    .form-heading {
        font-size: 30px;
    }
}
