﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    /*background-color: #f4f6f9;*/
    background: url('/images/pilot licence1.1.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

/* HEADER */
.header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
}

.logo-text h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2f46;
}

.nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #1f2f46;
    font-weight: 500;
    transition: 0.3s;
}

    .nav a:hover {
        color: #3bb54a;
    }

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    background: url('pilot.jpg') center/cover no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
}

.overlay {
    height: 100vh;
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 36, 66, 0.95), rgba(10, 36, 66, 0.6));
}

.hero-content {
    
    position: relative;
    color: white;
    max-width: 700px;
}

    .hero-content h1 {
        font-size: 36px;
        margin-bottom: 20px;
        line-height: 1.3;

    }

        .hero-content h1 span {
            color: #67c23a;
            display: block;
        }

    .hero-content p {
        font-size: 18px;
        margin-bottom: 30px;
    }

/* SEARCH BOX */
.search-box {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .search-box select,
    .search-box input {
        padding: 15px;
        border-radius: 8px;
        border: none;
        width: 250px;
        font-size: 14px;
    }

    .search-box button {
        padding: 15px 40px;
        background-color: #0b8f1a;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: 0.3s;
    }

        .search-box button:hover {
            background-color: #3bb54a;
            color: white;
        }


/* SMALL HERO */
.hero-small {
    position: relative;
    width: 100%;
    min-height: 100px; /* Increase height */
    background: url('/images/pilot.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    overflow: hidden;
}

    .hero-small .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(10,36,66,0.95), rgba(10,36,66,0.6));
    }

.hero-small-content {
    position: relative;
    color: white;
    max-width: 700px;
}

.hero-small h1 {
    font-size: 22px;
    line-height: 1.4;
}

    .hero-small h1 span {
        margin-top: 5vh;
        color: #67c23a;
        display: block;
    }

/* SUCCESS BANNER */
.otp-success-banner {
    position: absolute;
    top: 20px;
    right: 0;
    background: #0b8f1a;
    color: white;
    padding: 12px 40px;
    font-weight: 600;
}

/* OTP SECTION */
.otp-section {
    height: 100vh;
    background: #f4f6f9;
    padding: 60px 0 100px;
}

.otp-container {
    max-width: 800px;
    margin: auto;
}

.otp-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.otp-subtitle {
    color: #666;
    margin-bottom: 40px;
}

/* OTP BOXES */
.otp-input-group {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.otp-box {
    width: 80px;
    height: 80px;
    font-size: 32px;
    text-align: center;
    border: 1px solid #2e7d32;
    border-radius: 6px;
    outline: none;
    background: white;
    color: #2e7d32;
}

    .otp-box:focus {
        border: 2px solid #2e7d32;
    }

/* RESEND */
.resend-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 30px;
}

/* CONTINUE BUTTON */
.continue-btn {
    background: #0b8f1a;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

    .continue-btn:hover {
        background: #067512;
    }

/* RESPONSIVE */
@media (max-width: 768px) {

    .otp-input-group {
        gap: 10px;
    }

    .otp-box {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }

    .hero-small {
        height: 150px;
    }
}






/* FOOTER */
.footer {
    background: #ffffff;
    padding: 15px 0;
    border-top: 1px solid #ddd;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer a {
    margin-left: 20px;
    text-decoration: none;
    color: #1f2f46;
}

    .footer a:hover {
        color: #3bb54a;
    }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .search-box {
        flex-direction: column;
    }

        .search-box select,
        .search-box input,
        .search-box button {
            width: 100%;
        }

    .header-container,
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }
}




/* DASHBOARD SECTION */
.license-dashboard {
    padding: 50px 5%;
    background: #f4f6f9;
}

.dashboard-container {
    max-width: 1400px;
    margin: auto;
}

/* HEADER */
.license-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.license-code {
    background: #8bd59e;
    padding: 8px 40px;
    border-radius: 6px;
    font-weight: 600;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

    .status-badge.valid {
        background: #d4edda;
        color: #155724;
    }

    .status-badge.invalid {
        background: #f8d7da;
        color: #721c24;
    }

/* SUMMARY TABLE */
.license-summary table {
    width: 100%;
    background: #1f2f46;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.license-summary th,
.license-summary td {
    padding: 12px;
    font-size: 14px;
}

/* INFO SECTION */
.info-section {
    margin-bottom: 30px;
}

.info-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

    .info-table th,
    .info-table td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

/* RATINGS */
.ratings-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.ratings-header {
    background: #4f5b6b;
    color: white;
    padding: 12px;
    font-weight: 600;
}

.ratings-table {
    width: 100%;
}

    .ratings-table th,
    .ratings-table td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
        font-size: 14px;
    }

.no-data {
    padding: 20px;
}


.alert {
    margin: 15px auto;
    padding: 12px 20px;
    width: 60%;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

.success-alert {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.error-alert {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}