/* ==========================================================================
   Family First Guidance — Book Your Counselling
   Scoped under .bkg, same approach as service-counselling.css, so the shared
   navbar and footer styles in style.css are untouched.
   ========================================================================== */

.bkg{
    --bkg-teal: #2BB1A4;
    --bkg-teal-dark: #006a62;
    --bkg-coral: #FF756B;
    --bkg-cream: #F9F7F2;
    --bkg-sage: #E9EDE9;
    --bkg-charcoal: #2D3131;
    --bkg-muted: #5e5e5b;
    --bkg-outline: #bcc9c6;
    --bkg-white: #FFFFFF;
    --bkg-surface: #f7faf9;
    --bkg-shadow: 0 10px 30px rgba(45, 49, 49, 0.06);
    --bkg-serif: 'Libre Caslon Text', Georgia, serif;
    --bkg-sans: 'Inter', 'Poppins', sans-serif;

    background-color: var(--bkg-surface);
    color: var(--bkg-charcoal);
    display: block;
    overflow-x: hidden;
    padding-bottom: 48px;
}

.bkg, .bkg *{
    font-family: var(--bkg-sans);
    text-transform: none;
    box-sizing: border-box;
}

/* keep Font Awesome's icon font intact inside the scope */
.bkg i[class^="fa-"],
.bkg i[class*=" fa-"],
.bkg i.fa-solid{
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
}

.bkg .bkg-container{
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Header band
   -------------------------------------------------------------------------- */

.bkg .bkg-head{
    background: linear-gradient(180deg, var(--bkg-sage), var(--bkg-surface));
    padding: 44px 0 32px;
    text-align: center;
    margin-bottom: 32px;
}

.bkg .bkg-head h1{
    font-family: var(--bkg-serif);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--bkg-charcoal);
}

.bkg .bkg-lead{
    font-size: 16px;
    line-height: 1.6;
    color: var(--bkg-muted);
    max-width: 720px;
    margin: 10px auto 0;
}

/* --------------------------------------------------------------------------
   Service chooser (no service in the URL)
   -------------------------------------------------------------------------- */

.bkg .bkg-choose{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 24px;
}

.bkg .bkg-choice{
    display: block;
    background: var(--bkg-white);
    border: 1px solid rgba(188, 201, 198, .5);
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    box-shadow: var(--bkg-shadow);
    transition: transform .3s, box-shadow .3s;
}

.bkg .bkg-choice:hover{
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(45, 49, 49, .1);
}

.bkg .bkg-choice h3{
    font-family: var(--bkg-serif);
    font-size: 20px;
    color: var(--bkg-charcoal);
    margin-bottom: 8px;
}

.bkg .bkg-choice p{
    font-size: 15px;
    line-height: 1.6;
    color: var(--bkg-muted);
    margin-bottom: 12px;
}

.bkg .bkg-choice-cta{
    font-size: 14px;
    font-weight: 600;
    color: var(--bkg-teal);
}

/* --------------------------------------------------------------------------
   Form + summary layout
   -------------------------------------------------------------------------- */

.bkg .bkg-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.bkg .bkg-card{
    background: var(--bkg-white);
    border: 1px solid rgba(188, 201, 198, .5);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: var(--bkg-shadow);
}

.bkg .bkg-h2{
    font-family: var(--bkg-serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--bkg-teal);
    margin: 6px 0 16px;
}

.bkg .bkg-h2 + .bkg-row{ margin-top: 0; }

.bkg .bkg-row{
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.bkg .bkg-field{
    display: flex;
    flex-direction: column;
}

.bkg .bkg-field label{
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bkg-charcoal);
    margin-bottom: 7px;
}

.bkg .bkg-req{ color: var(--bkg-coral); font-weight: 700; }
.bkg .bkg-opt{ color: var(--bkg-muted); font-weight: 400; }

.bkg .bkg-field input,
.bkg .bkg-field select,
.bkg .bkg-field textarea{
    width: 100%;
    background: var(--bkg-cream);
    border: 1px solid rgba(122, 140, 122, .32);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--bkg-charcoal);
    transition: border-color .25s, box-shadow .25s;
    appearance: auto;
    -webkit-appearance: auto;
    resize: vertical;
}

.bkg .bkg-field input:focus,
.bkg .bkg-field select:focus,
.bkg .bkg-field textarea:focus{
    outline: none;
    border-color: var(--bkg-teal);
    box-shadow: 0 0 0 3px rgba(43, 177, 164, .16);
}

