/* Contact page */
.contact-page {
    padding-top: 0;
    /* padding-bottom: 4rem; */
    /* background: #1a1a1a; */
    min-height: 60vh;
    color: var(--color-surface-dark);
}

.contact-hero {
    padding: 6.25rem 0;  /* 100px */
    text-align: center;
    background: var(--color-surface-accent);
}

.contact-hero__title {
    font-size: var(--font-size-32);
    font-weight: 400;
    /* color: #e8e8e8; */
    margin: 0;
}

.contact-form {
    padding: 4rem 0 4rem;
    max-width: 650px;
    margin: 0 auto;
}

.contact-form__content {
    font-size: var(--font-size-12);
    /* color: rgba(232, 232, 232, 0.85); */
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-form__notice {
    margin-bottom: 1.5rem;
}

.contact-form__notice-text {
    font-size: var(--font-size-14);
    /* color: rgba(232, 232, 232, 0.7); */
    margin: 0;
}

.contact-form__required {
    color: var(--color-error);
}

.contact-form__optional {
    font-weight: 400;
    /* color: rgba(232, 232, 232, 0.6); */
    font-size: 0.9em;
}

.contact-form__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form__field--half {
    min-width: 0;
}

.contact-form__field label {
    font-size: var(--font-size-14);
    /* color: #e8e8e8; */
    font-weight: 500;
}

.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field textarea,
.contact-form__select {
    width: 100%;
    padding: 14px 18px;
    font-size: var(--font-size-12);
    font-family: inherit;
    /* color: #e8e8e8; */
    background: transparent;
    /* border: 1px solid rgba(232, 232, 232, 0.25); */
    border: 1px solid #18181899;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.contact-form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(232,232,232,0.7)' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    /* color: rgba(232, 232, 232, 0.5); */
    color: #18181899;
    font-size: var(--font-size-12);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus,
.contact-form__select:focus {
    outline: none;
    border-color: rgba(232, 232, 232, 0.5);
    box-shadow: 0 0 0 2px rgba(232, 232, 232, 0.08);
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

/* 图片上传：与输入框一致的深色圆角风格 */
.contact-form__file {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: rgba(232, 232, 232, 0.85);
    background: transparent;
    border: 1px solid rgba(232, 232, 232, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.contact-form__file:hover {
    border-color: rgba(232, 232, 232, 0.4);
}

.contact-form__file:focus {
    outline: none;
    border-color: rgba(232, 232, 232, 0.5);
    box-shadow: 0 0 0 2px rgba(232, 232, 232, 0.08);
}

.contact-form__file::file-selector-button {
    padding: 8px 14px;
    margin-right: 12px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1a1a1a;
    background: rgba(232, 232, 232, 0.9);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form__file::file-selector-button:hover {
    background: #fff;
}

.contact-form__actions {
    margin-top: 0.5rem;
    text-align: center;
}

.contact-form__submit {
    padding: 14px 32px;
    font-size: var(--font-size-12);
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    color: var(--color-surface-accent);
    background: var(--color-surface-dark);
    border: 1px solid var(--color-accent);
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 与 header 按钮（Get Malone）hover 一致：金底红字 */
.contact-form__submit:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

@media (max-width: 560px) {
    .contact-form__row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 提交成功 / 邮件订阅弹窗样式见 css/components.css — .site-modal */
