/* ===================================
   GENERAL STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

header .navbar {
    background: transparent !important;
}

/* ===================================
   HERO SECTION
   =================================== */
.apply-hero {
    border-radius: 14px;
    background: linear-gradient(135deg, #0a4bd9 0%, #1c8cf2 48%, #61d7ea 100%);
    color: #fff;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(10, 75, 217, 0.15);
}

.apply-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.apply-hero p {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ===================================
   COUNTRY SELECTION
   =================================== */
.apply-country-strip {
    border: 2px solid #dbe7ff;
    border-radius: 12px;
    padding: 1.25rem;
    background: #f9fbff;
    margin-bottom: 2rem;
}

.apply-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.apply-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #b6ccff;
    border-radius: 999px;
    background: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: #18448d;
    text-decoration: none;
    line-height: 1;
    transition: all 0.3s ease;
    font-weight: 500;
}

.apply-chip:hover {
    background: #eef4ff;
    color: #0f3270;
    border-color: #0d6efd;
    transform: translateY(-2px);
}

.apply-chip.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.apply-chip img {
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ===================================
   FORM CARD
   =================================== */
.apply-form-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(13, 53, 120, 0.1);
    background: white;
}

.apply-form-card .card-body {
    padding: 2rem;
}

/* ===================================
   FORM ELEMENTS
   =================================== */
.form-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: block;
}

.form-label.required::after {
    content: ' *';
    color: #dc3545;
}

.form-control {
    border: 1.5px solid #d0d8e8;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-select {
    border: 1.5px solid #d0d8e8;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 1.5px solid #d0d8e8;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.3rem;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    user-select: none;
}

/* ===================================
   AMENITIES SECTION
   =================================== */
.amenities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* ===================================
   CAPTCHA
   =================================== */
.captcha-container {
    border: 2px solid #dbe7ff;
    border-radius: 12px;
    padding: 1.5rem;
    background: #f9fbff;
}

.captcha-container .form-label {
    margin-top: 0;
}

.captcha-input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-top: 1rem;
}

.captcha-input-group input {
    flex: 1;
}

.captcha-input-group img {
    border-radius: 8px;
    max-height: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===================================
   BUTTONS
   =================================== */
.btn-submit {
    background: linear-gradient(135deg, #0d6efd 0%, #0066cc 100%);
    border: none;
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004dad 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

/* ===================================
   TERMS AGREEMENT
   =================================== */
.terms-agreement {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #fafbfc;
}

.terms-agreement .form-check-label {
    font-size: 0.95rem;
}

.terms-agreement a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

/* ===================================
   SECTION TITLE
   =================================== */
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar {
    margin-top: 3rem;
}

.sidebar-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-card img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-list {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-list .list-group-item {
    border: none;
    background: white;
    color: #1a1a1a;
    font-weight: 500;
    padding: 1rem;
    transition: all 0.3s ease;
}

.sidebar-list .list-group-item:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar-list .list-group-item:hover {
    background: #f0f3ff;
    padding-left: 1.25rem;
}

.sidebar-list .list-group-item:first-child:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a4198 100%);
    color: white;
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: #1a1a1a;
    color: #fff;
    margin-top: 4rem;
    padding: 3rem 0;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: #b0b8c8;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

.footer-brand {
    color: #ffc107;
    font-weight: 600;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .apply-hero h1 {
        font-size: 1.6rem;
    }

    .apply-hero p {
        font-size: 0.95rem;
    }

    .apply-form-card .card-body {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .amenities-container {
        grid-template-columns: 1fr;
    }

    .captcha-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-input-group img {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .apply-hero {
        padding: 1.5rem 1rem;
    }

    .apply-hero h1 {
        font-size: 1.3rem;
    }

    .apply-country-strip {
        padding: 1rem;
    }

    .apply-chip {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1rem;
    }

    footer {
        padding: 2rem 0;
    }

    footer h5 {
        font-size: 1rem;
    }
}
