/* Contact form pages. Shared by contact.html, consulting-contact.html and
   partner-contact.html, which differ only in copy and in which inbox they route to.
   Depends on css/shared.css for variables, header and footer. */

.contact-main {
    padding: 6rem 0 4rem;
    min-height: 70vh;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 820px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.contact-field {
    margin-bottom: 1.25rem;
}

.contact-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}

.contact-field .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-field textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-field .hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Honeypot: kept out of view without display:none, which some bots detect. */
.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-status {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.contact-status.is-error {
    background: rgba(153, 27, 27, 0.25);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: #fca5a5;
}

.contact-status.is-success {
    background: rgba(6, 95, 70, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
}

.contact-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-sent-copy {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-aside h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-aside p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Selectable plain text, not a mailto: link. A mailto does nothing on a machine with no
   desktop mail client, which is most work machines. */
.contact-address {
    user-select: all;
    color: var(--text-color);
    font-weight: 600;
}

/* ── Consulting and partner variants ────────────────────────────────────── */

/* Availability figure, repeated from the consulting hub so the number is still in
   front of the reader at the point they are actually writing the message. */
.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    padding: 0.5rem 1.1rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 600;
}

.contact-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

/* "What helps in a first message" prompts. Answering these up front is what turns a
   vague enquiry into something scopeable without a round trip. */
.contact-checklist {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.contact-checklist li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.55rem;
}

.contact-checklist li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}
