/* ==========================================================
   custom.css
   Site-wide custom additions on top of the base theme
   (style.css). Kept separate + centralized so editing here
   updates every page that links this file.
   ========================================================== */

/* Safety & Privacy / Why-Choose-Us icon circles.
   Needs higher specificity than the theme's
   ".group-item .lab-inner .lab-thumb { width:40%; height:100% }"
   rule, otherwise the circle gets stretched into an oval. */
.group-item .lab-inner .safety-icon {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    border-radius: 50% !important;
    background: #fdeef1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.safety-icon i {
    font-size: 38px;
    color: #ee3f62;
}

/* FAQ accordion (details/summary based) */
.faq-accordion { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid #f0e6e8; border-radius: 8px; padding: 18px 22px; }
.faq-item summary { font-weight: 600; font-size: 17px; cursor: pointer; color: #22222a; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; font-weight: 400; color: #ee3f62; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 12px 0 0; color: #6b6b70; line-height: 1.7; }

/* The theme draws a decorative floating heart image (app-section
   ::after) positioned for the original 2-column app-download
   layout. Our CTA section is single-column/centered, so hide it. */
.cta-section .section-wrapper:after {
    display: none !important;
}

/* Footer quick-links grid */
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.footer-links a { color: #cfcfd4; transition: color .2s; }
.footer-links a:hover { color: #ee3f62; }

/* ==========================================================
   Mobile hamburger + ellipsis menu icons were white-on-white
   (invisible) against our light pink header background.
   ========================================================== */
.header-bar span {
    background-color: #22222a !important;
}
.header-wrapper .menu-area .ellepsis-bar i {
    color: #22222a !important;
}
.header-wrapper .menu-area .ellepsis-bar {
    background: #fdeef1;
    border-radius: 4px;
}

/* ==========================================================
   Accessible focus states site-wide (keyboard navigation)
   ========================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.lab-btn:focus-visible {
    outline: 2px solid #df314d;
    outline-offset: 2px;
}

/* ==========================================================
   Auth-gated elements: locked profile actions before login/payment
   ========================================================== */
.locked-action {
    position: relative;
    cursor: pointer;
}
.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: inherit;
    z-index: 4;
    padding: 12px;
}
.locked-overlay i { font-size: 22px; color: #df314d; margin-bottom: 6px; }
.locked-overlay span { font-size: 12.5px; color: #22222a; font-weight: 600; }

/* Toast (used for simulated auth/payment feedback) */
.pv-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #22222a;
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 9999;
    max-width: 320px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s ease;
}
.pv-toast.show { opacity: 1; transform: translateY(0); }
.pv-toast.success { background: #1e9e5a; }
.pv-toast.error { background: #df314d; }

/* ==========================================================
   Standalone auth pages (login.html / register.html)
   ========================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #fff5f6 0%, #fdeef1 45%, #fff 100%);
    padding: 40px 16px;
}
.auth-back-home {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 14px;
    color: #6b6b70;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.auth-back-home:hover { color: #df314d; }
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(34,34,42,.08);
    padding: 40px 36px;
}
.auth-card .auth-logo { text-align: center; margin-bottom: 22px; }
.auth-card .auth-logo img { max-width: 190px; }
.auth-card h1 { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 6px; color: #22222a; }
.auth-card .auth-subtitle { text-align: center; color: #8a8a92; font-size: 14px; margin-bottom: 26px; }

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e2e8;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: #22222a;
    cursor: pointer;
    transition: all .15s ease;
}
.btn-google:hover { border-color: #df314d; box-shadow: 0 2px 10px rgba(223,49,77,.08); }
.btn-google img { width: 20px; height: 20px; }
.btn-google:disabled { opacity: .7; cursor: not-allowed; }

/* Wrapper for the real (invisible) Google button that sits on top of our
   styled .btn-google, so the click that actually reaches Google is real —
   see pvWireGoogleButton() in auth-forms.js. */
.btn-google-wrap { position: relative; width: 100%; }
.btn-google-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.001; /* not display:none — Google's iframe must stay clickable */
    overflow: hidden;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: #b7b7bd;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ececf2;
}

.auth-form .form-group { margin-bottom: 16px; position: relative; }
.auth-form label { display: block; font-size: 13.5px; font-weight: 600; color: #22222a; margin-bottom: 6px; }
.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e2e8;
    border-radius: 8px;
    font-size: 14.5px;
    transition: border-color .15s ease;
}
.auth-form input:focus { border-color: #df314d; outline: none; }
.auth-form input.is-invalid { border-color: #df314d; background: #fff8f8; }
.auth-form .field-error { display: block; min-height: 16px; font-size: 12px; color: #df314d; margin-top: 4px; }
.auth-form .password-wrap { position: relative; }
.auth-form .password-toggle {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    color: #8a8a92;
    font-size: 16px;
    background: none;
    border: none;
}
.pw-meter { font-size: 12px; margin-top: 5px; font-weight: 600; }
.pw-meter.weak { color: #df314d; }
.pw-meter.medium { color: #d99b3e; }
.pw-meter.strong { color: #1e9e5a; }

.auth-row-between { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 18px; }
.auth-row-between a { color: #df314d; text-decoration: none; }
.auth-row-between a:hover { text-decoration: underline; }

.btn-auth-submit {
    width: 100%;
    background: #df314d;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-auth-submit:hover { background: #c72642; }
.btn-auth-submit:disabled { opacity: .75; cursor: not-allowed; }
.btn-spinner {
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: pv-spin .7s linear infinite;
}
.btn-google .btn-spinner { border-color: rgba(0,0,0,.15); border-top-color: #22222a; }
@keyframes pv-spin { to { transform: rotate(360deg); } }

.auth-switch { text-align: center; margin-top: 22px; font-size: 14px; color: #6b6b70; }
.auth-switch a { color: #df314d; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-trust-note {
    text-align: center;
    font-size: 12px;
    color: #b7b7bd;
    margin-top: 26px;
    max-width: 400px;
}


/* PavitraVivaah approved profile cards */
.pv-profile-col{width:100%;padding:12px;}
.pv-profile-col-compact{padding:8px;}
.pv-profile-card{height:100%;background:#fff;border:1px solid #eee6f7;border-radius:18px;overflow:hidden;box-shadow:0 8px 28px rgba(48,18,80,.08);transition:transform .2s ease,box-shadow .2s ease;border-top:3px solid #6f2dbd;}
.pv-profile-card:hover{transform:translateY(-4px);box-shadow:0 14px 36px rgba(48,18,80,.14);}
.pv-profile-photo{display:flex;position:relative;width:100%;height:250px;background:#f5f0fb;align-items:center;justify-content:center;overflow:hidden;}
.pv-profile-photo img{display:block;width:100%;height:100%;object-fit:cover;}
.pv-photo-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:700;color:#6f2dbd;background:linear-gradient(135deg,#f7f1fc,#eee5f8);}
.pv-profile-body{padding:18px 18px 20px;text-align:left;}
.pv-approved{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:#258b57;background:#eaf8f0;border-radius:999px;padding:5px 10px;margin-bottom:10px;}
.pv-approved i{font-size:14px;}
.pv-profile-body h3{font-size:19px;line-height:1.3;margin:0 0 6px;color:#24113f;}
.pv-profile-meta{font-size:13px;color:#777;margin:0 0 16px;min-height:20px;}
.pv-view-profile{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#6f2dbd;text-decoration:none;}
.pv-view-profile:hover{color:#4f1f8b;text-decoration:none;}
.pv-empty{padding:42px 15px;color:#777;}
#featured-profiles-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 -8px;}
#recent-profiles-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 -8px;}
#recent-profiles-grid .pv-profile-col-compact{padding:8px;}
@media (max-width:1199px){#featured-profiles-grid,#recent-profiles-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:767px){#featured-profiles-grid,#recent-profiles-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0 -4px;}.pv-profile-col,.pv-profile-col-compact{padding:6px;}.pv-profile-photo{height:220px;}.pv-profile-body{padding:14px;}.pv-profile-body h3{font-size:16px;}.pv-profile-meta{font-size:12px;}.pv-view-profile{font-size:12px;}}
@media (max-width:480px){#featured-profiles-grid,#recent-profiles-grid{grid-template-columns:1fr;}.pv-profile-photo{height:280px;}}

/* PavitraVivaah featured profiles - clean tabbed layout */
.pv-featured-section{padding:78px 0 88px;background:linear-gradient(180deg,#fff 0%,#fff7fa 100%);position:relative;z-index:2;clear:both;overflow:hidden;}
.pv-featured-heading{text-align:center;max-width:760px;margin:0 auto 28px;}
.pv-featured-heading .pv-eyebrow{display:inline-flex;align-items:center;padding:7px 14px;border-radius:999px;background:#f6eafd;color:#6f2dbd;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:12px;}
.pv-featured-heading h2{margin:0;color:#28103f;font-size:36px;line-height:1.2;font-weight:800;}
.pv-featured-heading p{margin:10px 0 0;color:#777;font-size:15px;}
.pv-profile-tabs{display:flex;justify-content:center;gap:10px;margin:0 auto 34px;flex-wrap:wrap;}
.pv-profile-tab{border:1px solid #eadcf3;background:#fff;color:#5e4a6d;border-radius:999px;padding:11px 22px;font:600 14px/1.2 inherit;cursor:pointer;box-shadow:0 4px 16px rgba(48,18,80,.06);transition:all .2s ease;}
.pv-profile-tab span{display:inline-flex;min-width:24px;justify-content:center;margin-left:5px;padding:3px 7px;border-radius:999px;background:#f4eef8;color:#6f2dbd;font-size:11px;}
.pv-profile-tab:hover{border-color:#cdb2df;transform:translateY(-1px);}
.pv-profile-tab.is-active{background:#6f2dbd;border-color:#6f2dbd;color:#fff;box-shadow:0 8px 22px rgba(111,45,189,.24);}
.pv-profile-tab.is-active span{background:rgba(255,255,255,.18);color:#fff;}
.pv-featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;align-items:stretch;min-height:80px;}
.pv-featured-grid .pv-profile-col{padding:0;min-width:0;}
.pv-featured-grid .pv-profile-card{height:100%;}
.pv-loading{grid-column:1/-1;text-align:center;padding:42px 20px;color:#777;background:#fff;border:1px dashed #dfcfe9;border-radius:18px;}
.pv-empty-card{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:190px;padding:30px;background:#fff;border:1px dashed #dfcfe9;border-radius:18px;color:#5f5367;}
.pv-empty-card strong{font-size:17px;color:#311348;margin-bottom:5px;}
.pv-empty-card span{font-size:13px;color:#8a8190;}
/* Keep the real-data profile sections in normal document flow. */
.recent-profile-section{position:relative;z-index:1;clear:both;overflow:hidden;}
.recent-profile-section .section-wrapper{position:relative;z-index:1;}
#recent-profiles-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:0;align-items:stretch;}
#recent-profiles-grid .pv-profile-col-compact{padding:0;min-width:0;}
#recent-profiles-grid .pv-profile-card{height:100%;}
@media (max-width:1199px){.pv-featured-grid,#recent-profiles-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:767px){.pv-featured-section{padding:58px 0 65px;}.pv-featured-heading h2{font-size:29px;}.pv-featured-heading p{font-size:14px;}.pv-featured-grid,#recent-profiles-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}.pv-profile-tab{padding:10px 17px;}.pv-profile-photo{height:230px;}}
@media (max-width:520px){.pv-featured-grid,#recent-profiles-grid{grid-template-columns:1fr;gap:16px;}.pv-profile-photo{height:285px;}}
