/**
 * Partnership Section Block Styles
 *
 * @package ACF Child Theme
 */

:root {
    --color-yellow: #e3cd51;
    --color-light: #e7e9ed;
    --color-text: #595959;
    --color-teal: #2d5765;
    --color-white: #ffffff;
    --font-primary: 'Aptos', sans-serif;
}

/* ── Section Wrapper — full-width background image ───────────────────────── */
.partnership-section {
    position: relative;
    width: 100%;
    background-color: var(--color-teal, #2d5765); /* fallback when no image */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 90px 0;
    margin-bottom: 0 !important;
}

/* ── Semi-transparent overlay ────────────────────────────────────────────── */
.partnership-section__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* ── Content Container — WordPress layout width ──────────────────────────── */
.partnership-section__container {
    position: relative;
    z-index: 1;
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.partnership-section__header {
    width: fit-content;
    margin: 0 auto 40px;
}

.partnership-section__title {
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--color-white, #ffffff);
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Yellow underline — matches title width via fit-content parent */
.partnership-section__title-underline {
    width: 100%;
    height: 4px;
    background-color: var(--color-yellow, #e3cd51);
}

/* ── Description ─────────────────────────────────────────────────────────── */
.partnership-section__description {
    margin-bottom: 40px;
}

.partnership-section__description p {
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-white, #ffffff);
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.partnership-section__description p:last-child {
    margin-bottom: 0;
}

/* ── CTA Button Wrapper ───────────────────────────────────────────────────── */
.partnership-section__cta {
    margin-top: 10px;
}

/* ── Button — inherits .btn .btn--default, minor overrides ───────────────── */
.partnership-section__btn.btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white, #ffffff);
    background-color: var(--color-teal, #2d5765);
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    line-height: 1;
}

.partnership-section__btn.btn:hover {
    background-color: var(--color-yellow, #e3cd51);
    color: var(--color-white, #ffffff);
}

/* ── Tablet ───────────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1023px) {
    .partnership-section {
        padding: 70px 0;
    }

    .partnership-section__header {
        margin-bottom: 30px;
    }

    .partnership-section__title {
        font-size: 2.4rem;
    }

    .partnership-section__title-underline {
        height: 3px;
    }

    .partnership-section__description {
        margin-bottom: 32px;
    }

    .partnership-section__description p {
        font-size: 1.25rem;
    }
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .partnership-section {
        padding: 55px 0;
    }

    .partnership-section__header {
        margin-bottom: 24px;
    }

    .partnership-section__title {
        font-size: 1.9rem;
    }

    .partnership-section__title-underline {
        height: 3px;
    }

    .partnership-section__description {
        margin-bottom: 28px;
    }

    .partnership-section__description p {
        font-size: 1rem;
    }

    .partnership-section__btn.btn {
        padding: 12px 28px;
        font-size: 1rem;
        width: auto;
    }
}


/* =============================================================================
   Contact Modal (ps-modal)
   ============================================================================= */

/* ── Body lock when modal is open ─────────────────────────────────────────── */
body.ps-modal-open {
    overflow: hidden;
}

/* ── Modal root — covers the viewport ────────────────────────────────────── */
.ps-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ps-modal[hidden] {
    display: none;
}

/* ── Semi-transparent backdrop ────────────────────────────────────────────── */
.ps-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

/* ── Dialog box ───────────────────────────────────────────────────────────── */
.ps-modal__dialog {
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px 48px 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ── Close button (green circle × ) ──────────────────────────────────────── */
.ps-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text, #595959);
    padding: 0;
    z-index: 2;
    transition: color 0.2s ease;
}

.ps-modal__close:hover,
.ps-modal__close:focus-visible {
    color: var(--color-teal, #2d5765);
}

/* ── Body — two columns ───────────────────────────────────────────────────── */
.ps-modal__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px 50px;
    align-items: start;
}

/* ── Left column: title + form ────────────────────────────────────────────── */
.ps-modal__left {
    min-width: 0;
}

/* Modal header */
.ps-modal__header {
    width: fit-content;
    margin: 0 0 30px 0;
}

.ps-modal__title {
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text, #252525);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

/* Underline matches title width via fit-content parent */
.ps-modal__title-underline {
    width: 100%;
    height: 4px;
    border-radius: 2px;
}

/* WPForms overrides inside modal */
.ps-modal__form .wpforms-container {
    padding: 0 !important;
}

.ps-modal__form .wpforms-field {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

.ps-modal__form .wpforms-field input,
.ps-modal__form .wpforms-field textarea,
.ps-modal__form .wpforms-field select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 4px !important;
    font-family: var(--font-primary, 'Aptos', sans-serif) !important;
    font-size: 0.95rem !important;
    color: var(--color-text, #252525) !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.ps-modal__form .wpforms-field input:focus,
.ps-modal__form .wpforms-field textarea:focus {
    outline: none !important;
    border-color: #2d5765 !important;
    box-shadow: 0 0 0 2px rgba(84, 177, 65, 0.15) !important;
}

.ps-modal__form .wpforms-field textarea {
    min-height: 110px !important;
    resize: vertical !important;
}

.ps-modal__form .wpforms-field label.wpforms-field-label {
    display: none !important;
}

.ps-modal__form .wpforms-submit-container {
    padding: 0 !important;
    margin-top: 8px !important;
}

.ps-modal__form .wpforms-submit,
.ps-modal__form button[type="submit"] {
    display: inline-block !important;
    padding: 12px 32px !important;
    font-family: var(--font-primary, 'Aptos', sans-serif) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background-color: #2d5765 !important;
    border: none !important;
    border-radius: none !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease !important;
}

.ps-modal__form .wpforms-submit:hover,
.ps-modal__form button[type="submit"]:hover {
    background-color: #e3cd51 !important;
}

/* ── Right column: contact details ────────────────────────────────────────── */
.ps-modal__right {
    min-width: 280px;
    max-width: 300px;
    padding-top: 80px;
}

.ps-modal__contact-name {
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text, #252525);
    margin: 0 0 10px 0;
}

.ps-modal__address {
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 1rem;
    color: var(--color-text, #252525);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.ps-modal__phone {
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 1rem;
    color: var(--color-text, #252525);
    margin: 0 0 14px 0;
}

.ps-modal__phone a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.ps-modal__phone a:hover {
    text-decoration: underline;
}

.ps-modal__email-label {
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 1rem;
    color: var(--color-text, #252525);
    line-height: 1.6;
    margin: 0;
}

.ps-modal__email-label a {
    color: inherit;
    text-decoration: none;
    word-break: break-all;
}

.ps-modal__email-label a:hover {
    text-decoration: underline;
}

/* ── Tablet modal ─────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1023px) {
    .ps-modal__dialog {
        padding: 40px 32px 36px;
        max-width: 680px;
    }

    .ps-modal__body {
        gap: 30px 36px;
    }

    .ps-modal__title {
        font-size: 1.7rem;
    }

    .ps-modal__right {
        min-width: 180px;
        max-width: 200px;
        padding-top: 70px;
    }
}

/* ── Mobile modal — stack columns ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .ps-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .ps-modal__dialog {
        padding: 40px 22px 28px;
        max-height: 95vh;
        max-width: 100%;
    }

    .ps-modal__body {
        grid-template-columns: 1fr;
        gap: 32px 0;
    }

    .ps-modal__title {
        font-size: 1.5rem;
    }

    .ps-modal__right {
        max-width: 100%;
        min-width: 0;
        padding-top: 0;
        border-top: 1px solid #e7e9ed;
        padding-top: 24px;
    }
}
