/* Contact page; builds on page-shell.css. */

.ss-hero--contact {
    background-image: url('../images/banner11.jpg');
}

.ss-hero--contact .ss-hero__inner {
    /* Room for the info cards that overlap the bottom of the hero. */
    padding-bottom: 130px;
}

/* ---------- Info cards ---------- */

.ct-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: -70px;
}

.ct-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 28px 26px;
    border-radius: var(--ss-radius);
    background: #fff;
    box-shadow: var(--ss-shadow);
    color: inherit;
    transition: transform .25s ease;
}

a.ct-card:hover,
a.ct-card:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-5px);
}

.ct-card__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ss-cream);
    color: var(--ss-brand);
    font-size: 21px;
}

.ct-card__label {
    display: block;
    margin-bottom: 4px;
    color: var(--ss-brand);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ss-page .ct-card__value {
    margin: 0 0 2px;
    text-align: left;
    color: var(--ss-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ss-page .ct-card p {
    font-size: 14px;
    line-height: 1.55;
}

/* The e-mail address is the longest value: a little smaller so it fits a card of equal width. */
.ss-page .ct-card__value--email {
    font-size: 14px;
    line-height: 23px;
    white-space: nowrap;
}

/* ---------- Form + side panel ---------- */

.ct-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.ct-panel {
    padding: 40px 38px;
    border: 1px solid var(--ss-line);
    border-radius: var(--ss-radius);
    background: #fff;
}

.ss-page .ct-panel__title {
    margin: 0 0 8px;
    text-align: left;
    color: var(--ss-ink);
    font-size: 26px;
    font-weight: 600;
}

.ss-page .ct-panel__lead {
    margin-bottom: 26px;
}

.ct-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.ct-field--wide {
    grid-column: 1 / -1;
}

.ct-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ss-ink);
    font-size: 13px;
    font-weight: 600;
}

.ct-field__req {
    color: var(--ss-brand);
}

.ct-input {
    display: block;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #ddd6d0;
    border-radius: 10px;
    background: #fdfbf9;
    color: var(--ss-ink);
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ct-input::placeholder {
    color: #aaa39e;
}

.ct-input:focus {
    border-color: var(--ss-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(208, 35, 35, .12);
    outline: 0;
}

textarea.ct-input {
    min-height: 150px;
    resize: vertical;
}

.ct-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.ct-form .ss-btn[disabled] {
    opacity: .6;
    cursor: progress;
    transform: none;
}

.ct-status {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.ct-status[hidden] {
    display: none;
}

.ct-status--error {
    background: #fdecec;
    color: #a81818;
}

.ct-status--success {
    background: #e7f7ee;
    color: #17673b;
}

/* ---------- Side panel ---------- */

.ct-aside {
    display: grid;
    gap: 24px;
}

.ct-note {
    padding: 32px 30px;
    border-radius: var(--ss-radius);
    background: var(--ss-cream);
}

.ss-page .ct-note__title {
    margin: 0 0 10px;
    text-align: left;
    color: var(--ss-ink);
    font-size: 20px;
    font-weight: 600;
}

.ct-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.ct-list li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 9px 0;
    border-top: 1px solid var(--ss-line);
    color: var(--ss-ink);
    font-size: 14px;
}

.ct-list .fa {
    color: var(--ss-brand);
}

.ct-map {
    border-radius: var(--ss-radius);
    overflow: hidden;
    box-shadow: var(--ss-shadow);
    line-height: 0;
}

.ct-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 1200px) {
    .ct-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ss-page .ct-card__value--email {
        font-size: 16px;
    }
}

@media (max-width: 860px) {
    .ct-layout {
        grid-template-columns: 1fr;
    }

    .ct-panel {
        padding: 28px 22px;
    }
}

@media (max-width: 520px) {
    .ct-form {
        grid-template-columns: 1fr;
    }

    .ct-card {
        gap: 14px;
        padding: 22px 18px;
    }

    .ct-card__icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    /* Narrow phones: let the address wrap rather than run off the card. */
    .ss-page .ct-card__value--email {
        font-size: 13px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct-card,
    .ct-input {
        transition: none;
    }
}
