html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: Arial, sans-serif;
    color: #1f2937;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem rgba(40, 22, 111, 0.25);
}

/* GLOBAL BRAND BUTTONS */
.btn-primary {
    background-color: #28166f;
    border-color: #28166f;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: #1f1258 !important;
        border-color: #1f1258 !important;
    }

.btn-outline-primary {
    color: #28166f;
    border-color: #28166f;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        background-color: #28166f !important;
        border-color: #28166f !important;
        color: #ffffff !important;
    }

/* LANDING PAGE */
.landing-page {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
}

/* HEADER */
.top-header {
    width: 100%;
    background: rgba(40, 22, 111, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brand-logo {
    width: 220px;
    height: auto;
    object-fit: contain;
}

/* HERO SECTION */
.hero-product {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12) 0%, transparent 30%), radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.18) 0%, transparent 35%), linear-gradient(135deg, #28166f 0%, #3f2397 45%, #140b3b 100%);
}

    .hero-product::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 25%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05), transparent 25%);
        z-index: 0;
    }

    .hero-product::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(12, 8, 33, 0.36) 0%, rgba(12, 8, 33, 0.12) 100%);
        z-index: 1;
    }

    .hero-product .container-fluid {
        position: relative;
        z-index: 2;
    }

.min-vh-hero {
    min-height: calc(100vh - 85px);
}

.hero-left {
    color: #ffffff;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-right {
    display: flex;
    justify-content: flex-end;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -1px;
}

.hero-text {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* PRODUCT CARD */
.product-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.24);
    max-width: 420px;
    width: 100%;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.card-header-visual {
    height: 180px;
    background: linear-gradient(135deg, #28166f, #4b2bb3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

    .card-header-visual::before {
        content: "";
        position: absolute;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        top: -50px;
        right: -50px;
    }

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.card-title-text {
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.96;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: #28166f;
}

.package-tag {
    background: #efeaff;
    color: #28166f;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.benefits {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .benefits li {
        display: flex;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 12px;
        font-size: 15px;
        color: #212529;
        line-height: 1.5;
    }

        .benefits li i {
            margin-top: 3px;
            color: #28166f !important;
        }

/* FORM STYLES */
.form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    transition: 0.3s;
}

    .form-card h4 {
        font-weight: 700;
        letter-spacing: -0.5px;
        color: #28166f;
    }

.section-title {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
}

.fade-in {
    animation: fadeInUp 0.4s ease;
}

.selectable-card {
    background: linear-gradient(135deg, #28166f, #4b2bb3);
    color: white;
    padding: 28px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

    .selectable-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
    }

/* INDIVIDUAL FORM STYLES */
.unit-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

    .unit-selector input {
        width: 80px;
        text-align: center;
        font-size: 1.4rem;
        font-weight: 700;
        border: none;
        background: #f4f1ff;
        border-radius: 12px;
        padding: 10px;
    }

.unit-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #28166f, #4b2bb3);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .unit-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

.total-box {
    background: #f3efff;
    border-radius: 14px;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #28166f;
    text-align: center;
}

.fancy-btn {
    box-shadow: 0 8px 20px rgba(40, 22, 111, 0.28);
}

/* VERIFIED BOX */
#companyDetails {
    background: #f7f4ff;
    border-left: 4px solid #28166f;
    animation: fadeIn 0.6s;
    font-size: 0.85rem;
}

    #companyDetails h5 {
        font-size: 1rem;
    }

    #companyDetails strong,
    #companyDetails div {
        font-size: 0.85rem;
    }

    #companyDetails .badge {
        font-size: 0.75rem;
    }

/* BUTTON ENHANCEMENT */
#btnVerifyCompany {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

#cacInput {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

/* BENEFICIARY CARD */
.beneficiary-card {
    background: #f8f9fa;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .beneficiary-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
    }

    .beneficiary-card small {
        font-size: 0.8rem;
        text-align: left;
    }

    .beneficiary-card .btn-outline-secondary {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    .beneficiary-card .badge {
        font-size: 0.75rem;
        padding: 0.3em 0.5em;
    }

    .beneficiary-card h6 {
        font-size: 0.9rem;
        margin: 0;
        padding: 0;
        line-height: 1;
        letter-spacing: normal;
        text-align: left;
        font-weight: 600;
    }

.beneficiary-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 85%;
}

.beneficiary-card .name-container {
    min-height: 2.4rem;
    display: flex;
    align-items: flex-start;
}

/* MODAL */
.modal-elegant {
    background: #ffffff;
    border: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

    .modal-elegant * {
        text-align: left;
    }

    .modal-elegant input {
        border-radius: 12px;
        border: 1px solid #e3e6ea;
    }

        .modal-elegant input:focus {
            border-color: #28166f;
            box-shadow: 0 0 0 0.15rem rgba(40, 22, 111, 0.15);
        }

.unit-input {
    width: 90px;
    padding: 0.45rem 0.5rem;
}

.modal-footer .btn {
    border-radius: 50px;
    font-weight: 500;
}

#btnProceedToReview {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

    #btnProceedToReview:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
    }

/* LOADER */
.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.loader-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    width: min(420px, 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
}

/* QUOTE MODAL */
.quote-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

    .quote-modal .text-primary,
    .quote-total-box .text-primary,
    .modal-title.text-primary {
        color: #28166f !important;
    }

.quote-price-box {
    background: #faf8ff;
    border: 1px solid #e7e1ff;
    border-radius: 16px;
    padding: 16px 18px;
}