/* --------------------------------------------------------------------------
   Appointment form
   Choice groups deliberately avoid .bkg-field, whose input rules would
   stretch a radio button to full width.
   -------------------------------------------------------------------------- */

.bkg .bkg-salaam{
    font-family: var(--bkg-serif);
    font-size: 16px;
    color: var(--bkg-teal-dark);
    margin-top: 10px;
}

.bkg .bkg-card--wide{ max-width: 820px; margin: 0 auto; }

/* Section heading */
.bkg .bkg-section{
    font-family: var(--bkg-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--bkg-charcoal);
    margin: 38px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bkg-sage);
}

.bkg .bkg-section:first-child{ margin-top: 0; }

/* --- Choice groups (radio) --------------------------------------------- */

.bkg .bkg-group{ margin-bottom: 22px; }

.bkg .bkg-grouplabel{
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bkg-charcoal);
    margin-bottom: 10px;
}

.bkg .bkg-grouplabel small{
    display: block;
    font-weight: 400;
    font-size: 12.5px;
    color: var(--bkg-muted);
    margin-top: 3px;
}

.bkg .bkg-choices{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* the whole pill is the tap target */
.bkg .bkg-group .bkg-choicebox{
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin: 0;
    background: var(--bkg-cream);
    border: 1px solid rgba(122, 140, 122, .32);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--bkg-charcoal);
    cursor: pointer;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.bkg .bkg-group .bkg-choicebox:hover{
    border-color: var(--bkg-teal);
    background: #fff;
}

/* beats .bkg .bkg-field input, which would otherwise stretch these */
.bkg .bkg-choicebox input[type="radio"],
.bkg .bkg-consent input[type="checkbox"]{
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex: 0 0 18px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    accent-color: var(--bkg-teal);
    appearance: auto;
    -webkit-appearance: auto;
    box-shadow: none;
    cursor: pointer;
}

.bkg .bkg-choicebox span{ flex: 1; }

.bkg .bkg-choicebox:has(input:checked){
    border-color: var(--bkg-teal);
    background: rgba(43, 177, 164, .10);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--bkg-teal) inset;
}

/* --- Terms and consent -------------------------------------------------- */

.bkg .bkg-terms{
    margin: 0 0 20px;
    padding: 18px 20px 18px 38px;
    background: var(--bkg-cream);
    border: 1px solid rgba(188, 201, 198, .5);
    border-radius: 10px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--bkg-muted);
}

.bkg .bkg-terms li{ margin-bottom: 10px; padding-left: 4px; }
.bkg .bkg-terms li:last-child{ margin-bottom: 0; }
.bkg .bkg-terms li::marker{ color: var(--bkg-teal); font-weight: 700; }

.bkg .bkg-consent{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bkg-sage);
    border: 1px solid rgba(43, 177, 164, .35);
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 14.5px;
    line-height: 1.55;
    font-weight: 500;
    color: var(--bkg-charcoal);
    cursor: pointer;
    margin-bottom: 24px;
}

.bkg .bkg-consent input[type="checkbox"]{ margin-top: 2px; }

/* --- Fee panel above the pay button ------------------------------------ */

.bkg .bkg-feebox{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bkg-cream);
    border: 1px solid rgba(43, 177, 164, .35);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.bkg .bkg-feebox-label{
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--bkg-charcoal);
}

.bkg .bkg-feebox-note{
    display: block;
    font-size: 13px;
    color: var(--bkg-muted);
    margin-top: 3px;
}

.bkg .bkg-feebox-amount{
    font-family: var(--bkg-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--bkg-teal);
    white-space: nowrap;
}

/* spam trap */
.bkg .bkg-hp{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Status message, button
   -------------------------------------------------------------------------- */

.bkg .bkg-status{
    display: none;
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 15px;
    line-height: 1.55;
    margin: 4px 0 14px;
}

.bkg .bkg-status.is-success,
.bkg .bkg-status.is-error{ display: block; }

.bkg .bkg-status.is-success{
    background: rgba(43, 177, 164, .12);
    border: 1px solid rgba(43, 177, 164, .45);
    color: var(--bkg-teal-dark);
}

.bkg .bkg-status.is-error{
    background: rgba(255, 117, 107, .12);
    border: 1px solid rgba(255, 117, 107, .5);
    color: #a3342c;
}

.bkg .bkg-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--bkg-teal);
    color: var(--bkg-white);
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: .03em;
    padding: 15px 28px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(43, 177, 164, .32);
    transition: background-color .3s, transform .3s, box-shadow .3s;
}

