﻿@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --navy: #1f2733;
    --blue: #2f6fed;
    --blue-dark: #255ac9;
    --gray-bg: #f4f6f9;
    --field-bg: #eef1f5;
    --border: #d7dce3;
    --text: #2b2f36;
    --muted: #6b7280;
    --danger: #c0392b;
    --success: #067647;
    --success-bg: #f0fdf4;
    --success-border: #bbebc7;
    --table-head: #edf5fb;
    --table-border: #c7d7e5;
    --radius: 6.6px;
    /* City Typography Variables */
    --font-heading: 'Proxima Nova', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

.d-none {
    display: none !important;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
    background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.65)), url('https://images.unsplash.com/photo-1502920917128-1aa500764cbd?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed;
    min-height: 100vh;
}

/* Top bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    color: #fff;
    padding: 8px 14px;
}

    .topbar .hamburger {
        font-size: 13px;
        cursor: pointer;
        opacity: .9;
    }

    .topbar .close {
        font-size: 12px;
        cursor: pointer;
        opacity: .9;
    }

/* Page wrapper */
.page-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 10px 24px;
}

.panel {
    width: 100%;
    max-width: 638px; /* Original tight container width */
}

/* Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 6.6px;
    box-shadow: 0 6.6px 16px rgba(0,0,0,.18);
    padding: 10px 16px;
    margin-bottom: 8px;
}

    .card-header img {
        height: 30px;
        width: 30px;
        object-fit: contain;
    }

    .card-header .brand-name {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 16px;
        line-height: 20px;
        letter-spacing: .27px;
        color: var(--navy);
        margin: 0;
        text-transform: none;
    }

    .card-header .brand-sub {
        font-family: var(--font-body);
        font-size: 11px;
        color: var(--muted);
        letter-spacing: .33px;
    }

.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.card-body {
    padding: 18px 18px 18px;
}

section + section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .27px;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 4px;
}

h1.section-title {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 26px;
    margin: 0 0 8px;
    color: var(--navy);
    text-transform: none;
}

h2.section-title {
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 22px;
    margin: 0 0 6px;
    color: var(--navy);
    text-transform: none;
}

.required {
    color: var(--danger);
}

.field-hint {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .2px;
}

/* Search section */
.search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 13px;
}

    .search-options label {
        display: flex;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        font-weight: 400 !important;
    }

.search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .search-row input[type="text"] {
        flex: 0 1 200px;
        width: 100%;
        max-width: 220px;
        min-width: 130px;
    }

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 5.3px;
    background: var(--field-bg);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    text-transform: none;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus {
        outline: none;
        border-color: var(--blue);
        background: #fff;
        box-shadow: 0 0 0 2px rgba(47,111,237,.15);
    }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    border-radius: 5.3px;
    padding: 7px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease, transform .12s ease;
    min-width: 80px;
    text-transform: none !important;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-primary {
    background: var(--blue);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--blue-dark);
    }

    .btn-primary[disabled],
    .btn-secondary[disabled] {
        opacity: .70;
        cursor: not-allowed;
        transform: none;
    }

.btn-secondary {
    background: #eceff3;
    color: var(--navy);
}

    .btn-secondary:hover {
        background: #e0e4ea;
    }

/* Loader */
.spinner-border {
    width: 11px;
    height: 11px;
    border: 1.5px solid rgba(255,255,255,.5);
    border-right-color: #fff;
    border-radius: 50%;
    animation: spinner-border-spin .7s linear infinite;
    display: inline-block;
}

    .spinner-border.d-none {
        display: none !important;
    }

.btn-secondary .spinner-border {
    border-color: rgba(31,39,51,.35);
    border-right-color: var(--navy);
}

@keyframes spinner-border-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Search message */
.search-result,
.search-message {
    margin-top: 6px;
    min-height: 14px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

    .search-message.success {
        color: var(--success);
    }

    .search-message.error {
        color: var(--danger);
    }

/* Vehicle result table */
.vehicle-result-container {
    margin-top: 12px;
    border: 1px solid var(--table-border);
    border-radius: 6.6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2.7px 12px rgba(34, 68, 96, 0.16);
}

.result-heading {
    padding: 8px 10px;
    background: linear-gradient(90deg, #0a4b78, #176d9f);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .13px;
    text-transform: none;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.vehicle-result-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 13px;
}

    .vehicle-result-table thead {
        background: var(--table-head);
    }

    .vehicle-result-table th {
        padding: 7px 9px;
        border-bottom: 1.3px solid #b9cedd;
        color: #17324d;
        font-weight: 700;
        text-align: left;
        white-space: nowrap;
    }

    .vehicle-result-table td {
        padding: 7px 9px;
        border-bottom: 1px solid #dce7ef;
        color: #222;
        white-space: nowrap;
        font-weight: 500;
    }

    .vehicle-result-table tbody tr:hover {
        background: #f7fbfe;
    }

.vehicle-success-message {
    padding: 8px 10px;
    background: var(--success-bg);
    border-top: 1px solid var(--success-border);
    color: #166534;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
}

/* Disabled section */
#submissionFields {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 100%;
}

    #submissionFields:disabled {
        opacity: .48;
    }

        #submissionFields:disabled input,
        #submissionFields:disabled label.file-btn,
        #submissionFields:disabled button {
            cursor: not-allowed;
        }

