/* WWC Membership Join Plugin Styles */

.wwc-mem-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.wwc-mem-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #92400e;
    margin-bottom: 24px;
}

.wwc-mem-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    color: #991b1b;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ── Form sections ─────────────────────────────────────────────────────────── */

.wwc-mem-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.wwc-mem-section-header {
    background: #1e3a5f;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.wwc-mem-section-body {
    padding: 20px;
}

/* ── Grid ──────────────────────────────────────────────────────────────────── */

.wwc-mem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.wwc-col-2 {
    grid-column: span 2;
}

/* ── Fields ────────────────────────────────────────────────────────────────── */

.wwc-mem-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wwc-mem-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0;
}

.wwc-mem-field .req {
    color: #dc2626;
}

.wwc-mem-form input[type="text"],
.wwc-mem-form input[type="email"],
.wwc-mem-form input[type="tel"],
.wwc-mem-form input[type="number"],
.wwc-mem-form select {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
    box-shadow: none;
    outline: none;
}

.wwc-mem-form input:focus,
.wwc-mem-form select:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

/* ── DOB row ───────────────────────────────────────────────────────────────── */

.wwc-dob-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

/* ── Term selector ─────────────────────────────────────────────────────────── */

.wwc-term-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wwc-term-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.wwc-term-label:hover {
    border-color: #1e3a5f;
    background: #f8fafc;
}

.wwc-term-label input[type="radio"] {
    display: none;
}

.wwc-term-label.selected {
    border-color: #1e3a5f;
    background: #eff6ff;
}

.wwc-term-text {
    flex: 1;
}

.wwc-term-name {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}

.wwc-term-price {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.wwc-term-badge {
    font-size: 11px;
    background: #065f46;
    color: white;
    border-radius: 4px;
    padding: 2px 7px;
    font-weight: 700;
    vertical-align: middle;
}

/* ── Submit button ─────────────────────────────────────────────────────────── */

.wwc-mem-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: #1e3a5f;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s;
}

.wwc-mem-submit:hover {
    background: #163050;
}

/* ── Success page ──────────────────────────────────────────────────────────── */

.wwc-mem-success-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    padding: 48px 40px;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.wwc-mem-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.wwc-mem-success-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 12px;
}

.wwc-mem-success-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
}

.wwc-mem-highlight {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 20px 0;
    text-align: left;
}

.wwc-mem-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #166534;
    padding: 6px 0;
    border-bottom: 1px solid #dcfce7;
}

.wwc-mem-row:last-child {
    border-bottom: none;
}

.wwc-mem-label {
    font-weight: 600;
}

.wwc-mem-value {
    font-weight: 700;
    font-size: 15px;
}

.wwc-mem-infobox {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #92400e;
    text-align: left;
    line-height: 1.6;
}

.wwc-mem-ref {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 16px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 560px) {
    .wwc-mem-grid {
        grid-template-columns: 1fr;
    }
    .wwc-col-2 {
        grid-column: span 1;
    }
    .wwc-term-options {
        grid-template-columns: 1fr;
    }
    .wwc-mem-success-card {
        padding: 32px 20px;
    }
}