.bkg .bkg-btn:hover{
    background: var(--bkg-teal-dark);
    color: var(--bkg-white);
    transform: translateY(-2px);
}

.bkg .bkg-btn:disabled{
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.bkg .bkg-btn--ghost{
    background: transparent;
    color: var(--bkg-teal-dark);
    border: 1px solid var(--bkg-outline);
    box-shadow: none;
    width: auto;
    padding: 12px 26px;
}

.bkg .bkg-btn--ghost:hover{
    background: var(--bkg-sage);
    color: var(--bkg-teal-dark);
}

.bkg .bkg-secure{
    font-size: 12.5px;
    color: var(--bkg-muted);
    text-align: center;
    margin-top: 14px;
}

.bkg .bkg-secure i{ color: var(--bkg-teal); margin-right: 4px; }

/* --------------------------------------------------------------------------
   Summary panel
   -------------------------------------------------------------------------- */

.bkg .bkg-summary{
    background: var(--bkg-white);
    border: 1px solid rgba(188, 201, 198, .5);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--bkg-shadow);
}

.bkg .bkg-summary h3{
    font-family: var(--bkg-serif);
    font-size: 18px;
    color: var(--bkg-charcoal);
    margin-bottom: 14px;
}

.bkg .bkg-summary dl{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    font-size: 15px;
}

.bkg .bkg-summary dt{ color: var(--bkg-muted); }
.bkg .bkg-summary dd{ text-align: right; font-weight: 600; }

.bkg .bkg-fee{
    color: var(--bkg-teal);
    font-size: 20px;
}

.bkg .bkg-summary hr{
    border: none;
    border-top: 1px solid rgba(188, 201, 198, .5);
    margin: 18px 0;
}

.bkg .bkg-summary h4{
    font-size: 14px;
    font-weight: 600;
    color: var(--bkg-charcoal);
    margin-bottom: 10px;
}

.bkg .bkg-steps{
    margin: 0 0 14px 18px;
    padding: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--bkg-muted);
}

.bkg .bkg-steps li{ margin-bottom: 6px; }

.bkg .bkg-help{
    font-size: 14px;
    color: var(--bkg-muted);
}

.bkg .bkg-help a{ color: var(--bkg-teal); font-weight: 600; }

/* --------------------------------------------------------------------------
   Confirmation panel
   -------------------------------------------------------------------------- */

.bkg .bkg-done{
    background: var(--bkg-white);
    border: 1px solid rgba(43, 177, 164, .4);
    border-radius: 16px;
    padding: 44px 28px;
    text-align: center;
    box-shadow: var(--bkg-shadow);
    max-width: 640px;
    margin: 0 auto;
}

.bkg .bkg-done-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--bkg-teal);
    color: #fff;
    font-size: 26px;
    margin-bottom: 18px;
}

.bkg .bkg-done h2{
    font-family: var(--bkg-serif);
    font-size: 24px;
    color: var(--bkg-charcoal);
    margin-bottom: 12px;
}

.bkg .bkg-done p{
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--bkg-muted);
    margin-bottom: 10px;
}

.bkg .bkg-done #bkg-done-ref,
.bkg .bkg-done p:first-of-type{
    font-weight: 600;
    color: var(--bkg-charcoal);
}

.bkg .bkg-done .bkg-btn{ margin-top: 18px; }

/* --------------------------------------------------------------------------
   Tablet and up
   -------------------------------------------------------------------------- */

@media (min-width: 768px){
    /* two-up choice pills where the labels are short */
    .bkg .bkg-choices{ grid-template-columns: 1fr 1fr; }
    .bkg .bkg-choices--wide{ grid-template-columns: 1fr; }

    .bkg .bkg-section{ font-size: 21px; }
    .bkg .bkg-card--wide{ padding: 40px; }

    .bkg .bkg-head{ padding: 60px 0 40px; }
    .bkg .bkg-head h1{ font-size: 42px; }
    .bkg .bkg-lead{ font-size: 17px; }

    .bkg .bkg-choose{ grid-template-columns: 1fr 1fr; }
    .bkg .bkg-row--2{ grid-template-columns: 1fr 1fr; }
    .bkg .bkg-card{ padding: 36px 32px; }
    .bkg .bkg-btn{ width: auto; min-width: 260px; }
    .bkg .bkg-secure{ text-align: left; }
}

@media (min-width: 1024px){
    .bkg .bkg-grid{ grid-template-columns: 1fr 340px; gap: 32px; }
    .bkg .bkg-summary{ position: sticky; top: 110px; }
}
