/* Therapist Contact Form: dedicated /therapist/{slug}/contact/ page + button */

/* ===== "Email me" button (shortcode output) ===== */

.slt-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 28px;
    background: #F5A623;
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(245,166,35,0.25);
}
.slt-contact-btn:hover {
    background: #e09510;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,166,35,0.35);
}
.slt-contact-btn__icon { font-size: 18px; line-height: 1; }

/* ===== Page shell ===== */

.slt-contact-page {
    background: #f7f8fa;
    padding: 60px 20px;
    min-height: 60vh;
}
.slt-contact-container {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

/* ===== Left: therapist mini-card ===== */

.slt-contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    text-align: center;
    /*
     * Sticky on desktop. The offset clears the site's sticky header
     * (roughly 100px tall) plus a little breathing room, so the card
     * doesn't get tucked under the navigation when scrolled.
     */
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}
.slt-contact-card__photo img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f0efe8;
    margin: 0 auto 16px;
    display: block;
}
.slt-contact-page .slt-contact-card h2.slt-contact-card__name {
    font-size: 22px !important;
    line-height: 1.25 !important;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}
.slt-contact-page .slt-contact-card .slt-contact-card__credentials {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.4;
}
.slt-contact-card__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f2f4f5;
    color: #333 !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
    margin-bottom: 24px;
}
.slt-contact-card__back:hover { background: #e6e8ea; color: #111 !important; }

.slt-contact-page .slt-contact-tip {
    text-align: left;
    background: #eaf4f5;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 8px;
}
.slt-contact-page .slt-contact-tip h3 {
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 700;
    color: #0f5d68;
    margin: 0 0 10px;
}
.slt-contact-page .slt-contact-tip p {
    font-size: 13px;
    line-height: 1.55;
    color: #355;
    margin: 0 0 10px;
}
.slt-contact-page .slt-contact-tip p:last-child { margin-bottom: 0; }

/* ===== Right: form ===== */

.slt-contact-form-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.slt-contact-page .slt-contact-form-wrap h1.slt-contact-form-title {
    font-size: 28px !important;
    line-height: 1.25 !important;
    font-weight: 700;
    color: #111;
    margin: 0 0 18px;
    padding: 0;
}

/* Notices */
.slt-contact-page .slt-contact-notice {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 22px;
}
.slt-contact-page .slt-contact-notice strong { margin-right: 4px; }
.slt-contact-notice--info {
    background: #fdf6e4;
    border: 1px solid #f5e3b0;
    color: #7a5a12;
}
.slt-contact-notice--warn {
    background: #fdebeb;
    border: 1px solid #f5c2c2;
    color: #8a2424;
}

/* Rows + fields */
.slt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 0;
}
.slt-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}
.slt-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.slt-req { color: #d0342c; }

.slt-field input[type="text"],
.slt-field input[type="email"],
.slt-field input[type="tel"],
.slt-field textarea,
.slt-field select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #222;
    background: #fff;
    border: 1px solid #d7dade;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.slt-field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.slt-field input:focus,
.slt-field textarea:focus,
.slt-field select:focus {
    outline: none;
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

/* Invalid state */
.slt-field.is-invalid > input,
.slt-field.is-invalid > textarea,
.slt-field.is-invalid > select,
.slt-field.is-invalid .slt-field-meta input,
.slt-field.is-invalid .slt-field-meta textarea {
    border-color: #d0342c;
    background: #fff8f7;
}
.slt-field.is-invalid > input:focus,
.slt-field.is-invalid > textarea:focus,
.slt-field.is-invalid > select:focus {
    box-shadow: 0 0 0 3px rgba(208,52,44,0.15);
}

.slt-field-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #d0342c;
    line-height: 1.4;
    min-height: 1em;
}
.slt-field-error.is-visible {
    display: block;
    animation: slt-err-in 0.15s ease-out;
}
@keyframes slt-err-in {
    from { opacity: 0; transform: translateY(-2px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Message field: error + char count on same row */
.slt-field-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
}
.slt-field-meta .slt-field-error { margin-top: 0; }
.slt-char-count {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    padding-top: 1px;
}

/* Checkboxes */
.slt-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 0;
    cursor: pointer;
}
.slt-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #F5A623;
}
.slt-checkbox.is-invalid > label > span {
    color: #8a2424;
}
.slt-checkbox .slt-field-error {
    margin-top: 4px;
    margin-left: 28px;
}

/* Honeypot */
.slt-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Cloudflare Turnstile spacing */
.slt-turnstile {
    margin: 8px 0 20px;
    min-height: 65px;
}

/* Submit */
.slt-submit {
    margin-top: 8px;
    width: 100%;
    padding: 16px 24px;
    background: #0f5d68;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.slt-submit:hover { background: #0c4e57; }
.slt-submit:disabled {
    background: #9bb0b4;
    cursor: not-allowed;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .slt-contact-container {
        grid-template-columns: 1fr;
    }
    .slt-contact-card {
        position: static;
        max-width: 480px;
        margin: 0 auto;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .slt-contact-page { padding: 30px 12px; }
    .slt-contact-form-wrap { padding: 24px 20px; }
    .slt-contact-page .slt-contact-form-wrap h1.slt-contact-form-title {
        font-size: 22px !important;
    }
    .slt-contact-page .slt-contact-card h2.slt-contact-card__name {
        font-size: 20px !important;
    }
    .slt-row { grid-template-columns: 1fr; gap: 0; }
}
