/* Color variables */
:root {
    --color-bg: #FFFFFF;
    --color-bg-card: #f6fefa;
    --color-bg-badge: #eef2f7;
    --color-primary: #29C78C;
    --color-primary-dark: #16a34a;
    --color-title: #222222;
    --color-subtitle: #6b7280;
    --color-border: #e5e7eb;
    --color-white: #fff;
    --ovza-bg: #f6f7f8;
    --ovza-surface: #ffffff;
    --ovza-text: #101214;
    --ovza-muted: #5f6670;
    --ovza-line: rgba(16, 18, 20, 0.08);
    --ovza-primary: #22c58b;
    --ovza-primary-dark: #16a34a;
    --ovza-pill: #eef2f3;
    --ovza-shadow: 0 24px 80px rgba(10, 18, 28, 0.16);
}

/* Elementor full-width integration — ensure widget sections expand properly */
.elementor-widget-ovza_hero .elementor-widget-container,
.elementor-widget-ovza_why_partner .elementor-widget-container,
.elementor-widget-ovza_jurisdiction_pricing .elementor-widget-container,
.elementor-widget-ovza_how_it_works .elementor-widget-container,
.elementor-widget-ovza_commission_tiers .elementor-widget-container,
.elementor-widget-ovza_ideal_partners .elementor-widget-container,
.elementor-widget-ovza_affiliate_testimonials .elementor-widget-container,
.elementor-widget-ovza_marketing_kits .elementor-widget-container,
.elementor-widget-ovza_faq_tabs .elementor-widget-container,
.elementor-widget-ovza_partner_signup .elementor-widget-container {
    max-width: 100%;
    width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* .ovza-hero-shape{
    width: 600px;
    height: 600px;
    background-color: red;
    position: absolute;
    top: 0px;
}

.ovza-hero-shape-left{
    left: 0px;
}

.ovza-hero-shape-right{
    right: 0px;
} */

/* Hero section */
.ovza-hero {
    position: relative;
    padding: 60px 20px;
    background: var(--color-bg);
    overflow: hidden;
}

/* .ovza-hero {
    position: relative;
    padding: 42px 20px 90px;
    background: #f7f7f7;
    overflow: hidden;
    z-index: 1;
} */

/* LEFT SHAPE */
.ovza-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;

    width: 660px;
    height: 660px;
    left: -330px;
    top: -310px;

    background: url('../images/shape.png') no-repeat center / contain;
    opacity: 0.39;
    transform: rotate(-18deg);
        rotate: 45deg;

}

/* RIGHT SHAPE */
.ovza-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;

    width: 700px;
    height: 700px;
    right: -400px;
    top: -5px;

    background: url('../images/shape.png') no-repeat center / contain;
    opacity: 0.39;
    transform: scaleX(-1) rotate(-8deg);
    rotate: 25deg;
}

.ovza-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Badge */
.ovza-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-badge);
    padding: 16px 24px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 20px;
}

.ovza-badge .dot {
    width: 15px;
    height: 15px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Title */
.ovza-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-title);
}

.ovza-title span {
    color: var(--color-primary);
}

/* Subtitle */
.ovza-subtitle {
    font-size: 24px;
    color: var(--color-title);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.ovza-contact-cta {
    display: flex;
    justify-content: center;
    margin: 22px auto 0;
}

.ovza-contact-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border: 1.5px solid var(--color-primary);
    border-radius: 999px;
    background: transparent;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ovza-contact-cta__button:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(41, 199, 140, 0.16);
}

/* Card */
.ovza-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    border-radius: 18px;
    padding: 0px 28px 32px 28px;
    margin-bottom: 40px;
    box-shadow: none;
    max-width: 98%;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
}

.ovza-card h3 {
    margin-bottom: 28px;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
}

/* Form */
.ovza-referral-form {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.ovza-referral-form input {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    min-width: 240px;
    font-size: 1.1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(41,199,140,0.04);
    transition: border 0.2s;
    outline: none;
}
.ovza-referral-form input:focus {
    border: 1.5px solid var(--color-primary);
}

.ovza-referral-form button {
    background: linear-gradient(90deg, #4EBFA3 0%, #22C885 100%);
    color: var(--color-white);
    border: none;
    padding: 18px 38px 18px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(41,199,140,0.08);
    transition: background 0.2s;
}

.ovza-referral-form button:hover {
    background: linear-gradient(90deg, #1FC2AE 0%, #29C78C 100%);
}

/* Referral link */
.ovza-referral-link {
    margin-top: 24px;
    font-size: 17px;
    color: #6b7280;
    text-align: center;
    font-weight: 400;
}

.ovza-referral-link a {
    color: var(--color-subtitle);
    text-decoration: underline;
    font-weight: 400;
}

/* Secondary section */
.ovza-secondary {
    margin-top: 30px;
}

.ovza-secondary .small {
    font-size: 12px;
    color: var(--color-primary);
    letter-spacing: 1px;
    font-weight: 600;
}

.ovza-secondary h4 {
    font-size: 22px;
    margin: 10px 0;
}

.ovza-secondary p {
    color: var(--color-subtitle);
    max-width: 440px;
    margin: 0 auto;
}


/* Form Submit Messages */
#ovza-referral-signup-message {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
}

#ovza-referral-signup-message.success {
    color: #1f7a1f;
}

#ovza-referral-signup-message.error {
    color: #c62828;
}


