/* ═══════════════════════════════════════════════
   JET CHARTER REQUEST PRO — STYLESHEET v2.3
   ═══════════════════════════════════════════════ */

/* ── 1. WRAPPER ── */
#jcr-form-wrapper {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: inherit;
}

/* ── 2. SECTION BLOCKS ── */
.jcr-section {
    margin-bottom: 30px;
}

.jcr-section h3,
.flight-leg h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b44;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* ── 3. FLIGHT LEG BLOCKS ── */
.flight-leg {
    border: 0 !important;
    border-style: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    width: 100% !important;
    display: block !important;
}

/* ── 4. GRID LAYOUT ── */
.jcr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.jcr-grid--full {
    grid-template-columns: 1fr;
}

/* ── 5. TRIP TYPE TOGGLE BUTTONS ── */
.jcr-trip-toggle {
    display: flex;
    gap: 12px;
    margin: 25px 0 35px 0;
    width: 100%;
}

.trip-btn {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #1a2b44 !important;
    background: #ffffff !important;
    color: #1a2b44 !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.trip-btn.active {
    background: #1a2b44 !important;
    color: #ffffff !important;
}

.trip-btn:hover:not(.active) {
    background: #f1f2f6 !important;
}

/* ── 6. INPUT FIELDS ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea {
    width: 100% !important;
    height: 45px !important;
    box-sizing: border-box !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    color: #333 !important;
    background: #fff !important;
    outline: none;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: #1a2b44 !important;
}

textarea {
    height: 120px !important;
    padding: 12px !important;
    resize: vertical;
    width: 100% !important;
    display: block;
    margin-top: 10px;
}

/* Error highlight */
.jcr-error {
    border-color: #e74c3c !important;
    background: #fff8f8 !important;
}

/* ── 7. SELECT2 OVERRIDES ── */
.select2-container {
    width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container--default .select2-selection--single {
    height: 45px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #1a2b44 !important;
    outline: none !important;
}

.select2-selection__rendered {
    line-height: 45px !important;
    padding-left: 12px !important;
    color: #333 !important;
    font-size: 14px !important;
}

.select2-selection__arrow {
    height: 43px !important;
}

.select2-selection__placeholder {
    color: #999 !important;
}

.select2-dropdown {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.select2-results__option--highlighted {
    background-color: #1a2b44 !important;
}

/* ── 8. CHECKBOX GROUP (Additional Services) ── */
.jcr-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 15px;
}

.jcr-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.jcr-checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    cursor: pointer;
    accent-color: #1a2b44;
    padding: 0 !important;
    margin: 0 !important;
}

/* Confirmation checkbox — larger and more prominent */
.jcr-confirm-check {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 10px;
}

/* ── 9. ACTION BUTTONS ── */
.btn-primary {
    background: #1a2b44;
    color: white;
    padding: 15px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.2s ease;
    display: block;
    text-align: center;
}

.btn-primary:hover {
    background: #243d5e;
}

.btn-secondary {
    background: #f1f2f6;
    color: #1a2b44;
    padding: 10px 20px;
    border: 1px solid #1a2b44 !important;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #e0e2ea;
}

/* Remove leg button */
.btn-remove {
    background: #fff !important;
    color: #c0392b !important;
    border: 1px solid #c0392b !important;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-remove:hover {
    background: #fdeded !important;
}

/* ── 10. CONFIRMATION STEP ── */
#confirmation-step {
    border: none;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
}

/* ── 11. RESPONSIVE — MOBILE ── */
@media (max-width: 600px) {

    .jcr-grid {
        grid-template-columns: 1fr;
    }

    /* Override the span-2 on pax field for mobile */
    .jcr-grid input[style*="grid-column"] {
        grid-column: span 1 !important;
    }

    .jcr-trip-toggle {
        flex-direction: column;
        gap: 8px;
    }

    .jcr-checkbox-group {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 15px;
    }

    input[type="date"],
    input[type="time"] {
        width: 100% !important;
    }
}
