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

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f6fb;
    color: #2e2e2e;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    padding-top: 100px;
    min-height: calc(100vh - 160px);
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f3c88;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    font-weight: 500;
    color: #344767;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #1f3c88;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 60, 136, 0.15);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1f3c88, #4c74ff);
    color: #ffffff;
}

.btn-secondary {
    background: #e0e5ec;
    color: #344767;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: #0b1f4d;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    color: #50658e;
}

.booking-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(15, 28, 75, 0.15);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.booking-form .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #203a67;
}

.booking-form .form-group input,
.booking-form .form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d5d9e4;
    background: #ffffff;
    font-size: 1rem;
    color: #1f2a44;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.booking-form .form-group input:focus,
.booking-form .form-group select:focus,
.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #4c74ff;
    box-shadow: 0 0 0 4px rgba(76, 116, 255, 0.15);
}

.hero-illustration {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 340px;
    box-shadow: 0 20px 45px rgba(15, 28, 75, 0.25);
}

.hero-illustration::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 28, 75, 0.7), rgba(76, 116, 255, 0.55));
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0b1f4d;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #50658e;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 35px rgba(31, 60, 136, 0.08);
    border: 1px solid rgba(79, 113, 231, 0.08);
}

.feature-card h3 {
    margin-bottom: 12px;
    color: #1f3c88;
}

.feature-card p {
    color: #50658e;
    font-size: 0.95rem;
}

.form-container {
    width: min(520px, 90%);
    margin: 120px auto 60px;
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 25px 45px rgba(15, 28, 75, 0.15);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #0b1f4d;
}

.form-container p {
    text-align: center;
    margin-bottom: 25px;
    color: #50658e;
}

.input-group {
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #203a67;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d5d9e4;
    background: #ffffff;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.errors,
.success {
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 20px;
}

.errors {
    background: #ffe3e6;
    color: #a1263a;
    border: 1px solid #f5b6bf;
}

.success {
    background: #e0f5ea;
    color: #1a7f46;
    border: 1px solid #a6dfbe;
}

.form-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95rem;
}

.form-footer a {
    color: #1f3c88;
    font-weight: 600;
}

.main-footer {
    background: #0b1f4d;
    color: #ffffff;
    padding: 25px 0;
    text-align: center;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.car-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 28, 75, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(15, 28, 75, 0.18);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.car-card h3 {
    color: #0b1f4d;
}

.car-card .car-year {
    color: #64749b;
    font-size: 0.95rem;
}

.car-card .car-price {
    font-weight: 700;
    color: #1f3c88;
    font-size: 1.2rem;
}

.car-card .btn {
    margin-top: auto;
}

.info-message {
    margin: 40px auto;
    text-align: center;
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    width: min(640px, 90%);
    box-shadow: 0 20px 45px rgba(15, 28, 75, 0.12);
}

.table-responsive {
    overflow-x: auto;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 28, 75, 0.12);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #1f3c88;
    color: #ffffff;
}

thead th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

tbody td {
    padding: 15px 16px;
    border-bottom: 1px solid #edf0f7;
    color: #344767;
}

tbody tr:hover {
    background: #f6f8ff;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.badge-warning {
    background: rgba(250, 204, 21, 0.2);
    color: #a16207;
}

.badge-danger {
    background: rgba(248, 113, 113, 0.2);
    color: #b91c1c;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(15, 28, 75, 0.12);
    margin-bottom: 30px;
}

.dashboard-card h3 {
    margin-bottom: 15px;
    color: #0b1f4d;
}

@media (max-width: 900px) {
    .main-header .container {
        flex-direction: column;
        gap: 14px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .booking-form {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

    .hero-illustration {
        order: -1;
        min-height: 260px;
    }
}

@media (max-width: 600px) {
    .form-container {
        margin: 100px auto 40px;
        padding: 22px;
    }

    .main-header .container {
        padding: 15px 20px;
    }

    .page-wrapper {
        padding-top: 120px;
    }
}
