/* ==========================================================================
   HTAsiaLink - Become a Member Form (Version 02) Page Specific Styles
   ========================================================================== */

/* --------------------------------------
   Hero Banner Section
   -------------------------------------- */
.become-hero {
    padding: 150px 0 70px;
    background: linear-gradient(135deg, rgba(0, 67, 146, 0.95) 0%, rgba(0, 45, 98, 0.98) 100%), 
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    margin-bottom: 0px; 
}

.become-hero h1 {
    font-family: 'Playfair Display', serif;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --------------------------------------
   Form & Info Box Layout
   -------------------------------------- */
.application-section {
    background-color: #f8f9fa; /* Very subtle light grey background */
}

/* Info Notice Box Design */
.info-notice-box {
    background-color: #ffffff;
    border-radius: 12px;
    border: none;
    border-left: 5px solid var(--primary-orange); /* Accent line */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.info-notice-box p {
    font-size: 0.98rem;
    color: #495057;
    line-height: 1.7;
}

.contact-box {
    border: 1px dashed #ced4da;
    background-color: #f8f9fa !important;
}

/* Form Container Design */
.application-form-box {
    background-color: #ffffff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 67, 146, 0.08); /* Sophisticated blue-tinted shadow */
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-orange);
    border-radius: 3px;
}

/* --------------------------------------
   Tabs Design
   -------------------------------------- */
.nav-pills .nav-link {
    background-color: #f1f3f5;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    font-size: 1.05rem;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: var(--primary-blue);
    color: #ffffff !important;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 67, 146, 0.3);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #e9ecef;
    color: var(--primary-orange);
}

.nav-pills .nav-link i {
    margin-right: 8px;
}

/* --------------------------------------
   Form Elements (Inputs)
   -------------------------------------- */
.custom-input {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.custom-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.custom-input:focus, .custom-select:focus {
    background-color: #ffffff;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(226, 105, 13, 0.1); /* Soft orange glow */
    outline: none;
}

.custom-select {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-label {
    font-size: 0.95rem;
    color: #212529;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.form-check-label {
    font-size: 0.95rem;
    color: #495057;
}

.text-danger {
    color: #e23636 !important;
}

/* Required field styling */
.required-star {
    color: #e23636;
    margin-left: 3px;
}

/* Conditional input hidden by default */
.conditional-input {
    display: none;
    margin-top: 10px;
}

/* --------------------------------------
   Downloads & Links
   -------------------------------------- */
.download-link {
    color: #e2690d; /* Requested Orange */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.download-link i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.download-link:hover {
    color: #b5530a; /* Darker orange on hover */
    text-decoration: underline;
    transform: translateX(3px); /* Slight hover animation */
}

.hover-orange:hover {
    color: var(--primary-orange) !important;
    text-decoration: underline !important;
}

/* --------------------------------------
   Buttons (Cancel & Submit)
   -------------------------------------- */
.btn-cancel {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background-color: #e9ecef;
    color: #212529;
    border-color: #ced4da;
}

.btn-submit {
    background-color: #004392; /* Dark Blue */
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #002d62; /* Even darker blue for hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 67, 146, 0.3) !important;
}

/* --------------------------------------
   File Upload Area
   -------------------------------------- */
.upload-area {
    background-color: #ffffff;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.upload-area:hover {
    background-color: #f8fafc;
    border-color: var(--primary-blue);
}

.custom-file-input {
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    font-size: 0.9rem;
}

/* --------------------------------------
   Responsive Adjustments
   -------------------------------------- */
@media (max-width: 768px) {
    .become-hero {
        padding: 120px 0 50px;
    }
    .custom-file-input {
        max-width: 100% !important;
        width: 100% !important;
    }
    .btn-submit, .btn-cancel {
        width: 100%;
    }
    .nav-pills .nav-item {
        margin-bottom: 10px;
        width: 100%;
    }
    .nav-pills .nav-item.ms-3 {
        margin-left: 0 !important;
    }
    .nav-pills .nav-link {
        width: 100%;
        text-align: center;
    }
}
