.application-form-component *,
.application-form-component *::before,
.application-form-component *::after {
    box-sizing: border-box;
}

/* Premium Navy/Silver Theme */
.application-form-component {
    display: flex !important;
    /* Deep Navy Gradient matching branding */
    background:
        radial-gradient(1000px 600px at 85% 20%, rgba(255, 255, 255, 0.05), transparent 60%),
        linear-gradient(135deg, #0B1F33 0%, #1F3A5F 100%) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    max-width: 1200px !important;
    margin: 2rem auto !important;
    position: relative !important;
    gap: 40px !important;
    padding: 32px !important;
    font-family: 'Tajawal', sans-serif;
}

.form-header-section {
    flex: 1.1;
    padding: 20px 10px;
    color: white;
    position: relative;
    z-index: 1;
}

/* Texture overlay */
.form-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

.header-content {
    margin-bottom: 40px;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.icon-wrapper i {
    font-size: 1.8rem;
    color: #ffd700;
    /* Gold accent */
}

.custom-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.custom-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 90%;
}

.journey-title {
    font-size: 1.25rem;
    color: #ffd700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 30px;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

/* Benefits List */
.benefits-section h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: #e2e8f0;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.benefits-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    margin-left: 16px;
    color: #4ade80;
    /* Success Green */
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.benefit-text strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 4px;
}

.benefit-text span {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.6);
    /* Very dark navy */
    border-radius: 20px;
    font-size: 0.85rem;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge i {
    color: #ffd700;
}

/* Right Side - Form Card */
.form-wrapper {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    align-self: flex-start;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0B1F33 0%, #1F3A5F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 10px 20px rgba(11, 31, 51, 0.15);
}

.form-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.form-subtitle-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px dashed #cbd5e1;
}

.subtitle-icon {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B1F33;
}

.form-subtitle {
    margin: 0;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Inputs */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
    transition: 0.3s;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    background: #fff;
    border-color: #0B1F33;
    box-shadow: 0 0 0 3px rgba(11, 31, 51, 0.1);
}

.form-group input:focus+.input-icon {
    color: #0B1F33;
}

.form-group label {
    position: absolute;
    top: 50%;
    right: 48px;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: 0.3s;
    background: transparent;
    padding: 0 4px;
}

/* Floating Label Animation */
.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label {
    top: 0;
    right: 12px;
    transform: translateY(-50%) scale(0.9);
    background: #fff;
    color: #0B1F33;
    font-weight: 600;
}

/* Select needs manual label handling or different style, 
   but currently inputs are mainly text/tel/email */

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0B1F33 0%, #1F3A5F 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(11, 31, 51, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(11, 31, 51, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.divider-text {
    text-align: center;
    margin: 15px 0;
    position: relative;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e2e8f0;
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

.whatsapp-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    color: white;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.form-footer p {
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-footer i {
    color: #0B1F33;
}

/* Responsive */
@media (max-width: 900px) {
    .application-form-component {
        flex-direction: column;
        padding: 20px !important;
        gap: 25px !important;

        /* Adjusted for Wrapper Padding Strategy */
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;

        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
        /* Softer shadow within bounds */
    }

    .form-header-section {
        padding: 10px 5px;
        /* Add inner padding for text safety */
        text-align: center;
    }

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

    .custom-title {
        font-size: 1.75rem;
        /* Smaller title */
        word-wrap: break-word;
        /* Prevent text overflow */
    }

    .form-header-section p.custom-description {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .trust-badges {
        justify-content: center;
    }

    /* Fix matches 480px block for consistency */
    .form-wrapper {
        padding: 30px 25px !important;
        /* Increased padding */
    }

    .form-subtitle-container {
        padding: 20px !important;
        /* Larger container */
        margin-bottom: 25px;
    }

    .form-subtitle {
        font-size: 1.1rem !important;
        /* Larger text */
    }
}

@media (max-width: 480px) {
    .application-form-component {
        padding: 12px !important;
        /* Keep 15px but ensure box-sizing handles it */
        width: 100% !important;
        /* Full width of the padded container */
        margin: 0 !important;
        /* Let Flexbox handle centering */
        border-radius: 16px !important;
        overflow: hidden !important;
        /* Force clip internal overflow */
    }

    .custom-title {
        font-size: 1.4rem;
        /* Smaller title to prevent wrapping issues */
    }

    .form-wrapper {
        padding: 25px 20px;
    }

    .benefits-list li {
        padding: 10px;
    }

    .form-subtitle-container {
        padding: 15px !important;
        margin-bottom: 20px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .form-group input,
    .form-group select {
        font-size: 16px;
        /* Prevent iOS zoom */
    }
}