/* =====================================================================
   PE Group of Institutions: CONTACT PAGE ONLY styles
   Loaded only by contact.blade.php (through @push('styles')).
   Reuses the colour tokens from pe-header.css, with fallbacks.
   ===================================================================== */

.pc-head, .pc-actions, .pc-main, .pc-camp {
    --pc-forest: var(--pe-forest, #17392c);
    --pc-green: var(--pe-green, #2f6b4f);
    --pc-sage: var(--pe-sage, #7c8c6b);
    --pc-sage-50: var(--pe-sage-50, #f3f6f0);
    --pc-sage-100: var(--pe-sage-100, #e5ebe0);
    --pc-mustard: var(--pe-mustard, #d9a036);
    --pc-ink: var(--pe-ink, #1c2521);
    --pc-muted: var(--pe-muted, #5b675f);
    --pc-line: #dfe4dd;
    --pc-space: clamp(32px, 4.5vw, 60px);

    color: var(--pc-ink);
    font-family: var(--pe-font-ui, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}
.pc-head *, .pc-actions *, .pc-main *, .pc-camp *,
.pc-head *::before, .pc-actions *::before, .pc-main *::before, .pc-camp *::before {
    box-sizing: border-box;
}
.pc-head ol, .pc-actions ul, .pc-main ul, .pc-camp ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
:where(.pc-actions, .pc-main, .pc-camp) :focus-visible {
    outline: 2px solid var(--pc-forest);
    outline-offset: 3px;
}
.pc-head :focus-visible {
    outline: 2px solid var(--pc-mustard);
    outline-offset: 3px;
}

/* =====================================================================
   Page header
   ===================================================================== */
.pc-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(28px, 3.5vw, 48px) clamp(56px, 7vw, 92px);
    background: var(--pc-forest);
    color: #cfdac9;
}
.pc-head::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(46% 70% at 82% 18%, rgba(124, 140, 107, .4), transparent 70%),
        radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 22px 22px;
}
.pc-head::after {
    content: "";
    position: absolute;
    right: -3%;
    bottom: -58%;
    z-index: -1;
    width: min(30%, 320px);
    aspect-ratio: 4 / 5;
    border: 28px solid rgba(255, 255, 255, .07);
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    pointer-events: none;
}
.pc-crumbs {
    margin-bottom: clamp(14px, 2vw, 22px);
    font-size: .875rem;
}
.pc-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-crumbs li + li::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, .4);
}
.pc-crumbs a { color: #cfdac9; text-decoration: none; }
.pc-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pc-crumbs li[aria-current] { color: var(--pc-mustard); font-weight: 600; }
.pc-head__title {
    max-width: 20ch;
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
}
.pc-head__lead {
    max-width: 46rem;
    margin: 0;
    font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
    line-height: 1.65;
}

/* =====================================================================
   Call / WhatsApp / email cards (overlap the green header)
   ===================================================================== */
.pc-actions {
    position: relative;
    z-index: 2;
    margin-top: clamp(-72px, -6vw, -48px);
}
.pc-actions__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.pc-action {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 22px;
    border: 1.5px solid var(--pc-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 44px -34px rgba(23, 57, 44, .7);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pc-action:hover {
    border-color: var(--pc-sage);
    box-shadow: 0 26px 44px -28px rgba(23, 57, 44, .65);
    transform: translateY(-3px);
}
.pc-action__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 15px;
    background: var(--pc-sage-100);
    color: var(--pc-forest);
    font-size: 1.3rem;
}
.pc-action__title {
    margin: 0 0 6px;
    color: var(--pc-forest);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}
.pc-action__text {
    margin: 0 0 16px;
    color: var(--pc-muted);
    font-size: 1rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.pc-action__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--pc-forest);
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: none;
}
.pc-action__link::after { content: ""; position: absolute; inset: 0; border-radius: 17px; }
.pc-action__link i { transition: transform .2s; }
.pc-action:hover .pc-action__link { color: var(--pc-green); }
.pc-action:hover .pc-action__link i { transform: translateX(3px); }

/* =====================================================================
   Form + office details
   ===================================================================== */
.pc-main { padding-block: var(--pc-space); }
.pc-main__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: start;
    gap: clamp(24px, 4vw, 48px);
}

.pc-form {
    padding: clamp(22px, 3vw, 36px);
    border: 1.5px solid var(--pc-line);
    border-radius: 22px;
    background: var(--pc-sage-50);
}
.pc-form__title {
    margin: 0 0 8px;
    color: var(--pc-forest);
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 400;
    line-height: 1.15;
}
.pc-form__text {
    max-width: 46ch;
    margin: 0 0 22px;
    color: var(--pc-muted);
    font-size: 1rem;
    line-height: 1.6;
}
.pc-form__ok {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--pc-sage-100);
    color: var(--pc-forest);
    font-weight: 600;
}
.pc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.pc-field { display: grid; gap: 6px; }
.pc-field--wide { grid-column: 1 / -1; }
.pc-field label {
    color: var(--pc-forest);
    font-size: .875rem;
    font-weight: 600;
}
.pc-field__opt { color: var(--pc-muted); font-weight: 400; }
.pc-field input,
.pc-field select,
.pc-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid var(--pc-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pc-ink);
    font: inherit;
    font-size: 1rem;
}
.pc-field textarea { min-height: 112px; resize: vertical; }
.pc-field input:focus,
.pc-field select:focus,
.pc-field textarea:focus {
    border-color: var(--pc-green);
    outline: none;
    box-shadow: 0 0 0 4px rgba(47, 107, 79, .15);
}
.pc-field__error { color: #dc3545; font-size: .8125rem; }

.pc-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.pc-consent input {
    -webkit-appearance: none;
            appearance: none;
    flex: none;
    width: 22px;
    min-height: 22px;
    height: 22px;
    margin-top: 2px;
    padding: 0;
    border: 2px solid #c3cbc2;
    border-radius: 6px;
    background: #fff center / 14px 14px no-repeat;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.pc-consent input:checked {
    border-color: var(--pc-green);
    background-color: var(--pc-green);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='M3.5 8.5l3 3 6-7'/%3e%3c/svg%3e");
}
.pc-consent label {
    color: var(--pc-muted);
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}
.pc-consent a { color: var(--pc-green); font-weight: 600; }
.pc-submit { width: 100%; }

/* Office details */
.pc-office {
    padding: clamp(22px, 3vw, 32px);
    border: 1.5px solid var(--pc-line);
    border-radius: 22px;
    background: #fff;
}
.pc-office__title {
    margin: 0 0 20px;
    color: var(--pc-forest);
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem);
    font-weight: 400;
    line-height: 1.2;
}
.pc-office__list { display: grid; gap: 18px; }
.pc-office__list li { display: flex; align-items: flex-start; gap: 14px; }
.pc-office__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--pc-sage-100);
    color: var(--pc-forest);
    font-size: 1.1rem;
}
.pc-office__label {
    display: block;
    color: var(--pc-muted);
    font-size: .8125rem;
}
.pc-office__value {
    display: block;
    margin-top: 2px;
    color: var(--pc-ink);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}
a.pc-office__value:hover { color: var(--pc-green); text-decoration: underline; text-underline-offset: 4px; }
.pc-map {
    margin-top: 22px;
    overflow: hidden;
    border: 1.5px solid var(--pc-line);
    border-radius: 16px;
}
.pc-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

/* =====================================================================
   Campuses
   ===================================================================== */
.pc-camp {
    padding-block: var(--pc-space);
    background: var(--pc-sage-50);
}
.pc-camp__title {
    margin: 0 0 10px;
    color: var(--pc-forest);
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem);
    font-weight: 400;
    line-height: 1.15;
}
.pc-camp__intro {
    max-width: 46rem;
    margin: 0 0 clamp(20px, 3vw, 32px);
    color: var(--pc-muted);
    font-size: 1.0625rem;
    line-height: 1.6;
}
.pc-camp__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.pc-camp__item {
    display: flex;
    gap: 18px;
    padding: 20px;
    border: 1.5px solid var(--pc-line);
    border-radius: 18px;
    background: #fff;
}
.pc-camp__logo {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    flex: none;
    place-items: center;
    width: 86px;
    height: 86px;
    padding: 8px;
    border: 1.5px solid var(--pc-line);
    border-radius: 14px;
    background: #fff;
}
.pc-camp__logo img {
    width: auto;
    height: auto;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pc-camp__body { min-width: 0; }
.pc-camp__name {
    margin: 0 0 8px;
    color: var(--pc-forest);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
}
.pc-camp__addr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--pc-muted);
    font-size: .9375rem;
    line-height: 1.5;
}
.pc-camp__addr i { margin-top: 2px; color: var(--pc-forest); }
.pc-camp__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.pc-camp__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1.5px solid var(--pc-line);
    border-radius: 999px;
    color: var(--pc-forest);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s;
}
.pc-camp__links a:hover {
    border-color: var(--pc-forest);
    background: var(--pc-forest);
    color: #fff;
}
.pc-camp__links i { font-size: .95rem; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 991.98px) {
    .pc-actions__list { grid-template-columns: minmax(0, 1fr); }
    .pc-main__grid { grid-template-columns: minmax(0, 1fr); }
    .pc-camp__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .pc-actions { margin-top: -40px; }
    .pc-action { padding: 20px 18px; }
    .pc-fields { grid-template-columns: minmax(0, 1fr); }
    .pc-camp__item { flex-direction: column; gap: 14px; }
    .pc-camp__logo { width: 72px; height: 72px; }
    .pc-camp__links a { padding: 8px 12px; font-size: .8125rem; }
    .pc-map iframe { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    .pc-action, .pc-action__link i { transition-duration: .01ms !important; }
    .pc-action:hover { transform: none; }
    .pc-action:hover .pc-action__link i { transform: none; }
}

/* ---------- Validation summary ---------- */
.pc-form__bad {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1.5px solid #f0c2c7;
    border-radius: 12px;
    background: #fdf2f3;
    color: #a3202f;
}
.pc-form__bad p {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    font-weight: 700;
}
.pc-form__bad ul {
    margin: 0;
    padding-left: 22px;
    font-size: .9375rem;
    line-height: 1.6;
}
.pc-form__bad li { list-style: disc; }

/* ---------- Result box filled in by pe-contact.js ---------- */
.pc-form__result[hidden] { display: none; }
.pc-form__result { scroll-margin-top: 110px; }
.pc-form__result.pc-form__ok p,
.pc-form__result.pc-form__bad p {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}
.pc-form__result.pc-form__bad p { margin-bottom: 8px; font-weight: 700; }
.pc-submit.is-busy { opacity: .7; pointer-events: none; }