/* ============================================================
   MEMBERSHIP RENEWAL PAGE
   New styles only — reuses existing global tokens defined in
   style.css (--eu-blue, --eu-yellow, --primary-dark, --page-bg,
   --page-card, --page-border, --page-shadow-lift, --text-dark,
   --text-muted, etc.). Nothing in style.css is modified; this
   file only styles the markup already present in
   membership-renewal.html.
   ============================================================ */

/* ---------- Section wrapper ---------- */
.renewal-section {
    position: relative;
    background: var(--page-bg);
    overflow: hidden;
    position: relative;
    padding: 90px 0 110px;
    overflow: hidden;
    /*background: linear-gradient(135deg, var(--eu-blue) 0%, #123a8a 55%, var(--primary-dark) 100%);*/
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' width='1440' height='360' preserveAspectRatio='none' viewBox='0 0 1440 360'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1178%26quot%3b)' fill='none'%3e%3crect width='1440' height='360' x='0' y='0' fill='rgba(255%2c 255%2c 255%2c 1)'%3e%3c/rect%3e%3cpath d='M 0%2c167 C 144%2c182.8 432%2c247.2 720%2c246 C 1008%2c244.8 1296%2c178 1440%2c161L1440 360L0 360z' fill='rgba(0%2c 51%2c 153%2c 1)'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1178'%3e%3crect width='1440' height='360' fill='white'%3e%3c/rect%3e%3c/mask%3e%3c/defs%3e%3c/svg%3e");
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' width='1440' height='360' preserveAspectRatio='none' viewBox='0 0 1440 360'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1139%26quot%3b)' fill='none'%3e%3crect width='1440' height='360' x='0' y='0' fill='rgba(255%2c 255%2c 255%2c 1)'%3e%3c/rect%3e%3cpath d='M 0%2c289 C 144%2c254.4 432%2c119.2 720%2c116 C 1008%2c112.8 1296%2c241.6 1440%2c273L1440 360L0 360z' fill='rgba(34%2c 100%2c 171%2c 1)'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1139'%3e%3crect width='1440' height='360' fill='white'%3e%3c/rect%3e%3c/mask%3e%3c/defs%3e%3c/svg%3e");*/
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' width='1440' height='360' preserveAspectRatio='none' viewBox='0 0 1440 360'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1084%26quot%3b)' fill='none'%3e%3crect width='1440' height='360' x='0' y='0' fill='rgba(255%2c 255%2c 255%2c 1)'%3e%3c/rect%3e%3cpath d='M 0%2c23 C 96%2c57.6 288%2c175.6 480%2c196 C 672%2c216.4 768%2c109.8 960%2c125 C 1152%2c140.2 1344%2c242.6 1440%2c272L1440 360L0 360z' fill='rgba(34%2c 100%2c 171%2c 1)'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1084'%3e%3crect width='1440' height='360' fill='white'%3e%3c/rect%3e%3c/mask%3e%3c/defs%3e%3c/svg%3e");*/
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;

}

/* main diagonal navy panel, sweeping from upper-right down across the bottom */
.renewal-bg-right {
    position: absolute;
    inset: auto 0 0 0;
    height: 68%;
    /*background: linear-gradient(135deg, var(--eu-blue) 0%, #123a8a 55%, var(--primary-dark) 100%);*/
    clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0 100%);
    z-index: 0;
}

/* lighter overlapping wave sitting on top of the navy panel, bottom-left */
.renewal-bg-left {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46%;
    height: 30%;
    background: var(--page-bg);
    clip-path: polygon(0 35%, 100% 0%, 100% 100%, 0 100%);
    z-index: 0;
    opacity: 0.9;
}

/* faint dot grid, top right of the light area */
.renewal-bg-dots {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 220px;
    height: 220px;
    background-image: radial-gradient(rgba(0, 51, 153, 0.16) 1.6px, transparent 1.6px);
    background-size: 16px 16px;
    z-index: 0;
    pointer-events: none;
}