/* 
#######################################################################################################
*/
/* 
Success message: #1f7a1f
*/
.ovza-signup-success {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 720px;
    margin: 20px auto 0;
    padding: 18px 20px;
    border: 2px solid var(--ovza-primary);
    border-radius: 14px;
    background: #edf6f2;
    box-sizing: border-box;
}

/* Icon */
.ovza-signup-success__icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #52c7a5 0%, #23c47e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ovza-signup-success__icon svg {
    width: 22px;
    height: 22px;
}

/* Content */
.ovza-signup-success__content {
    flex: 1;
    text-align: left; /* 👈 force left alignment */
}

/* Title */
.ovza-signup-success__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

/* Text */
.ovza-signup-success__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    color: #333;
}

/* spacing between paragraphs */
.ovza-signup-success__text + .ovza-signup-success__text {
    margin-top: 4px;
}

/* Mobile */
@media (max-width: 600px) {
    .ovza-signup-success {
        flex-direction: row; /* keep horizontal */
        align-items: flex-start;
        padding: 14px;
        gap: 12px;
    }

    .ovza-signup-success__icon {
        width: 44px;
        height: 44px;
    }

    .ovza-signup-success__icon svg {
        width: 18px;
        height: 18px;
    }

    .ovza-signup-success__title {
        font-size: 15px;
    }

    .ovza-signup-success__text {
        font-size: 13px;
    }
}

/* *********************************************************************************************************** */
/* OVZA Modal */
/* *********************************************************************************************************** */

.ovza-referral-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ovza-referral-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.ovza-referral-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 139, 0.12), transparent 28%),
        rgba(10, 14, 20, 0.42);
    backdrop-filter: blur(10px);
}

.ovza-referral-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: var(--ovza-surface);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 32px;
    padding: 34px;
    box-shadow: var(--ovza-shadow);
    overflow: hidden;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.28s ease;
}

.ovza-referral-modal.is-open .ovza-referral-modal__dialog {
    transform: translateY(0) scale(1);
}

.ovza-referral-modal__dialog::before,
.ovza-referral-modal__dialog::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.ovza-referral-modal__dialog::before {
    width: 220px;
    height: 220px;
    top: -120px;
    left: -80px;
    background: rgba(34, 197, 139, 0.12);
}

.ovza-referral-modal__dialog::after {
    width: 170px;
    height: 170px;
    top: -70px;
    right: -55px;
    background: rgba(34, 197, 139, 0.08);
}

.ovza-referral-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f1f4f5;
    color: #20242a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ovza-referral-modal__close:hover {
    background: #e8edef;
    transform: rotate(90deg);
}

.ovza-referral-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--ovza-pill);
    color: #3f464f;
    font-size: 15px;
    font-weight: 500;
}

.ovza-referral-modal__badge-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ovza-primary);
    box-shadow: 0 0 0 6px rgba(34, 197, 139, 0.14);
}

.ovza-referral-modal__title {
    margin: 0 0 12px;
    color: var(--ovza-text);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.ovza-referral-modal__desc {
    margin: 0 0 26px;
    color: var(--ovza-muted);
    font-size: 16px;
    line-height: 1.65;
    max-width: 470px;
}

.ovza-referral-modal__form {
    display: grid;
    gap: 18px;
}

.ovza-referral-modal__field {
    display: grid;
    gap: 8px;
}

.ovza-referral-modal__field label {
    color: #23272d;
    font-size: 14px;
    font-weight: 600;
}

.ovza-referral-modal__field input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--ovza-line);
    border-radius: 18px;
    padding: 0 18px;
    background: #fbfcfc;
    color: var(--ovza-text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ovza-referral-modal__field input:focus {
    border-color: rgba(34, 197, 139, 0.45);
    box-shadow: 0 0 0 4px rgba(34, 197, 139, 0.12);
    background: #fff;
}

.ovza-referral-modal__actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 8px;
}

.ovza-btn {
    border: 0;
    border-radius: 18px;
    min-height: 54px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ovza-btn:hover {
    transform: translateY(-1px);
}

.ovza-btn--primary {
    background: linear-gradient(135deg, #22c58b 0%, #14b874 100%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(34, 197, 139, 0.24);
}

.ovza-btn--ghost {
    background: #eef2f3;
    color: #23272d;
}

body.ovza-referral-modal-open {
    overflow: hidden;
}

/* Form Submit Messages */
#ovza-referral-dashboard-message {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
}

#ovza-referral-dashboard-message.success {
    color: #1f7a1f;
}

#ovza-referral-dashboard-message.error {
    color: #c62828;
}


@media (max-width: 767px) {
    .ovza-subtitle {
        margin-bottom: 32px;
    }

    .ovza-contact-cta {
        margin-top: 18px;
    }

    .ovza-contact-cta__button {
        min-height: 40px;
        padding: 0 20px;
        font-size: 13px;
    }

    .ovza-hero::before {
        width: 360px;
        height: 360px;
        left: -180px;
        top: -180px;
    }

    .ovza-hero::after {
        width: 380px;
        height: 380px;
        right: -220px;
        top: -30px;
    }
}

@media (max-width: 640px) {
    .ovza-referral-modal {
        padding: 16px;
        align-items: center;
    }

    .ovza-referral-modal__dialog {
        max-width: 100%;
        border-radius: 28px 28px 18px 18px;
        padding: 28px 20px 20px;
    }

    .ovza-referral-modal__actions {
        flex-direction: column;
    }

    .ovza-btn {
        width: 100%;
    }
}
