/* public/css/page-builder.css */
/* Shared styling for dynamic "builder" pages (TPA, FAQ, Privacy Policy, etc.) */

:root {
    --navy: #0A2647;
    --cobalt: #1C5FAE;
    --teal: #0E8A82;
    --gold: #C99A3E;
    --ink: #1A2430;
    --paper: #FBFAF7;
    --card: #FFFFFF;
    --line: #E4E7EC;
    --muted: #5B6572;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(10, 38, 71, 0.08);
}

/* ============================================ */
/* HERO */
/* ============================================ */
.pgb-hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 64px 0 52px;
}

.pgb-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.pgb-hero-bg::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.pgb-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.pgb-hero-inner h1 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 700;
    margin: 0 0 14px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pgb-hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.pgb-hero-cta {
    margin-top: 26px;
}

/* ============================================ */
/* CONTENT WRAPPER */
/* ============================================ */
.pgb-section {
    padding: 56px 0;
    background: var(--paper);
}

.pgb-content {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 44px 48px;
}

/* ============================================ */
/* HEADINGS & PARAGRAPHS */
/* ============================================ */
.pgb-content h1,
.pgb-content h2,
.pgb-content h3,
.pgb-content h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    line-height: 1.3;
    margin: 32px 0 14px;
}

.pgb-content > *:first-child {
    margin-top: 0;
}

.pgb-content h2 { font-size: 1.6rem; }
.pgb-content h3 { font-size: 1.28rem; }
.pgb-content h4 { font-size: 1.08rem; }

.pgb-heading-highlight {
    display: inline-flex;
    padding-left: 16px;
    border-left: 4px solid var(--gold);
}

.pgb-paragraph {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 16px;
}

.pgb-paragraph p:last-child {
    margin-bottom: 0;
}

/* ============================================ */
/* DIVIDER */
/* ============================================ */
.pgb-divider {
    margin: 34px 0;
    text-align: center;
}

.pgb-divider hr {
    border: none;
    border-top: 2px solid var(--line);
    margin: 0 auto;
}

.pgb-divider-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pgb-divider-text hr {
    flex: 1;
}

.pgb-divider-text span {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================ */
/* LISTS */
/* ============================================ */
.pgb-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 18px 0;
    list-style: none;
    padding: 0;
}

.pgb-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.86rem;
    color: var(--ink);
    line-height: 1.4;
}

.pgb-chip .tick {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(14, 138, 130, 0.12);
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
}

.pgb-chip.featured {
    background: rgba(14, 138, 130, 0.06);
    border-color: rgba(14, 138, 130, 0.25);
}

.pgb-chip.plain {
    background: #fff;
}

.pgb-chip.plain::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cobalt);
}

.pgb-ordered-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    counter-reset: pgb-step;
}

.pgb-ordered-list li {
    counter-increment: pgb-step;
    position: relative;
    padding: 10px 0 10px 44px;
    font-size: 0.96rem;
    color: var(--ink);
    line-height: 1.6;
    border-bottom: 1px solid var(--line);
}

.pgb-ordered-list li:last-child {
    border-bottom: none;
}

.pgb-ordered-list li::before {
    content: counter(pgb-step);
    position: absolute;
    left: 0;
    top: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================ */
/* IMAGE */
/* ============================================ */
.pgb-image-wrap {
    margin: 24px 0;
    text-align: center;
}

.pgb-image-wrap img {
    max-width: 100%;
    height: auto;
}

.pgb-image-caption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 8px;
}

/* ============================================ */
/* CONTACT FORM BLOCK */
/* ============================================ */
.pgb-contact-block {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin: 30px 0;
}

.pgb-contact-block h3 {
    margin-top: 0 !important;
}

.pgb-contact-block p {
    color: var(--muted);
}

/* ============================================ */
/* FAQ BLOCK */
/* ============================================ */
.pgb-faq-block {
    margin: 30px 0;
}

.pgb-faq-block .desc {
    color: var(--muted);
    margin-bottom: 20px;
}

.pgb-faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #fff;
}

.pgb-faq-item button {
    width: 100%;
    background: #fff;
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.pgb-faq-item .icon {
    font-size: 1rem;
    color: var(--teal);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.pgb-faq-item .answer {
    display: none;
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================ */
/* TESTIMONIALS BLOCK */
/* ============================================ */
.pgb-testimonial-block {
    margin: 30px 0;
    background: var(--paper);
    border-radius: var(--radius);
    padding: 28px 30px;
    border: 1px solid var(--line);
}

.pgb-testimonial-block .desc {
    color: var(--muted);
    margin-bottom: 20px;
}

.pgb-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.pgb-testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.pgb-testimonial-card .stars {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.pgb-testimonial-card .quote {
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.65;
    margin-bottom: 14px;
}

.pgb-testimonial-card .who {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgb-testimonial-card .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cobalt);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.pgb-testimonial-card .name {
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--navy);
}

.pgb-testimonial-card .loc {
    font-size: 0.76rem;
    color: var(--muted);
}

/* ============================================ */
/* BUTTON BLOCK */
/* ============================================ */
.pgb-btn-wrap {
    text-align: center;
    margin: 26px 0;
}

.pgb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 26px;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    text-decoration: none;
}

.pgb-btn.full-width { display: flex; width: 100%; }

.pgb-btn-primary { background: var(--cobalt); color: #fff; }
.pgb-btn-primary:hover { background: var(--navy); color: #fff; }

.pgb-btn-secondary { background: #6B7280; color: #fff; }
.pgb-btn-secondary:hover { background: #4B5563; color: #fff; }

.pgb-btn-success { background: #22c55e; color: #fff; }
.pgb-btn-success:hover { background: #16a34a; color: #fff; }

.pgb-btn-danger { background: #ef4444; color: #fff; }
.pgb-btn-danger:hover { background: #dc2626; color: #fff; }

.pgb-btn-warning { background: #f59e0b; color: #fff; }
.pgb-btn-warning:hover { background: #d97706; color: #fff; }

.pgb-btn-outline { background: transparent; color: var(--cobalt); border-color: var(--cobalt); }
.pgb-btn-outline:hover { background: var(--cobalt); color: #fff; }

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 768px) {
    .pgb-hero { padding: 40px 0 40px; }
    .pgb-content { padding: 30px 24px; border-radius: 16px; }
    .pgb-section { padding: 36px 0; }
    .pgb-chip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .pgb-chip-grid { grid-template-columns: 1fr; }
    .pgb-content { padding: 24px 18px; }
}
