﻿/* ==========================================
   ORIGINAL STYLES (KEEPING EVERYTHING)
   ========================================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    margin: 0;
}

.container {
    width: 95%;
    margin: auto;
}

.header {
    background: #0b5394;
    color: white;
    padding: 15px;
}

.menu a {
    color: white;
    margin-right: 20px;
    text-decoration: none;
    font-weight: bold;
}

.card {
    background: white;
    padding: 25px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn {
    background: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.register-container {
    max-width: 550px;
    margin: 80px auto;
    padding: 0 20px;
}

.card-header h2 {
    color: #0b5394;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-header p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.register-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #f0f0f0;
}

.register-title {
    text-align: center;
    color: #0b5394;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.label {
    font-weight: 600;
}

.input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

    .input:focus {
        border-color: #c4161c;
        box-shadow: 0 0 6px rgba(196,22,28,0.2);
        outline: none;
    }

.btn-register {
    width: 100%;
    padding: 10px;
    background: #c4161c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-register:hover {
        background: #a50f14;
    }

.table {
    width: 100%;
    border-collapse: collapse;
}

    .table th {
        background: #0b5394;
        color: white;
        padding: 10px;
    }

    .table td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #0b5394;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

    .btn-back:hover {
        background: #083b6b;
    }

/* ==========================================
   MODERNIZED MENU TYPOGRAPHY
   ========================================== */
