.contact-page {
    background-color: #ffffff;
}

.contact-inner {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.contact-header {
    margin-bottom: 2rem;
}

.contact-title {
    margin: 0 0 0.75rem;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #111827;
}

.contact-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b7280;
}

.contact-alert {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.contact-alert-success {
    background-color: #f9fafb;
    color: #111827;
}

.contact-alert-error {
    background-color: #f3f4f6;
    color: #111827;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}

.contact-required {
    margin-left: 0.125rem;
    color: #6b7280;
    font-weight: 500;
}

.contact-input,
.contact-select,
.contact-textarea {
    display: block;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #111827;
    font: inherit;
    transition: border-color 0.15s ease;
}

.contact-input,
.contact-select {
    height: 2.75rem;
    padding: 0 0.875rem;
}

.contact-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

.contact-select:disabled {
    color: #9ca3af;
    background-color: #f9fafb;
}

.contact-region-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.contact-textarea {
    min-height: 10rem;
    padding: 0.75rem 0.875rem;
    resize: vertical;
    line-height: 1.6;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
    outline: none;
    border-color: #a3a3a3;
}

.contact-input[readonly] {
    background-color: #f9fafb;
}

.contact-phone-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
}

.contact-phone-sep {
    color: #9ca3af;
    text-align: center;
}

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

.contact-address-zip-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.contact-input-zip {
    max-width: 10rem;
}

.contact-btn-primary,
.contact-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.contact-btn-primary {
    border: none;
    background-color: #171717;
    color: #ffffff;
}

.contact-btn-primary:hover {
    background-color: #262626;
}

.contact-btn-secondary {
    flex-shrink: 0;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #111827;
    white-space: nowrap;
}

.contact-btn-secondary:hover {
    background-color: #f9fafb;
}

.contact-notice {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #9ca3af;
}

.contact-actions {
    margin-top: 0.25rem;
}

.contact-field-error {
    margin: 0;
    font-size: 0.8125rem;
    color: #b91c1c;
}

.contact-field.has-error .contact-input,
.contact-field.has-error .contact-select,
.contact-field.has-error .contact-textarea {
    border-color: #fca5a5;
}

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

@media (min-width: 768px) {
    .contact-inner {
        padding-top: 4rem;
        padding-bottom: 5rem;
    }

    .contact-title {
        font-size: 2.25rem;
    }
}

/* 스팸 허니팟 — 사람에게 보이지 않게 화면 밖으로 보낸다.
   display:none 을 쓰지 않는 이유는 숨겨진 필드를 무시하는 봇에게도
   걸리게 하기 위해서다. 스크린 리더는 aria-hidden 으로 건너뛴다. */
.contact-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