/* Notice list */
ul.notice-list {
    margin: 0 0 10px;
    padding-left: 16px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

    ul.notice-list li + li {
        margin-top: 2px;
    }

.file-types {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

/* Upload fields */
.field-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

    .field-group label.field-label {
        flex: 0 0 130px;
        font-family: var(--font-body);
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        text-transform: none;
    }

.file-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 160px;
}

    .file-input-wrap input[type="file"] {
        display: none;
    }

.file-btn {
    padding: 6px 10px;
    background: #eceff3;
    border: 1px solid var(--border);
    border-radius: 5.3px;
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    color: var(--navy);
    white-space: nowrap;
    text-transform: none;
}

    .file-btn:hover {
        background: #e0e4ea;
    }

.file-name {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
}

/* Payment */
.payment-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.payment-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    text-transform: none;
}

.payment-options {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    flex-wrap: wrap;
}

    .payment-options label {
        display: flex;
        align-items: center;
        gap: 4px;
        font-weight: normal;
        cursor: pointer;
    }

.notice-banner {
    background: linear-gradient(90deg, #3b82b6, #60a5d8);
    border: 1px solid #cbd5e1;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 5.3px;
    margin: 10px 0 12px;
    text-transform: none;
}

/* Contact grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.contact-field label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
    text-transform: none;
}

/* Validation */
.validation-summary,
.field-validation-error {
    color: var(--danger);
    font-family: var(--font-body);
    font-size: 11px;
    margin-top: 3px;
}

.input-validation-error {
    border-color: var(--danger) !important;
    background: #fff7f6 !important;
}

/* Footer actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .panel {
        max-width: 100%;
    }

    .card-body {
        padding: 14px 12px;
    }

    .search-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

        .search-row input[type="text"] {
            max-width: 100%;
        }

    .btn {
        width: 100%;
    }

    .vehicle-result-table {
        min-width: 500px;
    }
}

@media (max-width: 560px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .field-group {
        flex-direction: column;
        align-items: flex-start;
    }

        .field-group label.field-label {
            flex: none;
        }

    .file-input-wrap {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .card-header {
        padding: 8px 10px;
    }

        .card-header .brand-name {
            font-size: 13px;
        }
}

.section-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.section-enabled {
    opacity: 1;
    pointer-events: auto;
}

.fieldset-disabled {
    opacity: 0.45;
}

.fieldset-enabled {
    opacity: 1;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(2px);
}

.app-modal-box {
    position: relative;
    width: min(320px, calc(100% - 20px));
    margin: 14vh auto 0;
    background: #fff;
    border-radius: 9.3px;
    box-shadow: 0 16px 46.5px rgba(0, 0, 0, 0.35);
    padding: 18px 16px 16px;
    text-align: center;
    animation: modal-in .18s ease-out;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.app-modal-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

    .app-modal-icon.error {
        background: #dc2626;
    }

    .app-modal-icon.warning {
        background: #f59e0b;
    }

    .app-modal-icon.success {
        background: #16a34a;
    }

    .app-modal-icon.info {
        background: #2563eb;
    }

.app-modal-title {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--navy);
    font-weight: 700;
    text-transform: none;
}

.app-modal-message {
    margin: 0;
    color: #4b5563;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 18px;
}

.app-modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.app-modal-loader {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #2563eb;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
}

.modal-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(37, 99, 235, .25);
    border-right-color: #2563eb;
    border-radius: 50%;
    animation: spinner-border-spin .7s linear infinite;
}

.file-remove-btn {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    box-shadow: 0 2px 5.3px rgba(220, 38, 38, 0.25);
}

    .file-remove-btn:hover {
        background: #dc2626;
        color: #fff;
        transform: translateY(-1px);
    }

    .file-remove-btn:active {
        transform: translateY(0);
    }
