/* Import Centralized Color Palette */
@import url('theme.css');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--gradient-body);
    font-family: 'Poppins', sans-serif;
    color: var(--uh-navy);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 235, 59, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 235, 59, 0);
    }
}

.container {
    max-width: var(--container-max-width);
    width: 100%;
    margin: var(--spacing-lg) auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    box-sizing: border-box;
}

/* Pricing Grid (Daily / Monthly / Yearly) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    /* Tighter gap */
    margin: 1rem 0 1.5rem;
    /* Reduced top/bottom margin */
    width: 100%;
}

/* Verification Section - Left/Top */
.verify-section {
    background: var(--uh-white);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.verify-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--uh-mint), var(--uh-blue));
}

.verify-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-sizing: border-box;
}

.verify-box h2 {
    color: var(--uh-navy);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.input-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--uh-navy);
    font-weight: 600;
    font-size: 1rem;
}

input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: 'Poppins', sans-serif;
}

input:focus {
    outline: none;
    border-color: var(--uh-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 114, 206, 0.2);
    /* Soft Blue Glow */
    transform: translateY(-2px);
}

button {
    width: 100%;
    padding: var(--spacing-md);
    margin-top: var(--spacing-xs);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--gradient-button);
    color: var(--uh-white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 114, 206, 0.3);
    font-family: 'Poppins', sans-serif;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 114, 206, 0.4);
}

button:active {
    transform: translateY(-1px);
}

.msg {
    margin-top: 1rem;
    font-size: 0.95rem;
    min-height: 1.5em;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 8px;
}

.msg.success {
    color: var(--success);
    background: rgba(39, 174, 96, 0.1);
}

.msg.error {
    color: var(--error);
    background: rgba(231, 76, 60, 0.1);
}

/* CARD STYLE: White Background, Mint Border using Variables */
.benefit-card {
    background: var(--uh-white);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    border: none;
    border-left: 6px solid var(--uh-mint);
    /* Mint accent variable */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-height: 60px;

    /* Staggered Entry */
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

/* Stagger Delays */
.benefit-card:nth-child(1) {
    animation-delay: 0.3s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.5s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.6s;
}

.benefit-card:nth-child(5) {
    animation-delay: 0.7s;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit-card i {
    font-size: 1.25rem;
    margin-right: 14px;
    color: var(--uh-navy);
    /* Navy variable */
    -webkit-text-fill-color: var(--uh-navy);
    background: none;
    flex-shrink: 0;
}

.benefit-card div {
    font-size: 1rem;
    font-weight: 700;
    color: var(--uh-navy);
    /* Navy variable */
    line-height: 1.3;
    width: 100%;
}

/* Highlight Card (Cashless) - Yellow Style */
.benefit-card.highlight {
    background: #FFEB3B;
    border: 2px solid #000;
    border-left: 2px solid #000;
    /* uniform border */
    color: #000;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 0 #000;
    /* Retro shadow from image */
    margin-top: 8px;

    /* Pulse Animation */
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, pulse-yellow 2s infinite 1s;
}

/* Similar to index.css offers */
.offer-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 8px;
    color: var(--uh-navy);
}

.price {
    font-weight: 800;
    margin-top: 6px;
    color: #FFEB3B;
    font-size: 2.5rem;
    /* Yellow */
}

.sub-price {
    margin-top: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    opacity: 0.95;
    color: var(--uh-white);
}

.sub-text {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 6px;
    color: var(--uh-white);
}

.benefits-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-align: center;
    color: var(--uh-navy);
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

@media (min-width: 900px) {
    .benefits {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Make the heading span full width in grid */
    .benefits-heading {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    /* Make the yellow/highlight card span full width */
    .white-card.yellow,
    .benefit-card.highlight {
        grid-column: 1 / -1;
    }
}

.white-card {
    background: var(--uh-white);
    padding: 0.85rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-left: 6px solid var(--card-left-accent);
    border-radius: 10px;
    color: var(--uh-navy);
    border: 1px solid var(--border-rgba);
}

.white-card.yellow {
    background: #FFEB3B;
    color: #000;
    font-weight: 900;
    font-size: 1.15rem;
    text-align: center;
    border: 2px solid #000;
    text-transform: uppercase;
    border-left: 2px solid #000;
    /* Reset left border */
}

#otpBox {
    display: none;
}

#otpBox p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.resend-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--uh-blue);
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.resend-link:hover {
    color: var(--uh-navy);
    text-decoration: underline;
}

.additional-benefits {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(11, 43, 74, 0.08);
}

.why {
    background: linear-gradient(135deg, rgba(0, 114, 206, 0.1), rgba(47, 230, 169, 0.1));
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--uh-blue);
}

.why strong {
    color: var(--uh-navy);
    font-size: 1.1rem;
    display: block;
    font-weight: 700;
}

/* Information Section - Right/Bottom */
.info-section {
    background: var(--uh-white);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--uh-mint), var(--uh-blue));
}