/* subtle dot grid within the navy panel, bottom left */
.renewal-bg-dots-2 {
    position: absolute;
    left: 40px;
    bottom: 40px;
    width: 160px;
    height: 160px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.6px, transparent 1.6px);
    background-size: 16px 16px;
    z-index: 0;
    pointer-events: none;
}

.renewal-section .container {
    position: relative;
    z-index: 1;
}

/* ---------- Heading block ---------- */
.renewal-header {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.renewal-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--eu-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.renewal-eyebrow::before,
.renewal-eyebrow::after {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--eu-blue);
    opacity: 0.55;
}

.renewal-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.9rem;
}

.renewal-title-underline {
    width: 70px;
    height: 4px;
    background: var(--eu-yellow);
    margin: 0 auto 1.5rem;
}

.renewal-desc {
    color: var(--text-dark);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 660px;
    margin: 0 auto;
}

/* ---------- Form card ---------- */
.renewal-card-wrap {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
}

.renewal-form-card {
    position: relative;
    z-index: 1;
    background: var(--page-card);
    border-radius: 22px;
    box-shadow: var(--page-shadow-lift);
    padding: 48px 56px 46px;
}

/* corner accent frames sitting just outside the card */
.card-accent-top,
.card-accent-bottom {
    position: absolute;
    width: 96px;
    height: 96px;
    pointer-events: none;
    z-index: 2;
}

.card-accent-top {
    top: -26px;
    left: -18px;
    border-top: 3px solid var(--eu-blue);
    border-left: 3px solid var(--eu-blue);
    border-radius: 4px 0 0 0;
}

.card-accent-bottom {
    bottom: -26px;
    right: -18px;
    border-bottom: 3px solid var(--eu-yellow);
    border-right: 3px solid var(--eu-yellow);
    border-radius: 0 0 4px 0;
}

/* card header: icon badge + label + dotted rule */
.renewal-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.renewal-form-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
    border: 3px solid var(--eu-yellow);
    color: var(--eu-yellow);
    font-size: 1.3rem;
}

.renewal-form-title-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.renewal-form-label {
    flex: 0 0 auto;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--eu-blue);
    margin: 0;
    white-space: nowrap;
}

.renewal-form-dots-line {
    flex: 1 1 auto;
    height: 0;
    border-top: 2px dotted var(--eu-yellow);
    margin-top: 2px;
}

/* ---------- Fields ---------- */
.renewal-input-group {
    margin-bottom: 26px;
}

.renewal-input-group label {
    display: flex;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 7px;
}

.required {
    color: #d62828;
}

.renewal-input-wrap {
    position: relative;
}

.renewal-input-wrap .input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--eu-blue);
    font-size: 1rem;
    pointer-events: none;
}

.renewal-input-wrap input {
    width: 100%;
    border: 1px solid var(--page-border);
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px 16px 12px 46px;
    font-family: "Poppins", sans-serif;
    font-size: 0.94rem;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.renewal-input-wrap input:focus {
    outline: none;
    border-color: var(--eu-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
    background: #fff;
}

.renewal-input-wrap input.is-invalid {
    border-color: #d62828;
    background: #fff5f5;
}

.renewal-input-wrap:has(input.is-invalid) .input-icon {
    color: #d62828;
}

/* ---------- Submit ---------- */
.renewal-submit-wrap {
    text-align: center;
    margin-top: 14px;
}

.renewal-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--eu-blue);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 44px;
    border: none;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 51, 153, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

/*
.renewal-submit-btn::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -6px;
    height: 3px;
    background: var(--eu-yellow);
    border-radius: 2px;
}*/

.renewal-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 51, 153, 0.42);
    color: var(--white);
}

.renewal-form-status {
    display: none;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(34, 139, 87, 0.1);
    color: #1e7a4a;
    font-size: 0.92rem;
    font-weight: 500;
}

