/* ==========================================================================
   METIVATOR — Contact page (form + service options + privacy + submit)
   pie3d ContactForm.tsx → 정적 CSS 변환
   ========================================================================== */

.contact {
    padding: 100px 60px 160px;
    background: #ffffff;
}
@media screen and (max-width: 768px) {
    .contact { padding: 24px 20px 80px; }
}
.contact__header {
    max-width: 1240px;
    margin: 0 auto;
    padding-bottom: 40px;
    text-align: center;
}
.contact__title {
    font-size: 36px;
    font-weight: 900;
    color: #141414;
    margin: 0 0 20px;
    letter-spacing: 0.02em;
}
@media screen and (max-width: 768px) {
    .contact__title { font-size: 24px; margin-bottom: 12px; }
}
.contact__desc {
    color: #8c8c8c;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}
@media screen and (max-width: 768px) {
    .contact__desc { font-size: 14px; }
}
.contact__form {
    max-width: 1240px;
    margin: 80px auto 0;
}
@media screen and (max-width: 768px) {
    .contact__form { margin-top: 32px; }
}
.contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 50px;
}
@media screen and (max-width: 768px) {
    .contact__row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
}
.contact__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact__group--full { margin-bottom: 40px; }
@media screen and (max-width: 768px) {
    .contact__group { gap: 4px; }
    .contact__group--full { margin-bottom: 16px; padding-top: 16px; }
}
.contact__label {
    color: #141414;
    font-size: 15px;
    font-weight: 500;
}
@media screen and (max-width: 768px) {
    .contact__label { font-size: 14px; }
}
.contact__required { color: #fc5f5f; }

.contact__input {
    padding: 20px 0;
    border: none;
    border-bottom: 1.5px solid #e6e8eb;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    font-family: inherit;
    color: #141414;
    transition: border-color 0.2s;
}
.contact__input:focus {
    outline: none;
    border-color: #8c8c8c;
}
.contact__input::placeholder {
    color: #bfbfbf;
    font-weight: 500;
}
@media screen and (max-width: 768px) {
    .contact__input {
        padding: 14px 0;
        font-size: 16px;
        font-weight: 400;
    }
    .contact__input::placeholder { font-weight: 400; }
}

.contact__textarea {
    border: 1.5px solid #e6e8eb;
    border-radius: 10px;
    padding: 24px 20px;
    resize: vertical;
    min-height: 228px;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    font-family: inherit;
    color: #141414;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.contact__textarea:focus {
    outline: none;
    border-color: #8c8c8c;
}
.contact__textarea::placeholder {
    color: #bfbfbf;
    font-weight: 500;
}
@media screen and (max-width: 768px) {
    .contact__textarea {
        font-size: 16px;
        font-weight: 400;
        padding: 16px 12px;
        border-radius: 6px;
        margin-top: 12px;
    }
}

.contact__service-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
@media screen and (max-width: 768px) {
    .contact__service-options { gap: 8px; margin-top: 12px; }
}
.contact__service-option {
    padding: 16px 30px;
    border: 1.5px solid #e6e8eb;
    border-radius: 10px;
    background: #ffffff;
    font-size: 18px;
    font-weight: 400;
    font-family: inherit;
    color: #8c8c8c;
    cursor: pointer;
    transition: all 0.2s;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact__service-option:hover {
    border-color: #8c8c8c;
    color: #595959;
}
.contact__service-option.is-active {
    border-color: #000000;
    background: #f5f5f5;
    color: #000000;
    font-weight: 600;
}
@media screen and (max-width: 768px) {
    .contact__service-option {
        padding: 12px 14px;
        font-size: 15px;
        height: auto;
        border-radius: 6px;
        border-width: 1px;
    }
}

.contact__submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}
@media screen and (max-width: 768px) {
    .contact__submit-row {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        margin-top: 12px;
    }
}

.contact__privacy {
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact__privacy label {
    cursor: pointer;
    color: #595959;
    font-size: 14px;
}
.contact__privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 1.5px solid #e6e8eb;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.contact__privacy input[type="checkbox"]:checked {
    background: #000000;
    border-color: #000000;
}
.contact__privacy input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
@media screen and (max-width: 768px) {
    .contact__privacy input[type="checkbox"] { width: 20px; height: 20px; }
    .contact__privacy input[type="checkbox"]:checked::after {
        left: 5px; top: 2px; width: 5px; height: 9px;
    }
}

.contact__submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 20px 30px;
    background: #000000;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s, transform 0.2s;
}
.contact__submit:hover:not(:disabled) {
    background: #222222;
    transform: translateY(-1px);
    color: #ffffff;
}
.contact__submit:disabled {
    background: #8c8c8c;
    cursor: not-allowed;
}
@media screen and (max-width: 768px) {
    .contact__submit {
        width: 100%;
        height: 44px;
        padding: 12px 16px;
        font-size: 16px;
        justify-content: center;
    }
}

/* === Server-rendered alerts (replaces JS modal) === */
.contact__alert {
    max-width: 600px;
    margin: 24px auto 0;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
}
.contact__alert--success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.contact__alert--error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.contact__alert a {
    color: inherit;
    text-decoration: underline;
}

.contact__errors {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
.contact__errors li {
    color: #fc5f5f;
    font-size: 13px;
}