.info-section h1 {
    color: var(--uh-navy);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.info-section p {
    color: #555;
    line-height: 1.75;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.info-section p strong {
    color: var(--uh-navy);
    font-weight: 700;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.coverage-item {
    background: linear-gradient(135deg, rgba(47, 230, 169, 0.12), rgba(47, 230, 169, 0.08));
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--uh-mint);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Base Card Styles */
.verify-section,
.info-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Entrance Animation */
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* Star invisible */
}

/* Stagger the right section slightly */
.info-section {
    animation-delay: 0.15s;
}

.verify-section:hover,
.info-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 114, 206, 0.15);
    /* Colored shadow on hover */
}

.coverage-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: rgba(47, 230, 169, 0.1);
    border-radius: 50%;
    transform: translate(20px, -20px);
}

.coverage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(47, 230, 169, 0.25);
    border-left-width: 6px;
}

.coverage-item strong {
    display: block;
    color: var(--uh-navy);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.terms-link {
    margin-top: 0.5rem;
    text-align: center;
}

.info-section {
    /* Make info section look like the Offer block in index.php */
    background: var(--gradient-offer);
    color: var(--uh-white);
}

.info-section h1 {
    color: var(--uh-white);
    margin-bottom: 0.5rem;
}

.info-section p {
    color: var(--uh-white);
    opacity: 0.9;
}

/* Override coverage items to match index.php white cards logic if needed, 
   but user wants "United Wellness Members" style. 
   We will replace the coverage-grid with the benefits white-card structure in HTML. */


.terms-link a {
    color: var(--uh-blue);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.terms-link a:hover {
    color: var(--uh-navy);
    background: rgba(0, 114, 206, 0.1);
    text-decoration: underline;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(47, 230, 169, 0.2);
    border-top: 5px solid var(--uh-mint);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--uh-navy);
    font-size: 1.1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (min-width: 901px) {
    .container {
        grid-template-columns: 0.75fr 1.25fr;
        gap: var(--spacing-xl);
        align-items: stretch;
        margin-top: var(--spacing-xl);
        padding: 0 var(--spacing-lg);
    }

    .info-section,
    .verify-section {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .info-section h1 {
        font-size: 2.2rem;
    }

    .verify-box h2 {
        font-size: 2rem;
    }

    .coverage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .additional-benefits {
        margin-top: auto;
    }
}

@media (max-width: 900px) {
    .container {
        display: flex;
        flex-direction: column;
        margin-top: var(--spacing-sm);
        padding: var(--spacing-sm);
        gap: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .verify-section {
        order: 1;
        padding: var(--spacing-lg) var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        border-radius: var(--radius-lg);
    }

    .info-section {
        order: 2;
        padding: var(--spacing-lg) var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        border-radius: var(--radius-lg);
    }

    .verify-box {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .verify-box h2 {
        font-size: 1.6rem;
    }

    .info-section h1 {
        font-size: 1.75rem;
    }

    .coverage-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--spacing-xs);
        gap: var(--spacing-sm);
        margin-top: var(--spacing-xs);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .verify-section,
    .info-section {
        padding: var(--spacing-md) var(--spacing-sm);
        border-radius: var(--radius-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .verify-box {
        max-width: 100%;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .verify-box h2 {
        font-size: 1.4rem;
        margin-bottom: var(--spacing-md);
    }

    .info-section h1 {
        font-size: 1.5rem;
    }

    .info-section p {
        font-size: 0.95rem;
    }

    .coverage-item {
        padding: var(--spacing-sm);
    }

    .coverage-item strong {
        font-size: 1rem;
    }

    input {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    button {
        padding: var(--spacing-sm);
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .additional-benefits {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
    }
}