.renewal-form-status.show {
    display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .renewal-form-card {
        padding: 40px 30px 36px;
    }

    .card-accent-top,
    .card-accent-bottom {
        display: none;
    }

    .renewal-bg-left {
        width: 60%;
    }
}

@media (max-width: 767px) {
    .renewal-input-wrap input {
        height: 54px;
    }
}

@media (max-width: 575.98px) {
    .renewal-section {
        padding: 60px 0 80px;
    }

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

    .renewal-form-header {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .renewal-form-title-wrap {
        flex-wrap: wrap;
    }

    .renewal-form-dots-line {
        flex-basis: 100%;
        order: 3;
    }
}

/* ---------- Payment overlay and status screens ---------- */
.payment-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    border-radius: 22px;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 40px rgba(0, 51, 153, 0.02);
}

.payment-overlay.active {
    display: flex;
}

.payment-status-card {
    max-width: 480px;
    width: 100%;
}

.payment-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.payment-status-icon.loading {
    background: #fff;
    color: var(--eu-blue);
    border: 5px solid #f1f4f8;
    border-top-color: var(--eu-blue);
    animation: rzp-spin 1.1s cubic-bezier(0.6, 0.2, 0.2, 0.8) infinite;
    box-shadow: none;
}

.payment-status-icon.success {
    background: #e8f8f0;
    color: #28a745;
    border: 2px solid #d4edda;
    animation: rzp-scaleIn 0.48s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.payment-status-icon.error {
    background: #fff5f5;
    color: #dc3545;
    border: 2px solid #f8d7da;
    animation: rzp-scaleIn 0.48s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.payment-status-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.payment-status-message {
    font-size: 0.94rem;
    color: var(--text-dark);
    margin-bottom: 26px;
    line-height: 1.6;
}

.payment-receipt-box {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 28px;
    text-align: left;
    font-size: 0.88rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.payment-receipt-box div {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.payment-receipt-box div:last-child {
    margin-bottom: 0;
}

.payment-receipt-box span.lbl {
    font-weight: 600;
    color: #666;
}

.payment-receipt-box span.val {
    color: #111;
    font-weight: 500;
}

.payment-overlay-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.payment-btn-primary {
    background: var(--eu-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.2);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.payment-btn-primary:hover {
    background: #001e4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 51, 153, 0.3);
    color: #fff;
}

.payment-btn-secondary {
    background: #f1f4f8;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.payment-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

@keyframes rzp-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rzp-scaleIn {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---------- International Phone Input (intl-tel-input) ---------- */
.intl-phone-wrap .iti {
    width: 100%;
}

.intl-phone-wrap .iti input.intl-phone-input {
    width: 100%;
    border: 1px solid var(--page-border);
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px 16px 12px 100px;
    font-family: "Poppins", sans-serif;
    font-size: 0.94rem;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    height: auto;
}

.intl-phone-wrap .iti input.intl-phone-input:focus {
    outline: none;
    border-color: var(--eu-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
    background: #fff;
}

.intl-phone-wrap .iti input.intl-phone-input.is-invalid {
    border-color: #d62828;
    background: #fff5f5;
}

/* Flag button area */
.intl-phone-wrap .iti .iti__selected-dial-code {
    font-family: "Poppins", sans-serif;
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 500;
}

.intl-phone-wrap .iti .iti__arrow {
    border-top-color: var(--text-dark);
}

/* Dropdown list */
.iti__dropdown-content {
    z-index: 9999 !important;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--page-border);
}

.iti__search-input {
    font-family: "Poppins", sans-serif;
    font-size: 0.88rem;
    padding: 8px 12px;
    border-bottom: 1px solid var(--page-border);
}

.iti__country-list {
    font-family: "Poppins", sans-serif;
    font-size: 0.88rem;
}

.iti__country.iti__highlight {
    background: rgba(0, 51, 153, 0.06);
}