/* ============================================================
   RealEstatePropertyMall — shared glossy/vibrant design system
   Used across all redesigned legacy pages (payment, add-member,
   etc.) for a consistent mobile-first, Gen-Z glossy look.

   Each page should link this file FIRST, then its own small
   page-specific CSS file for anything unique to that page.
   ============================================================ */

:root {
    --repm-grad-1: #7c3aed;   /* violet   */
    --repm-grad-2: #ec4899;   /* pink     */
    --repm-grad-3: #f59e0b;   /* amber    */
    --repm-mint: #10b981;
    --repm-mint-dark: #047857;
    --repm-amber: #f59e0b;
    --repm-amber-dark: #92400e;
    --repm-ink: #1e1b2e;
    --repm-glass-bg: rgba(255, 255, 255, 0.72);
    --repm-glass-border: rgba(255, 255, 255, 0.5);
}

.repm-page {
    background: #f7f5ff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* ---- Hero ---- */
.repm-hero {
    position: relative;
    background: linear-gradient(135deg, var(--repm-grad-1) 0%, var(--repm-grad-2) 55%, var(--repm-grad-3) 100%);
    padding: 56px 0 90px;
    overflow: hidden;
    color: #fff;
}
.repm-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.35;
    background: #fff;
}
.repm-blob-1 { width: 260px; height: 260px; top: -100px; right: -60px; }
.repm-blob-2 { width: 180px; height: 180px; bottom: -80px; left: -50px; background: #fff; opacity: 0.18; }

.repm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.repm-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.12);
}
.repm-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.92);
    max-width: 480px;
    margin: 0;
}
@media (min-width: 768px) {
    .repm-hero-title { font-size: 2.75rem; }
    .repm-hero { padding: 80px 0 120px; }
}

/* ---- Content wrapper (pulled up over the hero) ---- */
.repm-content {
    margin-top: -60px;
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}
@media (min-width: 768px) {
    .repm-content { margin-top: -70px; }
}

/* ---- Glass card ---- */
.repm-glass-card {
    background: var(--repm-glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--repm-glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(76, 29, 149, 0.15);
}
@media (min-width: 768px) {
    .repm-glass-card { padding: 32px; }
}

.repm-card-header { margin-bottom: 18px; }
.repm-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--repm-ink);
    margin: 10px 0 0;
}
.repm-card-sub {
    color: #6b7280;
    font-size: 0.92rem;
    margin: 6px 0 0;
}

.repm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}
.repm-chip-mint  { background: #d1fae5; color: var(--repm-mint-dark); }
.repm-chip-amber { background: #fef3c7; color: var(--repm-amber-dark); }
.repm-chip-violet{ background: #ede9fe; color: #6d28d9; }

/* ---- Glossy button ---- */
.repm-btn-glossy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.repm-btn-glossy:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.42);
    color: #fff;
}
.repm-btn-glossy:active { transform: translateY(0); }
.repm-btn-glossy:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.repm-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid rgba(124, 58, 237, 0.3);
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #7c3aed;
    background: #fff;
    text-decoration: none;
    transition: background 0.15s ease;
}
.repm-btn-ghost:hover { background: #f5f3ff; color: #7c3aed; }

/* ---- Generic form-field styling ----
   Applies to any legacy include (raw <form>/<table> markup) that
   gets wrapped inside .repm-form-shell, so inherited forms don't
   look like 2012-era Bootstrap even without editing their markup. */
.repm-form-shell input[type="text"],
.repm-form-shell input[type="email"],
.repm-form-shell input[type="password"],
.repm-form-shell input[type="tel"],
.repm-form-shell input[type="number"],
.repm-form-shell input[type="date"],
.repm-form-shell select,
.repm-form-shell textarea {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
    color: var(--repm-ink);
    margin-bottom: 12px;
    box-sizing: border-box;
}
.repm-form-shell input:focus,
.repm-form-shell select:focus,
.repm-form-shell textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.repm-form-shell input[type="submit"],
.repm-form-shell input[type="button"],
.repm-form-shell button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
    cursor: pointer;
    width: 100%;
}
@media (min-width: 480px) {
    .repm-form-shell input[type="submit"],
    .repm-form-shell input[type="button"],
    .repm-form-shell button[type="submit"] { width: auto; }
}
.repm-form-shell table { width: 100%; border-collapse: collapse; }
.repm-form-shell table td { padding: 6px 4px; border: none; }
.repm-form-shell label { font-weight: 600; font-size: 0.85rem; color: var(--repm-ink); }
.repm-form-shell a { color: #7c3aed; font-weight: 600; }
.repm-form-shell a:hover { color: #ec4899; }
.repm-form-shell font { color: inherit !important; }

/* ---- Fine-print / info box ---- */
.repm-fineprint {
    font-size: 0.82rem;
    color: #6b7280;
    background: #fdf4ff;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.repm-fineprint i { color: #a855f7; margin-top: 2px; }

/* ---- Trust / info strip ---- */
.repm-trust-strip {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 640px) {
    .repm-trust-strip { grid-template-columns: repeat(3, 1fr); }
}
.repm-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.06);
}
.repm-trust-item i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    color: #7c3aed;
    font-size: 1.1rem;
}
.repm-trust-item span {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.4;
}
.repm-trust-item strong {
    color: var(--repm-ink);
    font-size: 0.85rem;
}

/* ---- Simple loading skeleton (for "smooth loading" feel) ---- */
.repm-skeleton {
    background: linear-gradient(90deg, #ece9f7 25%, #f5f3ff 37%, #ece9f7 63%);
    background-size: 400% 100%;
    animation: repm-shimmer 1.4s ease infinite;
    border-radius: 12px;
}
@keyframes repm-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ---- Fade-in on load ---- */
.repm-fade-in {
    animation: repm-fadeup 0.5s ease both;
}
@keyframes repm-fadeup {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
