/* ============================================================
   Green Express One — Homepage Redesign v2
   Inspired by FlyNow: white, clean, mobile-first, simple
   ============================================================ */

:root {
    --green-primary: #15b015;
    --green-light:   #e8f5e9;
    --green-hover:   #0d7a0d;
    --blue-accent:   #1a73e8;
    --dark:          #1a1d23;
    --gray-bg:       #f7f8fc;
    --gray-border:   #e4e8f0;
    --gray-text:     #6b7280;
    --white:         #ffffff;
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:     0 8px 32px rgba(0,0,0,0.12);
    --radius:        12px;
    --radius-sm:     8px;
    --transition:    0.2s ease;
}

html { scroll-behavior: smooth; }

/* Navbar styles now live in navbar.blade.php inline <style> */

/* ============================================================
   HERO — tidak diubah, biarkan welcome.css yang handle
   ============================================================ */


/* ============================================================
   BOOKING SECTION — card floats over, clean white
   ============================================================ */

.booking.section-padding {
    padding: 2rem 0 4rem;
    background: var(--gray-bg);
    margin-top: -2px;
}

/* Section title */
.booking-section-title {
    text-align: center;
    margin-bottom: 1.75rem;
}

.booking-section-title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.booking-section-title p {
    color: var(--gray-text);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.booking-section-title .title-accent {
    display: inline-block;
    width: 36px;
    height: 3px;
    background: var(--green-primary);
    border-radius: 2px;
}

/* Card */
.booking .card {
    border: 1px solid var(--gray-border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-md) !important;
    background: var(--white) !important;
    overflow: visible !important;
}

/* Mobile-first: tighter padding by default, roomier from sm (≥576px). */
.booking .card-body {
    padding: 1.25rem !important;
}

@media (min-width: 576px) {
    .booking .card-body {
        padding: 1.75rem !important;
    }
}

/* ============================================================
   TABS — pill style like FlyNow
   ============================================================ */

.category-tabs {
    margin-bottom: 1.5rem;
}

.category-tabs .btn-group {
    background: var(--gray-bg) !important;
    border-radius: 50px !important;
    padding: 4px !important;
    border: 1px solid var(--gray-border) !important;
    box-shadow: none !important;
    display: flex;
    width: 100%;
}

.category-tabs .btn {
    border-radius: 50px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    border: none !important;
    flex: 1;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
    letter-spacing: 0;
    line-height: 1.4;
}

/* Inactive */
.category-tabs .btn-outline-primary {
    background: transparent !important;
    color: var(--gray-text) !important;
}

.category-tabs .btn-outline-primary:hover {
    background: rgba(21,176,21,0.07) !important;
    color: var(--green-primary) !important;
}

/* Active */
.category-tabs .btn-primary,
.category-tabs .btn.active {
    background: var(--white) !important;
    color: var(--green-primary) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border: none !important;
}

/* ============================================================
   FORM FIELDS — clean, minimal
   ============================================================ */

/* Labels */
#charter-form-panel .form-group > label,
#charter-form-panel > .col-md-6 > label,
#charter-form-panel > .col-12 > label,
#airport-private-subpanel .form-group > label,
#airport-shuttle-subpanel .form-group > label,
#airport-shuttle-subpanel > .col-md-4 > label,
#airport-shuttle-subpanel > .col-md-6 > label,
.col-md-4 > label,
.col-md-6 > label,
.form-group > label.form-text {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: var(--gray-text) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

/* All form inputs */
#charter-form-panel .form-control,
#airport-private-subpanel .form-control,
#airport-shuttle-subpanel .form-control {
    border: 1.5px solid var(--gray-border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.9rem !important;
    color: var(--dark) !important;
    background: #fff !important;
    height: auto !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: none !important;
}

#charter-form-panel .form-control:focus,
#airport-private-subpanel .form-control:focus,
#airport-shuttle-subpanel .form-control:focus {
    border-color: var(--green-primary) !important;
    box-shadow: 0 0 0 3px rgba(21,176,21,0.12) !important;
    background: #fff !important;
}

/* Readonly */
#charter-form-panel .form-control[readonly],
#airport-private-subpanel .form-control[readonly] {
    background: var(--gray-bg) !important;
    color: #444 !important;
    cursor: default;
}

/* Input group (Pin on Map) */
#charter-form-panel .input-group .form-control,
#airport-private-subpanel .input-group .form-control {
    border-right: none !important;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
}

