/* ==================== Contact Page Styles ==================== */

/* Contact 페이지 배경 */
.page-template-page-contact {
    background-color: #000000 !important;
    background: #000000 !important;
}

.page-template-page-contact #page,
.page-template-page-contact .site,
.page-template-page-contact .site-main,
.page-template-page-contact .content-area,
.page-template-page-contact #primary,
.page-template-page-contact #main {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Contact 페이지 메인 컨테이너 */
.contact-page {
    background-color: #000000;
    min-height: 100vh;
    padding: 80px 20px 100px;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Contact 제목 */
.contact-title {
    font-size: 7.7vw !important;
    font-weight: 800 !important;
    line-height: 1.04 !important;
    letter-spacing: -0.03em !important;
    padding-top: 7rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 80px;
}

/* Contact 부제목 */
.contact-subtitle {
    font-size: var(--font-size-3xl)!important;
    font-weight: 750;
    line-height: 1.4;
    color: #ffffff;
    text-align: left;
    margin-bottom: 40px;
    word-break: keep-all;
    word-wrap: break-word;
}

.contact-subtitle-small {
    font-size: var(--font-size-lg)!important;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffffd4;
}

/* 필수 항목 안내 */
.contact-required-notice {
    font-size: 14px;
    color: #999999;
    text-align: left;
    margin-bottom: 20px;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.form-group label:not(.input-label) {
    display: block;
    margin-bottom: 12px;
}

.required {
    color: #0057ff;
    margin-left: 4px;
}

.input-group,
.textarea-group {
    display: flex;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-group {
    align-items: center;
}

.textarea-group {
    align-items: stretch;
}

.input-group:focus-within,
.textarea-group:focus-within {
    border-color: #555555;
    background-color: #333333;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 18px 24px;
    margin: 0;
    min-width: 140px;
    box-sizing: border-box;
}

.input-field {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Pretendard Variable', sans-serif;
    padding: 18px 24px;
    box-sizing: border-box;
}

.input-field::placeholder {
    color: #666666;
}

.input-field:focus {
    outline: none;
}

.textarea-field {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

/* Privacy Checkbox */
.privacy-group {
    margin-bottom: 32px;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
}

.privacy-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    left: 0;
    top: 2px;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.privacy-checkbox:hover .checkmark {
    background-color: #333333;
}

.privacy-checkbox input:checked ~ .checkmark {
    background-color: #ffffff;
    border-color: #ffffff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.privacy-checkbox input:checked ~ .checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-text {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
}

/* Submit Button */
.submit-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.submit-button {
    padding: 18px 48px;
    background-color: #ffffff;
    border: none;
    border-radius: 60px;
    color: #000000;
    font-size: var(--font-size-lg) !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard Variable', sans-serif;
    display: inline-block;
    width: auto;
}

.submit-button:hover {
    background-color: #f0f0f0;
    
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background-color: #666666;
    color: #999999;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.form-message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .contact-page {
        padding: 60px 16px 80px;
    }

    .contact-title {
        font-size: 12vw !important;
        padding: 5rem 16px 0;
        margin-bottom: 30px;
        text-align: left;
    }

    .contact-required-notice {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .input-label {
        min-width: 120px;
        padding: 16px 18px;
        font-size: 15px;
    }

    .input-field {
        padding: 16px 18px;
        font-size: 14px;
    }

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

    .privacy-text {
        font-size: 13px;
    }

    .submit-button {
        font-size: 16px;
        padding: 16px 40px;
    }

    .contact-subtitle-small {
        line-height: 1.6;
        display: inline-block;
        margin-top: 10px;
    }

    .mobile-br, .contact-menu-item {
        display: block;
    }

}

@media (max-width: 480px) {   
    .contact-subtitle {
        font-size: var(--font-size-2xl)!important;
    }

    .contact-subtitle-small, label {
        font-size: var(--font-size-sm)!important;
    }

    .contact-page {
        padding: 50px 12px 60px;
    }

    .input-label {
        min-width: 95px;
        padding: 14px 15px;
    }

    .input-field {
        padding: 14px 0;
    }

   
    .footer-copyright {
        font-size:12px;
        opacity: 0.5;
        margin-top: 10px;
    }

    .portfolio-filters {
        gap:0.4rem;
    }

   
}


