/* ===== Premium Tailwind-Style Dropdown ===== */

.navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.28s ease;

    min-width: 260px;
    padding: 0px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.08),
        0 4px 10px rgba(15, 23, 42, 0.04);
    margin-top: 14px;
}

/* Show dropdown smoothly */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== Dropdown Items ===== */

.navbar .dropdown-item {
    position: relative;
    display: flex;
    align-items: center;

    padding: 10px 15px;
    margin: 0px;

    border-radius: 0px;
    border-left: 3px solid transparent;

    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;

    color: #334155;
    background: transparent;

    transition: all 0.25s ease;
}

/* Hover Effect */
.navbar .dropdown-item:hover {
    background: #dfe1f5;
    color: #0f172a;
    border-left: 3px solid #3b82f6;
}

/* Elegant active state */
.navbar .dropdown-item:active {
    transform: scale(0.98);
}

.navbar .dropdown-item:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* ===== Navbar Link ===== */

.navbar .nav-link.dropdown-toggle {
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Hover nav text */
.navbar .nav-link.dropdown-toggle:hover {
    color: #2563eb;
}

/* Smooth arrow animation */
.navbar .dropdown-toggle::after {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after,
.nav-item.dropdown .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* ===== Mobile ===== */

@media (max-width: 991px) {

    .navbar .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;

        background: #ffffff;
        border-radius: 14px;
        margin-top: 8px;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .navbar .dropdown-item {
        padding: 12px 14px;
    }
}

.form-card {
    border: none;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    overflow: hidden;
}

.form-card h1 {
    font-size: 24px;
    padding-bottom: 10px;
}

.card-header-custom {
    background: linear-gradient(105deg, #0B2B40 0%, #124A5E 100%);
    padding: 1.8rem 2rem;
    border-bottom: none;
}

div#successMessageBox {
    background: linear-gradient(135deg, #f5fff6, #fff);
    border: 1px solid #cafecd;
    border-left: 6px solid #35dc26;
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.08);
    animation: errorFade .35s ease;
}

/* ERROR MESSAGE BOX */
#errorMessageBox {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 1px solid #fecaca;
    border-left: 6px solid #dc2626;
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.08);
    animation: errorFade .35s ease;
}

/* LIST */
#errorMessageBox ul {
    padding: 0;
    list-style: none;
}

/* LIST ITEM */
#errorMessageBox ul li {
    position: relative;
    padding: 5px 15px 5px 45px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #fee2e2;
    border-radius: 14px;
    color: #7f1d1d;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    transition: .3s ease;
}

/* ICON */
#errorMessageBox ul li::before {
    content: "!";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) scale(0.75);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
}

/* HOVER EFFECT */
#errorMessageBox ul li:hover {
    transform: translateX(4px);
    background: #fef2f2;
}

/* LAST ITEM */
#errorMessageBox ul li:last-child {
    margin-bottom: 0;
}

/* ANIMATION */
@keyframes errorFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */
@media(max-width:576px) {

    #errorMessageBox {
        padding: 18px;
        border-radius: 14px;
    }

    #errorMessageBox .error-header {
        font-size: 17px;
    }

    #errorMessageBox ul li {
        font-size: 14px;
        padding: 12px 14px 12px 42px;
    }

}

/* ===============================================
       Box styling for form sections (card-like design)
       =============================================== 
*/

.section-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    border: 1px solid rgba(42, 157, 143, 0.12);
}

.section-card:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.02);
}

/* Adjust the section title inside the card for better spacing */
.section-card .section-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 5px solid #2A9D8F;
}

/* Slight padding adjustment for nested rows on small screens */
@media (max-width: 768px) {
    .section-card {
        padding: 1.25rem;
    }
}

/* Optional: Enhance the form elements inside the card for consistent spacing */
.section-card .form-control,
.section-card .form-select,
.section-card textarea {
    background-color: #fefefe;
}

/* Keep the existing spacing for radio/checkbox groups clean */
.section-card .custom-check-grid,
.section-card .radio-inline-group {
    margin-top: 0.25rem;
}

.section-title {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
    color: #1A3E4C;
    border-left: 5px solid #2A9D8F;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    color: #2A9D8F;
    margin-right: 0.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c5a6e;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select,
textarea {
    border: 1.5px solid #e2e8f0;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
    background-color: #fefefe;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #2A9D8F;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.15);
    outline: none;
}

.form-check-input:checked {
    background-color: #2A9D8F;
    border-color: #2A9D8F;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.25);
    border-color: #2A9D8F;
}

.btn-premium {
    background: linear-gradient(95deg, #1E6F5C, #2A9D8F);
    border: none;
    padding: 0.9rem 2rem;
    font-weight: 700;
    border-radius: 40px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    box-shadow: 0 8px 18px rgba(42, 157, 143, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(95deg, #155f4e, #238b7e);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(42, 157, 143, 0.4);
}

.badge-category {
    background: #EFF7F6;
    color: #1E6F5C;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.8rem;
}

.card-padding {
    padding: 2rem 2rem 1rem 2rem;
}

@media (max-width: 768px) {
    .card-padding {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

.custom-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
}

.radio-inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.legal-other-input {
    margin-top: 0.5rem;
    margin-left: 1.2rem;
}

.business-other-input {
    margin-top: 0.5rem;
}

.text-premium-dark {
    color: #1A3E4C;
}

.bg-white-soft {
    background-color: #ffffff;
}

.hover-lift {
    transition: transform 0.1s ease;
}

.fs-small {
    font-size: 0.95rem;
}


/* PREMIUM LOADER */
.premium-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 32, 0.72);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .3s ease;
}

.premium-loader-box {
    width: 420px;
    max-width: 92%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 45px 35px;
    text-align: center;
    color: #fff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.premium-spinner-wrap {
    width: 120px;
    height: 120px;
    margin: auto;
    position: relative;
}

.premium-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.08);
    border-top: 5px solid #c9a227;
    animation: spin 1s linear infinite;
}

.premium-spinner-core {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #111;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
}

.premium-loader-box h3 {
    margin-top: 28px;
    font-size: 28px;
    font-weight: 700;
}

.premium-loader-box p {
    margin-top: 10px;
    color: #d6d6d6;
    line-height: 1.7;
}

.premium-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    overflow: hidden;
    margin-top: 28px;
}

.premium-progress-bar {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #d4af37, #f5d76e);
    border-radius: 50px;
    animation: loadingBar 1.5s infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingBar {
    0% {
        margin-left: -40%;
    }

    100% {
        margin-left: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.d-none {
    display: none !important;
}


.corporate-loader {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.corporate-box {
    width: 540px;
    max-width: 92%;
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.corporate-header {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.corporate-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.corporate-header h4 {
    margin: 0;
    font-weight: 800;
}

.corporate-header span {
    color: #6b7280;
}

.corporate-process {
    margin-top: 28px;
}

.step {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.step.active {
    color: #16a34a;
}

.step.loading {
    color: #2563eb;
}

.mini-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #dbeafe;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.corporate-progress-wrap {
    margin-top: 28px;
    background: #e5e7eb;
    height: 10px;
    border-radius: 50px;
    overflow: hidden;
}

.corporate-progress-bar {
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    animation: corporateProgress 2s infinite;
}

.corporate-note {
    margin-top: 16px;
    color: #6b7280;
    text-align: center;
}

@keyframes corporateProgress {
    0% {
        width: 10%;
    }

    100% {
        width: 100%;
    }
}