/* ==============================================
   DRIVER RECRUITMENT WEBSITE - MAIN STYLESHEET
   ============================================== */

:root {
    --primary: #001a4d;
    --accent: #ff8c00;
    --accent-light: #ffb84d;
    --dark: #0f0f0f;
    --light: #f9f9f9;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-lighter: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* ============ BUTTONS ============ */
button, .btn, input[type="button"], input[type="submit"] {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary, .btn-primary:visited {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 26, 77, 0.2);
}

.btn-accent, .btn-accent:visited {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #ff7a00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.2);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============ CONTAINER & LAYOUT ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-small {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ HEADER/NAV ============ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #003b99 100%);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.trust-badge::before {
    content: '✓';
    font-size: 1.3rem;
    color: var(--accent);
}

.hero-visual {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 140, 0, 0.05));
    border-radius: var(--border-radius);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* ============ CARDS ============ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 26, 77, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* ============ STEPS ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    position: relative;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* ============ REQUIREMENTS ============ */
.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.requirement-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: var(--light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
}

.requirement-item::before {
    content: '✓';
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.requirement-item p {
    margin: 0;
}

/* ============ FAQ ============ */
.faq-item {
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--light);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--gray-lighter);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.open .faq-question {
    background-color: var(--primary);
    color: var(--white);
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 25px;
    color: var(--gray);
    border-top: 1px solid var(--gray-light);
}

.faq-item.open .faq-answer {
    display: block;
}

/* ============ FORM ============ */
form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

label .required {
    color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 26, 77, 0.1);
}

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

.form-error {
    border-color: var(--danger) !important;
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 5px;
}

.form-checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--gray-light);
    border-radius: var(--border-radius);
    background-color: var(--light);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background-color: rgba(0, 26, 77, 0.02);
}

.file-upload-label::before {
    content: '📎';
    margin-right: 10px;
    font-size: 1.5rem;
}

/* ============ SUCCESS PAGE ============ */
.success-container {
    text-align: center;
    padding: 80px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-container h1 {
    color: var(--primary);
    margin-bottom: 20px;
}

.success-container p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ CONTACT SECTION ============ */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    text-align: center;
}

.contact-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-item p {
    margin: 0;
}

/* ============ ADMIN SECTION ============ */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--primary);
    color: var(--white);
    padding: 30px 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 0 25px;
    margin-bottom: 40px;
    font-size: 1.3rem;
    font-weight: 700;
}

.admin-nav {
    list-style: none;
}

.admin-nav-item {
    margin: 0;
}

.admin-nav-link {
    display: block;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-nav-link.active {
    background-color: var(--accent);
    border-left-color: var(--accent);
    color: var(--white);
}

.admin-content {
    margin-left: 250px;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 20px;
}

.admin-header h1 {
    color: var(--primary);
}

/* ============ STATS ============ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
    text-align: center;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============ TABLE ============ */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

thead {
    background-color: var(--gray-lighter);
    border-bottom: 2px solid var(--gray-light);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: var(--primary);
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
}

tbody tr:hover {
    background-color: var(--light);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.status-new {
    background-color: #dbeafe;
    color: #0c4a6e;
}

.status-reviewing {
    background-color: #fef3c7;
    color: #92400e;
}

.status-shortlisted {
    background-color: #d1fae5;
    color: #065f46;
}

.status-interview {
    background-color: #fecaca;
    color: #7f1d1d;
}

.status-accepted {
    background-color: #a7f3d0;
    color: #065f46;
}

.status-rejected {
    background-color: #fee2e2;
    color: #7f1d1d;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.pagination .active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============ FOOTER ============ */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============ ALERTS ============ */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-error {
    background-color: #fee2e2;
    color: #7f1d1d;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background-color: #dbeafe;
    color: #0c4a6e;
    border-left: 4px solid var(--info);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(13px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-13px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .hero-visual {
        display: none;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .trust-indicators {
        grid-template-columns: 1fr;
    }

    .admin-container {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 20px 0;
    }

    .admin-content {
        margin-left: 0;
        padding: 20px;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 10px;
    }

    .btn-small {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .section {
        padding: 30px 0;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select,
    button {
        font-size: 16px; /* Prevents zoom on iOS */
    }

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

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

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ============ LOADING ============ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 26, 77, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ UTILITY CLASSES ============ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--gray);
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

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