.member-nav {
    background: #0b5394;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the menu */
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .member-nav a {
        /* Modern Font Stack */
        font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        color: #ffffff;
        text-decoration: none;
        /* Professional Typography Styles */
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase; /* Makes it look like an app menu */
        letter-spacing: 0.8px; /* Professional spacing */

        padding: 10px 16px;
        border-radius: 6px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid transparent;
    }

        .member-nav a:hover {
            background: rgba(255,255,255,0.15);
            transform: translateY(-1px);
        }

        .member-nav a.active {
            background: #ffffff;
            color: #0b5394;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        }

.price-badge {
    background: #f0f7ff;
    color: #0b5394;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
}

    .price-badge span {
        font-size: 14px;
        font-weight: 400;
        color: #555;
    }

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
}

    .features-list li {
        padding: 12px 0;
        border-bottom: 1px solid #f9f9f9;
        color: #444;
        display: flex;
        align-items: center;
        font-size: 16px;
    }

        .features-list li:last-child {
            border-bottom: none;
        }

    .features-list .icon {
        background: #e7f4e9;
        color: #2e7d32;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        font-size: 12px;
        font-weight: bold;
    }

.btn-primary {
    display: block;
    background: linear-gradient(135deg, #ff6600 0%, #e65c00 100%);
    color: white;
    text-decoration: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
        color: white;
    }

.secure-text {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forgot-link {
    font-size: 13px;
    color: #c4161c;
    text-decoration: none;
    font-weight: 600;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

.validation-summary {
    background: #ffe6e6;
    border: 1px solid #ffb3b3;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #b30000;
    font-size: 13px;
}

    .validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

    .validation-summary li {
        margin-bottom: 5px;
    }

.alert-error {
    background: #ffe5e5;
    color: #c4161c;
    border: 1px solid #ffb3b3;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
}

.alert-success {
    background: #e6f9e6;
    color: #1e7e34;
    border: 1px solid #8fd19e;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
}

input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220,53,69,0.25);
}

.btn-register:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#lblMessage {
    display: block;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.message-error {
    background-color: #fde8e8;
    color: #c81e1e;
    border: 1px solid #f8b4b4;
}

.message-success {
    background-color: #defadb;
    color: #03543f;
    border: 1px solid #bcf0da;
}

.seo-content {
    max-width: 95%;
    margin: 10px auto;
    padding: 10px 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

    .seo-content h1 {
        font-size: 28px;
        color: #1f2937;
        margin-bottom: 15px;
        border-left: 5px solid #2563eb;
        padding-left: 12px;
    }

    .seo-content h2 {
        font-size: 22px;
        color: #111827;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .seo-content p {
        font-size: 16px;
        line-height: 1.75;
        color: #374151;
        margin-bottom: 14px;
    }

.seo-highlight {
    color: #2563eb;
    font-weight: 600;
}

/* ==========================================
   NEW MOBILE RESPONSIVE SECTION
   ========================================== */
@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    /* Fix navigation for small screens */
    .member-nav {
        gap: 10px;
        padding: 10px;
        justify-content: center;
    }

        .member-nav a {
            font-size: 12px;
            padding: 8px;
            flex: 1 1 40%; /* Menu items sit 2 per row */
            text-align: center;
        }

    /* Fix Referral Link breaking the layout */
    #lblLink {
        word-break: break-all;
        display: block;
        background: #f8f9fa;
        padding: 10px;
        border: 1px dashed #0b5394;
        border-radius: 5px;
        font-size: 13px;
        margin-top: 5px;
    }

    /* Scaling fonts for mobile readability */
    .card h2 {
        font-size: 20px !important;
    }

    .price-badge {
        font-size: 24px;
        padding: 10px 20px;
    }

    .register-card {
        padding: 20px;
    }

    .btn-primary {
        font-size: 16px;
        padding: 15px;
    }
}
/* ===============================
   MOBILE HEADER FIX
================================= */
@media (max-width: 600px) {
    .member-nav {
        padding: 12px 8px;
        gap: 6px;
    }

        .member-nav a {
            /* Grid layout: 2 items per row */
            flex: 1 1 45%;
            font-size: 11px; /* Smaller but clear font */
            padding: 12px 5px;
            text-align: center;
            letter-spacing: 0.5px;
            border: 1px solid rgba(255,255,255,0.1); /* Subtle outline on mobile */
        }
}

/* ==========================================
   MEMBERSHIP CARD STYLES (ADDED)
   ========================================== */
.card-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.id-card {
    width: 400px; /* Fixed internal width for layout stability */
    height: 280px;
    background: white;
    border-radius: 12px;
    border: 2px solid #0a3a6b;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    transform-origin: top center; /* Critical for scaling */
}

.card-header {
    background: #0a3a6b;
    color: white;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    height: 60px;
    box-sizing: border-box;
}

.logo {
    width: 38px;
    height: 38px;
    background: white;
    padding: 2px;
    border-radius: 4px;
    object-fit: contain;
}

.title-section {
    margin-left: 12px;
    text-align: left;
}

.title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.subtitle {
    font-size: 10px;
    opacity: 0.85;
    margin: 0;
}

.card-body {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    flex: 1;
    background: linear-gradient(to bottom right, #ffffff, #f9fafb);
}

.photo-section {
    margin-right: 15px;
}

.member-photo {
    width: 75px;
    height: 90px;
    border: 1px solid #ddd;
    border-radius: 5px;
    object-fit: cover;
}

.member-details {
    flex: 1;
    text-align: left;
    font-size: 11px;
    color: #333;
    line-height: 1.3;
}

    .member-details p {
        margin: 3px 0;
    }

.qr-section {
    margin-left: 5px;
}

.qr {
    width: 55px;
    height: 55px;
    padding: 2px;
    border: 1px solid #eee;
    background: #fff;
}

.card-footer {
    background: #f5f7fa;
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    border-top: 1px solid #eee;
    height: 35px;
}

.btn-download {
    width: 100%;
    max-width: 400px;
    margin-top: 25px;
    padding: 15px;
    background: #0a7c3a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(10, 124, 58, 0.3);
}


/* ==========================================
   MOBILE CARD SCALING (THE FINAL FIX)
   ========================================== */
@media (max-width: 420px) {
    .id-card {
        /* This shrinks the card visually without breaking the layout */
        transform: scale(0.85);
        margin-bottom: -40px; /* Pulls button up into the empty space */
    }

    .card-wrapper {
        overflow: hidden; /* Ensures no horizontal scroll bars appear */
    }
}

@media (max-width: 360px) {
    .id-card {
        transform: scale(0.78);
        margin-bottom: -60px;
    }
}

/* PRINT OPTIMIZATION (FOR CUSTOMERS) */
@media print {
    body {
        background: none;
        padding: 0;
    }

    .btn-download, .member-nav, .header {
        display: none !important;
    }

    .id-card {
        transform: scale(1);
        margin: 0;
        border: 1px solid #0a3a6b;
    }
}
/* ==========================================
   PREMIUM MEMBERSHIP HEADER DESIGN
   ========================================== */

.premium-header-banner {
    background: linear-gradient(135deg, #0a3a6b 0%, #1e4e8c 100%);
    margin: -40px -40px 30px -40px; /* Aligns with card edges */
    padding: 40px 20px;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

    /* Decorative background circle */
    .premium-header-banner::after {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 150px;
        height: 150px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

.badge-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-icon-circle {
    font-size: 24px;
    margin-bottom: 10px;
}

.membership-h2 {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.membership-p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    max-width: 280px;
    margin: 0 auto !important;
    line-height: 1.4;
}

/* Refined Price Badge */
.price-badge-container {
    margin-top: -55px; /* Pulls it up into the blue banner */
    position: relative;
    z-index: 2;
}

.price-badge {
    background: #ffffff !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    padding: 12px 25px !important;
    color: #0a3a6b !important;
}

    .price-badge .currency {
        font-size: 18px;
        vertical-align: top;
        margin-right: 2px;
    }

    .price-badge .duration {
        color: #888 !important;
        font-size: 13px !important;
    }

/* Premium Button Look */
.btn-primary-premium {
    display: block;
    background: #c4161c;
    color: white !important;
    text-decoration: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 22, 28, 0.3);
    margin-top: 20px;
}

    .btn-primary-premium:hover {
        background: #a50f14;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(196, 22, 28, 0.4);
    }

/* Mobile Tweak */
@media (max-width: 600px) {
    .premium-header-banner {
        margin: -20px -20px 30px -20px;
        padding: 30px 15px;
    }

    .membership-h2 {
        font-size: 22px !important;
    }
}