#charter-form-panel .input-group-append .btn,
#airport-private-subpanel .input-group-append .btn {
    border: 1.5px solid var(--gray-border) !important;
    border-left: none !important;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    background: #fff !important;
    color: var(--green-primary) !important;
    font-weight: 600 !important;
    font-size: 0.83rem !important;
    padding: 0.6rem 0.9rem !important;
    transition: background 0.18s, color 0.18s;
}

#charter-form-panel .input-group-append .btn:hover,
#airport-private-subpanel .input-group-append .btn:hover {
    background: var(--green-primary) !important;
    color: #fff !important;
    border-color: var(--green-primary) !important;
}

/* Select2 */
#charter-form-panel .select2-container--default .select2-selection--single,
#airport-private-subpanel .select2-container--default .select2-selection--single,
#airport-shuttle-subpanel .select2-container--default .select2-selection--single {
    border: 1.5px solid var(--gray-border) !important;
    border-radius: var(--radius-sm) !important;
    height: auto !important;
    padding: 0.55rem 0.85rem !important;
    background: #fff;
    transition: border-color 0.18s;
}

#charter-form-panel .select2-container--default .select2-selection--single .select2-selection__rendered,
#airport-private-subpanel .select2-container--default .select2-selection--single .select2-selection__rendered,
#airport-shuttle-subpanel .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding: 0 !important;
    color: var(--dark);
    font-size: 0.9rem;
}

#charter-form-panel .select2-container--default .select2-selection--single .select2-selection__arrow,
#airport-private-subpanel .select2-container--default .select2-selection--single .select2-selection__arrow,
#airport-shuttle-subpanel .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%);
    height: auto !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--green-primary) !important;
    box-shadow: 0 0 0 3px rgba(21,176,21,0.12) !important;
}

/* Align the airport/shuttle select2 with the adjacent .form-control inputs,
   which accessibility.css forces to min-height:48px. Match that height and
   vertically center the rendered text + clear/arrow so the columns line up. */
#airport-private-subpanel .select2-container--default .select2-selection--single,
#airport-shuttle-subpanel .select2-container--default .select2-selection--single {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
#airport-private-subpanel .select2-container,
#airport-shuttle-subpanel .select2-container {
    width: 100% !important;
}

/* Keep the select2 dropdown above the Leaflet map and its in-map search box
   (.ms-input/.ms-panel use z-index:5000), so options aren't covered when the
   field sits directly above an open map. */
#airport-private-subpanel .select2-container--open {
    z-index: 6000 !important;
}
.select2-container--open .select2-dropdown {
    z-index: 6000 !important;
}

/* Select2 open dropdown — make the results panel readable and unambiguous:
   distinct group headers, a clear search field, and a soft (not harsh) green
   highlight so the focused option text stays legible. */
.select2-dropdown {
    border: 1.5px solid var(--green-primary) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
    overflow: hidden;
}

/* Search box inside the dropdown */
.select2-container--default .select2-search--dropdown {
    padding: 0.6rem !important;
    background: var(--gray-bg);
    border-bottom: 1px solid var(--gray-border);
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid var(--gray-border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.5rem 0.7rem !important;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--green-primary) !important;
    box-shadow: 0 0 0 3px rgba(21, 176, 21, 0.12) !important;
}

/* Results list spacing */
.select2-container--default .select2-results > .select2-results__options {
    max-height: 260px !important;
    padding: 0.25rem 0;
}

/* Group wrapper — select2 nests the grouped options inside an .option element,
   so strip the card border/margin from the wrapper itself (the real options
   inside it keep their own borders). */
.select2-container--default .select2-results__option:has(.select2-results__group),
.select2-container--default .select2-results__option--group {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Group headers — clearly NOT selectable: uppercase, muted, smaller, no hover. */
.select2-container--default .select2-results__group {
    padding: 0.5rem 0.85rem 0.25rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-text) !important;
    background: transparent;
    cursor: default;
}

/* Selectable options — each option is a bordered card so every list item has a
   clear, visible boundary separating it from its neighbours. */
.select2-container--default .select2-results__option {
    padding: 0.6rem 0.85rem 0.6rem 1.4rem !important;
    font-size: 0.95rem;
    color: var(--dark);
    border: 1.5px solid var(--gray-border) !important;
    border-radius: var(--radius-sm);
    margin: 0.3rem !important;
    transition: border-color 0.15s, background 0.15s;
}

/* Hovered / keyboard-highlighted option — match search page black action tone. */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background: var(--dark) !important;
    color: #fff !important;
    border-color: var(--dark) !important;
    font-weight: 600;
}

