@import url('https://fonts.googleapis.com/css2?family=Niramit:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Niramit', sans-serif;
}

:root {
    --brand: #006ba6;
    --brand-2: #006ba6;
    --ink: #2d3663;
    --muted: rgba(15, 23, 42, 0.72);
    --brand-dark: #2a679e;
    --bg: #f5f7fb;
    --card: #ffffff;
    --ring: rgba(14, 165, 233, 0.35);
    --danger: #ef4232;
    --ok: #16a34a;
}

/* Layout */
.map-page {
    position: relative;
    height: calc(100vh - 92px);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#map {
    position: absolute;
    inset: 0;
    height: calc(100vh - 92px);
}

.map-overlay {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: min(620px, 92vw);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    padding: 22px 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 55px rgba(2, 8, 23, 0.22);
    text-align: center;
    z-index: 5;
}

.loaction-back-button {
    color: var(--brand-dark);
    text-decoration: none;
}

/* Navbar */
.topbar {
    background: #fff;
    box-shadow: 0 2px 14px rgba(2, 8, 23, 0.06);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand-link {
    text-decoration: none;
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-title {
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 35px;
}

.btn-soft-phone {
    background-color: #cc5500;
    border: 1px solid rgba(14, 165, 233, 0.18);
    box-shadow: 2px 2px 5px black;
    color: #fff;
    border-radius: 999px;
    padding: 10px 35px;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.btn-soft-phone:hover {
    background-color: #a04403;
    color: #fff;
}

.phone-number-canvas {
    display: none;
}

/* Alerts */
.alert-danger {
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Headings */
.page-head {
    text-align: center;
}

.page-head h1 {
    font-weight: 500;
    margin-bottom: 6px;
    color: #cc5500;
}

.page-head .sub {
    color: var(--muted);
    font-weight: 400;
    font-size: 22px;
}

/* Service tiles */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 18px;
}

.tile-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

.tile-input,
.class-input {
    position: absolute;
    opacity: 0;
}

.service-tile {
    width: 100%;
    min-height: 200px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    transition: all 0.3s ease-in-out;
}

.service-tile > * {
    position: relative;
    z-index: 2;
}

.service-tile::before,
.service-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.service-tile::before {
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    opacity: 1;
}

.service-tile::after {
    background: linear-gradient(90deg, #2d3663, var(--brand));
    opacity: 0;
}

.service-tile:hover::after {
    opacity: 1;
}

.service-tile:hover::before {
    opacity: 0;
}

.tile-selected .service-tile {
    border: 3px solid #cc5500;
    box-shadow: 2px 2px 5px black;
    transform: translateY(-3px);
}

.tile-selected .service-tile::after {
    opacity: 1;
}

.tile-selected .service-tile::before {
    opacity: 0;
}

.service-tile svg {
    width: 54px;
    height: 54px;
}

.tile-label {
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    color: #1f2937;
}

/* Class cards */
.class-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.class-card {
    background: rgba(255, 255, 255, 0.72);
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.class-selected {
    border-color: #cc5500;
}

.check-dot {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(15, 23, 42, 0.18);
}

.class-selected .check-dot {
    background: #cc5500;
    border-color: #cc5500;
}

/* Buttons */
.btn-blue {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px;
    font-weight: 800;
    transition: all 0.3s ease-in-out;
}

.btn-blue:hover {
    background: #2d3663;
    color: #fff;
}

.btn-accept {
    background: var(--brand);
    border: none;
    border-radius: 999px;
    color: #fff;
    padding: 12px;
    font-weight: 800;
}

.btn-accept:hover {
    filter: brightness(.98);
    transform: translateY(-1px);
}

.btn-reject {
    background: var(--danger);
    border-radius: 999px;
    color: #fff;
    padding: 12px 2px;
    text-decoration: none;
    font-weight: 900;
}

.btn-reject:hover {
    background: #940e02;
    color: #fff;
}

/* Cards / details */
.request-details-card {
    border-radius: 8px;
    box-shadow: 0 0 15px #0000006b;
}

.request-details-title,
.customer-info-title,
.section-title {
    color: #cc5500;
    font-weight: 500;
}

.selected-request-details-text {
    font-size: 18px;
}

.request-details-inner-card {
    background: rgba(241, 245, 249, .75);
}

.page-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.soft-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(2, 8, 23, 0.10);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px);
}

.subtitle {
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-weight: 800;
    background: rgba(14, 165, 233, .10);
    border: 1px solid rgba(14, 165, 233, .18);
    color: var(--brand-dark);
    white-space: nowrap;
}

.chip small {
    font-weight: 800;
    opacity: .9;
}

/* Sections */
.section {
    border-top: 1px solid rgba(15, 23, 42, .08);
    padding-top: 16px;
    margin-top: 16px;
}

.section h6 {
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 900;
    font-size: .82rem;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.kv {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kv li {
    margin: .25rem 0;
    color: rgba(15, 23, 42, .88);
    font-weight: 600;
}

.kv strong {
    font-weight: 900;
    color: rgba(15, 23, 42, .92);
}

.summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
    margin-top: 6px;
}

.summary .sep {
    opacity: .45;
}

/* Pills */
.pill {
    background: rgba(241, 245, 249, .75);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    padding: 14px;
    height: 100%;
}

.pill .k {
    font-weight: 900;
    margin-bottom: 6px;
    color: rgba(15, 23, 42, .92);
}

.pill .v {
    color: var(--muted);
    font-weight: 700;
}

.pill .small {
    color: rgba(15, 23, 42, .78);
    font-weight: 700;
}

.pill-success {
    background: rgba(22, 163, 74, .08);
    border-color: rgba(22, 163, 74, .18);
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .12);
    font-size: 1rem;
    color: #111827;
    background: rgba(241, 245, 249, .75);
    box-shadow: none !important;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus {
    background: rgba(241, 245, 249, .92);
    border-color: rgba(14, 165, 233, .45);
    box-shadow: 0 0 0 4px var(--ring) !important;
}

/* Select custom */
.selector {
    background: rgba(241, 245, 249, .75);
    background-image: url(../images/down-arrow.svg);
    background-size: 35px;
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Select2 */
.select2-container {
    width: 100% !important;
}

.select2-container--open {
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    background-color: rgba(241, 245, 249, .75) !important;
    background-image: url(../images/down-arrow.svg);
    background-size: 35px;
    background-repeat: no-repeat;
    background-position: right 30px center;
    border-radius: 8px !important;
    border: 1px solid rgba(15, 23, 42, 0.18) !important;
    padding: 10px 14px !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field {
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 767px) {
    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .service-tile {
        min-height: 115px;
    }

    .service-tile svg {
        width: 44px;
        height: 44px;
    }

    .tile-label {
        font-size: 15px;
    }

    .btn-soft-phone {
        padding: 8px;
        font-size: 15px;
        display: none;
    }

    .phone-number-canvas {
        display: inline-flex;
    }

    .page-head .sub {
        font-size: 18px;
    }

    .brand-title {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .page-wrap {
        padding: 14px 12px 34px;
    }

    .soft-card {
        padding: 18px !important;
    }

    .chip {
        width: 100%;
        justify-content: center;
    }
}
