/* 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. */

.contact-page {
    border-bottom: 1px solid var(--line);
}

.contact-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: clamp(48px, 6vw, 88px);
    padding-bottom: clamp(64px, 8vw, 104px);
}

.contact-intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---------- Inquiry switch ---------- */

.inquiry-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inquiry-tab {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-control);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-body);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.inquiry-tab:hover {
    border-color: var(--line-hover);
    color: var(--text-strong);
}

.inquiry-tab[aria-current="page"] {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
}

.contact-heading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 680px;
}

.contact-heading h1 {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--text-strong);
}

.contact-heading p {
    font-size: clamp(17px, 1.5vw, 19px);
    color: var(--text-muted);
}

/* ---------- Layout ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    align-items: start;
    gap: 24px;
}

.contact-card {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line-panel);
    border-radius: 10px;
    background: var(--panel);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form[hidden],
.contact-status[hidden] {
    display: none;
}

/* ---------- Fields ---------- */

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-strong);
}

.contact-field .optional {
    font-weight: 400;
    color: var(--text-faint);
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-control);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-strong);
    font: inherit;
    font-size: 15px;
}

.contact-field input {
    min-height: 48px;
}

.contact-field textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: var(--text-placeholder);
}

.contact-field input:hover,
.contact-field textarea:hover {
    border-color: var(--line-hover);
}

.contact-field .hint {
    font-size: 13px;
    color: var(--text-faint);
}

/* Honeypot: kept out of view without display:none, which some bots detect. */
.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Submit and status ---------- */

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.contact-submit {
    border: none;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-status {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line-panel);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-strong);
    font-size: 14px;
}

.contact-status.is-error {
    border-color: var(--error);
}

/* ---------- Success ---------- */

.contact-success {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-success[hidden] {
    display: none;
}

.contact-success-label {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.contact-success p {
    font-size: 15px;
    color: var(--text-muted);
}

.contact-success strong {
    color: var(--text-strong);
    font-weight: 600;
}

.contact-success .contact-sent-label {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-faint);
}

.contact-sent-copy {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------- Aside ---------- */

.contact-aside {
    overflow: hidden;
    border: 1px solid var(--line-card);
    border-radius: 10px;
    background: var(--bg);
}

.contact-aside-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
}

.contact-aside-block + .contact-aside-block {
    border-top: 1px solid var(--line);
}

.contact-aside h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-strong);
}

.contact-aside p,
.contact-aside ul {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-aside ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.contact-aside a {
    color: var(--accent);
}

.contact-aside a:hover {
    text-decoration: underline;
}

/* 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;
    font-size: 14px;
    color: var(--accent);
}