/* Currently selected option — no checkmark; keep it as a clean black card. */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--dark) !important;
    color: #fff !important;
    border-color: var(--dark) !important;
    font-weight: 600;
    position: relative;
}
.select2-container--default .select2-results__option[aria-selected="true"]::before {
    content: none !important;
    display: none !important;
}

/* "No results found" message */
.select2-container--default .select2-results__option.select2-results__message {
    color: var(--gray-text);
    font-style: italic;
    padding: 0.6rem 0.85rem !important;
}

/* Radio groups — pill card style */
#charter-form-panel .form-check-inline,
#airport-private-subpanel .form-check-inline {
    background: var(--gray-bg);
    border: 1.5px solid var(--gray-border);
    border-radius: 20px;
    padding: 0.42rem 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

#charter-form-panel .form-check-inline:has(input:checked),
#airport-private-subpanel .form-check-inline:has(input:checked) {
    border-color: var(--green-primary);
    background: var(--green-light);
}

#charter-form-panel .form-check-inline label,
#airport-private-subpanel .form-check-inline label {
    font-size: 0.83rem !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    margin-bottom: 0 !important;
}

/* Hide native radio, keep the label clickable */
#charter-form-panel .form-check-input,
#airport-private-subpanel .form-check-input {
    accent-color: var(--green-primary);
}

/* Direction toggle (airport) */
#airport-private-subpanel .text-center .btn-group {
    background: var(--gray-bg) !important;
    border: 1px solid var(--gray-border) !important;
    border-radius: 50px !important;
    padding: 3px !important;
    box-shadow: none !important;
    display: inline-flex;
}

#airport-private-subpanel .text-center .btn-group .btn {
    border-radius: 50px !important;
    font-size: 0.83rem !important;
    padding: 0.4rem 1rem !important;
    flex: none !important;
    font-weight: 600 !important;
}

#airport-private-subpanel .text-center .btn-group .btn-primary {
    background: var(--green-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(21,176,21,0.25) !important;
}

#airport-private-subpanel .text-center .btn-group .btn-outline-primary {
    background: transparent !important;
    color: var(--gray-text) !important;
    box-shadow: none !important;
}

/* Submit button */
#charter-form-panel .btn-primary.btn-block,
#airport-private-subpanel .btn-primary.btn-block,
#airport-shuttle-subpanel .btn-primary.btn-block {
    background: var(--green-primary) !important;
    border-color: var(--green-primary) !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    padding: 0.8rem 1rem !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
    box-shadow: 0 4px 14px rgba(21,176,21,0.3) !important;
}

#charter-form-panel .btn-primary.btn-block:hover,
#airport-private-subpanel .btn-primary.btn-block:hover,
#airport-shuttle-subpanel .btn-primary.btn-block:hover {
    background: var(--green-hover) !important;
    border-color: var(--green-hover) !important;
    box-shadow: 0 6px 20px rgba(21,176,21,0.4) !important;
    transform: translateY(-1px) !important;
}

/* Required note */
#charter-form-panel .text-info,
#airport-private-subpanel .text-info,
#airport-shuttle-subpanel .text-info {
    color: var(--gray-text) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

/* Flatpickr */
.flatpickr-input {
    background: #fff !important;
}

/* Form group spacing */
.col-md-4, .col-md-6, .col-md-12 {
    padding-bottom: 0;
}

/* ============================================================
   FOOTER — dark, minimal
   ============================================================ */

.footer {
    background: var(--dark) !important;
    color: #f0f0f0 !important;
    padding: 3rem 0 0 !important;
    border-top: none;
}

.footer .footer-col h3 {
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer .footer-col p,
.footer .footer-col ul,
.footer .footer-col li {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.87rem;
    list-style: none;
    padding: 0;
    margin-bottom: 0.45rem;
    line-height: 1.5;
}

.footer .footer-col a {
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none;
    transition: color 0.18s;
}

.footer .footer-col a:hover {
    color: var(--green-primary) !important;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 2rem 0 0;
}

.footer .copyright-row {
    background: rgba(0,0,0,0.25);
    padding: 0.9rem 0;
}

.footer .copyright-row p,
.footer .copyright-row strong,
.footer .copyright-row a {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.8rem !important;
}

.footer .copyright-row a:hover {
    color: var(--green-primary) !important;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */

.float {
    box-shadow: 0 4px 12px rgba(18,140,74,0.28) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float:hover {
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 6px 16px rgba(18,140,74,0.34) !important;
}