.quote-total-box {
    background: #f3efff;
    border: 1px solid #ddd2ff;
    border-radius: 18px;
    padding: 18px;
}

.quote-unit-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0;
    color: #28166f;
    border-color: #28166f;
}

.quote-unit-input {
    width: 90px;
    height: 48px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 14px;
}

.quote-benefits-box {
    background: #faf8ff;
    border: 1px solid #e7e1ff;
    border-radius: 18px;
    padding: 18px;
}

.quote-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .quote-benefits-list li {
        padding: 10px 0;
        border-bottom: 1px solid #e5e7eb;
        font-size: 0.95rem;
    }

        .quote-benefits-list li:last-child {
            border-bottom: none;
        }

/* FORM PAGE BACKGROUND */
.form-background {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 60px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1) 0%, transparent 30%), radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.18) 0%, transparent 35%), linear-gradient(135deg, #28166f 0%, #3f2397 45%, #140b3b 100%);
}

    .form-background::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 25%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05), transparent 25%);
        z-index: 0;
    }

    .form-background::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(12, 8, 33, 0.18) 0%, rgba(12, 8, 33, 0.35) 100%);
        z-index: 1;
    }

.form-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.portal-logo {
    width: 180px;
    height: auto;
}

/* COOKIE CONSENT */
.cookie-consent-banner {
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12, 8, 33, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

    .cookie-consent-banner.show {
        display: flex;
    }

.cookie-consent-card {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 24px;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(17, 24, 39, 0.95);
    margin-bottom: 8px;
}

.cookie-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(17, 24, 39, 0.85);
    margin-bottom: 6px;
}

    .cookie-text a {
        color: #28166f;
        font-weight: 600;
        text-decoration: underline;
    }

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cookie-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}

    .cookie-close-btn:hover {
        color: #111827;
    }

.btn-cookie-primary,
.btn-cookie-secondary,
.btn-cookie-outline {
    min-width: 130px;
    height: 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0 16px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-cookie-primary {
    background: #28166f;
    color: #ffffff;
    border-color: #28166f;
}

    .btn-cookie-primary:hover {
        background: #1f1258;
        border-color: #1f1258;
        color: #ffffff;
    }

.btn-cookie-secondary {
    background: #6b7280;
    color: #ffffff;
    border-color: #6b7280;
}

    .btn-cookie-secondary:hover {
        background: #4b5563;
        border-color: #4b5563;
        color: #ffffff;
    }

.btn-cookie-outline {
    background: rgba(255, 255, 255, 0.75);
    color: #111827;
    border-color: #d1d5db;
}

    .btn-cookie-outline:hover {
        background: #f9fafb;
        color: #111827;
    }

/* COOKIE SETTINGS MODAL */
.cookie-settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000; /* higher than banner */
    background: rgba(12, 8, 33, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .cookie-settings-overlay.show {
        display: flex;
    }

.cookie-settings-modal {
    width: 100%;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
}

    .cookie-settings-header h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: #111827;
        margin: 0;
    }

    .cookie-settings-header .cookie-close-btn {
        position: static;
        font-size: 1.4rem;
    }

.cookie-settings-body {
    padding: 16px 20px;
}

.cookie-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(209, 213, 219, 0.75);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.cookie-setting-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-setting-arrow {
    font-size: 1rem;
    color: #6b7280;
}

.cookie-setting-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.cookie-setting-subtext {
    font-size: 0.8rem;
    color: #6b7280;
}

.cookie-settings-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px 20px;
}

/* SWITCH */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

    .cookie-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: 0.25s;
}

    .cookie-slider::before {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        left: 3px;
        top: 3px;
        background: #ffffff;
        border-radius: 50%;
        transition: 0.25s;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

.cookie-switch input:checked + .cookie-slider {
    background: #6d56c7;
}

    .cookie-switch input:checked + .cookie-slider::before {
        transform: translateX(18px);
    }

.cookie-switch input:disabled + .cookie-slider {
    background: #6d56c7;
    cursor: not-allowed;
}

body.cookie-consent-lock {
    overflow: hidden;
}

    body.cookie-consent-lock main,
    body.cookie-consent-lock footer {
        pointer-events: none;
        user-select: none;
    }

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .hero-product {
        min-height: auto;
        padding: 60px 0;
    }

    .min-vh-hero {
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-right {
        justify-content: center;
        margin-top: 2rem;
    }

    .product-card {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .form-card {
        padding: 20px;
        border-radius: 20px;
    }

    #units {
        width: 100% !important;
    }

    .brand-logo {
        width: 170px;
    }

    .portal-logo {
        width: 160px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 0.98rem;
    }

    .quote-benefits-box {
        padding: 14px;
    }

    .quote-benefits-list li {
        font-size: 0.9rem;
    }

    .modal-content {
        border-radius: 20px;
    }

    .quote-unit-input {
        width: 70px;
        font-size: 1rem;
    }

    .quote-unit-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .quote-total-box {
        padding: 14px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .cookie-consent-card {
        padding: 14px 16px;
    }

    .cookie-title {
        font-size: 1rem;
        padding-right: 20px;
    }

    .cookie-text {
        font-size: 0.84rem;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .btn-cookie-primary,
    .btn-cookie-secondary,
    .btn-cookie-outline {
        width: 100%;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cookie-setting-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-settings-footer {
        grid-template-columns: 1fr;
    }
}
