/* Additions for the Umbraco 17 version: form buttons, consent-gated embeds, GEO summary, FAQ, booking rows. */

/* Submit triggers are anchors, exactly as in the old markup; site.js submits the form on click. */
a.send.is-submitting,
#_subscribe.is-submitting,
#footerSubscribe.is-submitting {
    opacity: 0.6;
    pointer-events: none;
}

.booking-row {
    margin: 0 !important;
    background: url("/images/background-6.jpg") center center no-repeat;
    background-size: 100% 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.booking-rating {
    display: flex;
    justify-content: center;
}

.booking-aside {
    margin-top: 2em;
}

.booking-aside .doctoranytime-widget .flex {
    flex-direction: column;
}

/* Consent-gated third-party content (Instagram embeds, Google Map). */
.consent-embed {
    position: relative;
}

.consent-embed__placeholder {
    background: #f6f6f6;
    border: 1px dashed #cfcfcf;
    padding: 2em 1.5em;
    text-align: center;
    font-size: 0.95em;
    color: #555;
}

.consent-embed__placeholder .btn-more,
.consent-embed__placeholder .js-consent-embeds {
    display: inline-block;
    margin: 0.5em 0 1em;
    padding: 0.6em 1.6em;
    border: 0;
    border-radius: 2em;
    background: #8edcc0;
    color: #2d2d2d;
    font-weight: 700;
    cursor: pointer;
}

.consent-embed__alt {
    font-size: 0.9em;
}

.consent-embed--map {
    min-height: 420px;
}

.consent-embed--map iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

.consent-embed[data-embed="instagram"] blockquote.instagram-media {
    display: none;
}

.consent-embed[data-embed="instagram"].is-granted blockquote.instagram-media {
    display: block;
}

.consent-embed.is-granted .consent-embed__placeholder {
    display: none;
}

/* GEO summary block (direct answer + key takeaways). */
.geo-summary {
    max-width: 960px;
    margin: 0 auto 2em;
    padding: 1.5em 2em;
    border-left: 4px solid #8edcc0;
    background: #f9fdfb;
    font-size: 1.05em;
    line-height: 1.6;
}

.geo-summary__text {
    margin: 0 0 0.75em;
    font-weight: 500;
}

.geo-summary__list {
    margin: 0;
    padding-left: 1.2em;
}

.geo-summary__meta {
    margin: 0.75em 0 0;
    font-size: 0.85em;
    color: #777;
}

.blogging .geo-summary,
.service .geo-summary {
    margin: 1.5em 0;
}

/* FAQ (details/summary) */
.faq {
    max-width: 960px;
    margin: 2em auto;
    padding: 0 15px;
}

.faq__title {
    text-align: center;
    margin-bottom: 1em;
}

.faq__item {
    border-bottom: 1px solid #e7e7e7;
    padding: 0.75em 0;
}

.faq__question {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1em;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::before {
    content: "+";
    display: inline-block;
    width: 1.4em;
    color: #8edcc0;
    font-weight: 700;
}

.faq__item[open] .faq__question::before {
    content: "–";
}

.faq__answer {
    padding: 0.5em 0 0.5em 1.4em;
}

.blogging .date-comments .author {
    color: #777;
}

.blog-empty {
    padding: 3em 0;
}

/* Silktide consent manager colours aligned with the site palette */
#stcm-wrapper {
    --fontFamily: "proxima-soft", Helvetica, Arial, sans-serif;
    --primaryColor: #8edcc0;
    --backgroundColor: #2d2d2d;
    --textColor: #ffffff;
    --iconColor: #2d2d2d;
    --iconBackgroundColor: #8edcc0;
}

/* Contact map: the old Google map filled the #map box (padding 25% = 2:1 aspect). The consent-gated iframe does the same. */
#map.consent-embed--map {
    position: relative;
    min-height: 0;
}

#map.consent-embed--map .consent-embed__placeholder,
#map.consent-embed--map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#map.consent-embed--map .consent-embed__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#map.consent-embed--map.is-granted .consent-embed__placeholder {
    display: none;
}

/* Share bar (local replacement of AddThis: plain share links, no external script) */
.share-bar {
    margin: 1.5em 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
}

.share-bar__label {
    font-weight: 700;
    margin-right: 0.5em;
}

.share-bar a,
.share-bar button {
    display: inline-block;
    padding: 0.4em 1em;
    border: 1px solid #8edcc0;
    border-radius: 2em;
    background: #fff;
    color: #2d2d2d;
    font-size: 0.9em;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.share-bar a:hover,
.share-bar button:hover {
    background: #8edcc0;
    color: #fff;
}

/* Disqus comments, loaded after consent */
.consent-embed--disqus {
    margin: 2em 0;
}

/* Collapse the fixed header and the DoctorAnytime bar while scrolling down; they return on scroll up (site.js). */
.mynavbar {
    transition: transform 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.mynavbar.is-collapsed {
    transform: translateY(-100%);
}

.espa-container {
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Bottom booking bar: compact strip while scrolling down (logo + button only), full bar again on scroll up or when scrolling stops. */
.espa-container.is-compact .booking-rating,
.espa-container.is-compact .doctoranytime-widget p {
    display: none;
}

.espa-container.is-compact .booking-row {
    min-height: 0;
}

.espa-container.is-compact .doctoranytime-widget .flex {
    padding: 6px 12px !important;
    margin: 6px 16px !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.espa-container.is-compact .doctoranytime-widget .dat-button {
    padding-top: 6px;
    padding-bottom: 6px;
}

.espa-container .booking-row,
.espa-container .doctoranytime-widget .flex {
    transition: padding 0.25s ease, margin 0.25s ease;
}

.top {
    transition: transform 0.3s ease, bottom 0.3s ease, opacity 0.3s ease;
}

/* Social links as inline SVG icons (replaces the 16px PNGs) */
/* Home contact section: TikTok circle uses an inline SVG (the old png was a white 16px stub). Same colours as facebook.png. */
.social-media a svg {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 24px;
    height: 24px;
    fill: #3b5998;
}

.social-media a:hover svg {
    fill: #fff;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ff194f;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-links svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.social-links a:hover,
.social-links a:focus {
    color: #42caf3;
    transform: translateY(-2px);
}

.social-links--footer {
    justify-content: flex-start;
    margin: 0.5em 0;
}

.social-links--footer a {
    color: #fff;
}

.social-links--footer a:hover,
.social-links--footer a:focus {
    color: #8edcc0;
}

.social-links--footer svg {
    width: 26px;
    height: 26px;
}
