/* MD Web Services - contact page */

.contact-section-page {
    padding-top: clamp(1.6rem, 3.4vw, 3.2rem);
    padding-bottom: clamp(2.2rem, 4vw, 3.8rem);
}

.contact-section-page > .shell {
    max-width: var(--shell);
}

.contact-list-head {
    margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
    padding-bottom: clamp(1.1rem, 2vw, 1.5rem);
    border-bottom: 1px solid var(--line);
}

.contact-list-head h1 {
    max-width: 680px;
    margin: 0.25rem 0 0;
    color: var(--text);
    font-size: clamp(2.45rem, 5vw, 4.55rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(1.1rem, 2vw, 1.75rem);
    align-items: start;
}

.contact-grid aside,
.contact-form-wrap {
    padding: clamp(1.4rem, 2.4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--box-radius-sm);
    background: var(--paper-2);
}

.contact-mail {
    display: inline-block;
    margin: 1.1rem 0 0.9rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text);
}

.contact-mail:hover {
    color: var(--mint-deep);
    border-color: var(--mint-deep);
}

.contact-grid aside > p {
    margin: 0;
    max-width: 40ch;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.contact-note {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.contact-note > span {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-note ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-note li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.contact-note li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--mint-deep);
}

.contact-form-wrap {
    max-width: none;
}

.contact-form {
    display: grid;
}

.form-field {
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s var(--ease), background 0.3s ease;
}

.form-field:first-of-type {
    padding-top: 0;
}

.form-field:last-of-type {
    border-bottom: 0;
}

.form-field:focus-within {
    padding-inline: 0.9rem;
    background: color-mix(in srgb, var(--mint) 8%, transparent);
}

.form-field label {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-field label span {
    color: var(--muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 65%, transparent);
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1.1rem 1.35rem;
    border: 0;
    border-radius: 14px;
    background: var(--text);
    color: var(--paper);
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.submit-button i {
    font-style: normal;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.alert {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: 10px;
    background: var(--paper-2);
}

.alert strong {
    color: var(--text);
}

.alert span {
    color: var(--muted);
    font-size: 0.9rem;
}

.alert.success {
    border-left-color: var(--mint-deep);
}

.alert.error {
    border-left-color: #c75b5b;
}

@media (max-width: 1000px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid aside {
        max-width: 680px;
    }
}

@media (max-width: 700px) {
    .contact-section-page {
        padding-top: 1.2rem;
        padding-bottom: 1.6rem;
    }

    .contact-list-head {
        margin-bottom: 1.2rem;
    }

    .contact-list-head h1 {
        font-size: clamp(2.35rem, 13vw, 3.8rem);
    }

    .contact-grid {
        gap: 0.9rem;
    }

    .contact-grid aside,
    .contact-form-wrap {
        padding: 1.1rem;
    }

    .contact-note {
        margin-top: 1.4rem;
    }

    .form-field {
        padding: 1.1rem 0;
    }
}

/* Admin typography controls */
.page-compact-title h1,
.case-compact-title h1,
.section-heading h2 {
    font-size: clamp(2rem, 4.4vw, var(--font-size-section));
}

.service-card h2,
.service-card h3,
.info-card h3,
.case-card h3,
.contact-card h3 {
    font-size: var(--font-size-card);
}

.service-card p,
.info-card p,
.case-card p,
.contact-card p {
    font-size: var(--font-size-base);
}

.page-index,
.section-kicker,
.meta-label,
.case-meta span {
    font-size: var(--font-size-small);
}