/* Contact Page Styles - Figma Design Implementation */

@font-face {
    font-family: 'SEBANG Gothic';
    src: url('../fonts/SEBANG_Gothic_Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SEBANG Gothic';
    src: url('../fonts/SEBANG_Gothic_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SEBANG_Gothic_Bold';
    src: url('../fonts/SEBANG_Gothic_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.description-star {
    display: block;
}

.main-content {
    background: transparent;
    min-height: 100vh;
    color: #ffffff;
    padding-top: 0;
}

.contact {
    padding: 80px 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 컨택트 페이지 body 배경 */
body.contact-page {
    background: #1A1A1A;
}

/* 컨택트 폼 섹션 */
.contact-form-section {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    padding: 0 0 60px 0;
}

/* 컨택트 컨테이너 내 모든 텍스트 색상 (인풋 placeholder와 버튼 제외) */
.contact-container {
    color: #f6f6f6;
}

.contact-container h1,
.contact-container h2,
.contact-container h3,
.contact-container h4,
.contact-container h5,
.contact-container h6,
.contact-container p,
.contact-container span,
.contact-container div,
.contact-container label {
    color: #f6f6f6;
}

/* 인풋 placeholder는 원래 색상 유지 */
.contact-container input::placeholder,
.contact-container textarea::placeholder {
    color: #808080;
}

/* 버튼은 원래 색상 유지 */
.contact-container button {
    color: inherit;
}



.contact-container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 140px 4rem 0 4rem;
}

/* 구분선 */
.contact-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    position: relative;
}

.divider-line {
    width: 200px;
    height: 1px;
    background: #777777;
    margin: 0 20px;
}

.divider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 컨택트 제목 */
.contact-title {
    display: flex ;
    flex-direction: column ;
    align-items: flex-start ;
    text-align: left;
}

.contact-title h2 {
font-family: 'SEBANG Gothic';
font-style: normal;
font-weight: 700;
font-size: 71px;
display: flex;
align-items: center;
color: #f6f6f6;
text-shadow: 5px 0px 0px #FFC14D;
flex: none;
order: 0;
margin: 0;
align-self: stretch;
flex-grow: 0;
padding: 30px 0;
}

.contact-title p {
    font-family: '210 Soomyungjo', serif !important;
    font-weight: 400 !important;
    font-size: 25px !important;
    color: #fbfbfb ;
    letter-spacing: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* 설명 */
.contact-description {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 30px 0 60px 0;
}

.description-star {
    flex: none;
    order: 0;
    flex-grow: 0;
}

.description-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    order: 1;
}

.description-text p {
    font-family: 'Pretendard GOV', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #cccccc;
    line-height: 29px;
    letter-spacing: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

/* 폼 래퍼 */
.contact-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 0;
}

/* 폼 공지사항 */
.form-notice {
    font-family: 'SEBANG Gothic', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 25px;
}

/* 문장 형태 폼 */
.sentence-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

/* 문장 그룹 */
.form-sentence {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    gap: 8px;
}

/* 문장 텍스트 */
.contact-form-section .sentence-text {
    font-family: 'SEBANG Gothic', sans-serif;
    font-weight: 400;
    font-size: 30px;
    color: #f6f6f6 !important;
}

/* 입력 컨테이너 */
.input-container {
    display: inline-block;
}

.input-container input {
    background: transparent;
    border: 1px solid #777777;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 25px;
    color: #808080;
    outline: none;
    min-width: 200px;
    height: 50px;
    box-sizing: border-box;
}

.input-container input[required] {
    border: 1px solid #ffc14d;
}

.input-container input::placeholder {
    color: #cccccc;
}

.input-container input:focus {
    background: transparent;
    border-color: #ffc14d;
}

/* 파일 입력 컨테이너 */
.file-input-container {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 2px solid #ffc14d;
    border-radius: 0;
    padding: 8px 12px;
    min-width: 300px;
    position: relative;
}

.file-input-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-placeholder {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 16px;
    color: #ffffff;
    flex: 1;
}

.file-add-btn {
    background: #ffc14d;
    color: #000000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

/* 폼 상세 */
.form-detail {
    margin-top: 5px;
}

.contact-container .detail-text {
    font-family: 'SEBANG Gothic', sans-serif;
    font-weight: 400;
    font-size: 30px;
    color: #f6f6f6;
}

.textarea-container {
    width: 100%;
}

.textarea-container textarea {
    border: 2px solid #ffc14d;
    background-color: #f1f1f1;
    border-radius: 10px;
    border-radius: 10px;
    padding: 12px;
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 20px;
    color: #333333;
    outline: none;
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    resize: vertical;
    box-sizing: border-box;
}

.textarea-container textarea::placeholder {
    color: #cccccc;
}

/* 입력 그룹 스타일 */
.input-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.input-container {
    display: inline-block;
    position: relative;
}

.input-container input {
    background: transparent;
    border: 1px solid #777777;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 25px;
    color: #808080;
    outline: none;
    box-sizing: border-box;
    min-width: 120px;
}

.input-container input:focus {
    background: transparent;
    border-color: #ffc14d;
}

/* 참고사이트 컨테이너 */
.reference-sites-container {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.reference-site-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reference-site-input input[type="url"] {
    background: transparent;
    border: 1px solid #777777;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 25px;
    color: #808080;
    outline: none;
    min-width: 300px;
    flex: 1;
    height: 50px;
    box-sizing: border-box;
}

.reference-site-input input[type="url"]:focus {
    background: transparent;
    border-color: #ffc14d;
}

.reference-site-input input[type="url"]::placeholder {
    color: #cccccc;
}

.add-reference-btn {
    width: 35px;
    height: 35px;
    background: #ffc14d;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'SEBANG Gothic', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.add-reference-btn:hover {
    background: #e6a942;
    transform: scale(1.05);
}

.remove-reference-btn {
    width: 35px;
    height: 35px;
    background: #ff6b6b;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'SEBANG Gothic', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-reference-btn:hover {
    background: #e55555;
    transform: scale(1.05);
}

/* 폼 제출 섹션 */
.form-submit-section {    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0 0;
    gap: 40px;
}

.privacy-agreement {
    display: flex;
    align-items: center;
}

.privacy-text {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 14px;
    color: #ffffff;
}

.privacy-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.privacy-checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #777777;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.privacy-checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #ffc14d;
    border-color: #ffc14d;
}

.privacy-checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #1a1a1a;
    font-weight: bold;
    font-size: 14px;
}

a.privacy-link {
    color: #838383 !important;
    text-decoration: none !important;
}

a.privacy-link:visited {
    color: #838383 !important;
}

a.privacy-link:hover {
    color: #838383 !important;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666666;
}

.submit-btn:disabled:hover {
    background: #666666;
    transform: none;
}

.privacy-view-btn {
    background: none;
    border: none;
    color: #ffc14d;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    margin: 0 2px;
    transition: color 0.3s ease;
}

.privacy-view-btn:hover {
    color: #ffd700;
}

/* 개인정보처리방침 모달 */
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    pointer-events: none;
    background: transparent;
}

.privacy-modal[style*="display: block"] {
    pointer-events: auto;
}

.privacy-modal-content {
    background: #fbfbfb;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.privacy-modal-header {
    background: none;
    padding: 20px 30px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.privacy-modal-header h2 {
    color: #333333;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.privacy-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.privacy-modal-close img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.privacy-modal-close:hover {
    opacity: 0.7;
}

.privacy-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    color: #333333;
}

.privacy-intro {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333333;
}

.privacy-section {
    margin-bottom: 30px;
}

.privacy-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffc14d;
    border-bottom: 1px solid #ffc14d;
    padding-bottom: 5px;
}

.privacy-section p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #333333;
}

.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-section li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
    color: #333333;
}

.contact-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contact-info h4 {
    color: #ffc14d;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-item {
    display: flex;
    margin-bottom: 8px;
}

.contact-label {
    font-weight: 600;
    color: #333333;
    min-width: 80px;
    font-size: 14px;
}

.contact-value {
    color: #333333;
    font-size: 14px;
}

.submit-btn {
    background: #333333;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #222222;
    transform: translateY(-2px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    
    .contact-container {
        margin: 0 20px;
        padding: 0;
    }
    
    .contact-title h2 {
        font-size: 60px;
        line-height: 60px;
    }
    
    .contact-title p {
        font-size: 18px !important;
    }
    
    .contact-description {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .description-star {
        width: 80px !important;
        height: 80px !important;
    }
    
    .description-text p {
        font-size: 14px !important;
        line-height: 24px !important;
    }
    
    .form-notice {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .sentence-text {
        font-size: 20px;
        color: #f6f6f6;
    }
    
    .contact-form-section {
    padding: 180px 0 60px 0;
}

    .contact-form-section .sentence-text {
    font-size: 20px;
    color: #f6f6f6;
}


    .input-container input {
        font-size: 24px;
        padding: 12px 16px;
        min-width: 150px;
    }
    
    .reference-site-input input[type="url"] {
        min-width: 300px;
        font-size: 24px;
        padding: 12px 16px;
    }
    
    .add-reference-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .remove-reference-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .file-placeholder {
        font-size: 12px;
        padding: 12px 16px;
    }
    
    .file-add-btn {
        font-size: 16px;
        width: 32px;
        height: 32px;
    }
    
    .contact-container .detail-text {
        color: #f6f6f6;
        font-size: 25px;
        padding: 0 0 10px 0;
    
    }
    
    .textarea-container textarea {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .form-submit-section {
       flex-direction: row;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        padding: 20px 0 0 0;
    }
    
    .privacy-text {
        font-size: 14px;
    }
    
    .submit-btn {
        font-size: 16px;
        padding: 15px 30px;
    }
}

@media (max-width: 500px) {
    .contact-title {
        align-items: center;
        text-align: center;
    }

    .contact-title h2 {
        font-size: 45px;
        line-height: 48px;
        align-self: center;
    }

    .contact-title p {
        font-size: 16px !important;
    }
    
    .description-star {
        width: 60px !important;
        height: 60px !important;
    }
    
    .description-text p {
        font-size: 12px !important;
        line-height: 20px !important;
    }
    
    .form-notice {
        font-size: 11px;
        margin-bottom: 15px;
    }
    
    .sentence-text {
        font-size: 16px;
        color: #f6f6f6;
    }
    
    .input-container input {
        font-size: 16px;
        padding: 0px 10px;
        min-width: 120px;
    }
    
    .reference-site-input input[type="url"] {
        min-width: 250px;
        font-size: 20px;
        padding: 10px 12px;
    }
    
    .add-reference-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .remove-reference-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .file-placeholder {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .file-add-btn {
        font-size: 14px;
        width: 28px;
        height: 28px;
    }
    
    .contact-container .detail-text {
        font-size: 16px;
        color: #f6f6f6;
        padding: 0 0 10px 0;
    }
    
    .textarea-container textarea {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .privacy-text {
        font-size: 11px;
    }
    
    .submit-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Contact Header */
.contact-header {
    max-width: 800px;
}

.contact-title {
    font-family: 'SEBANG_Gothic_Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title-need {
    color: #ffffff;
    display: block;
}

.title-plainproven {
    color: #ffffff;
    display: block;
}

.contact-email {
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Contact Intro with Star */
.contact-intro {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 60px;
}

.star-decoration {
    flex-shrink: 0;
    margin-top: 8px;
}

.star-decoration svg {
    width: 60px;
    height: 60px;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 16px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Conversation Form */
.conversation-note {
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    color: #999999;
    margin-bottom: 32px;
}

.conversation-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
}

.conversation-text {
    color: #ffffff;
    white-space: nowrap;
}

.inline-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #444444;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 1.1rem;
    font-family: inherit;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.inline-input:focus {
    outline: none;
    border-bottom-color: #FFC14D;
}

.inline-input::placeholder {
    color: #666666;
    font-style: italic;
}

.inline-select {
    background: transparent;
    border: 1px solid #444444;
    border-radius: 4px;
    color: #ffffff;
    padding: 6px 32px 6px 12px;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: border-color 0.3s ease;
}

.inline-select:focus {
    outline: none;
    border-color: #FFC14D;
}

.inline-textarea {
    background: transparent;
    border: 1px solid #444444;
    border-radius: 4px;
    color: #ffffff;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
    min-width: 300px;
    min-height: 60px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.inline-textarea:focus {
    outline: none;
    border-color: #FFC14D;
}

.inline-textarea::placeholder {
    color: #666666;
    font-style: italic;
}

.file-upload-text {
    color: #FFC14D;
    font-size: 1rem;
}

.emoji {
    font-size: 1.2rem;
}

/* Form Bottom */
.contact-form {
    margin-top: 40px;
}

.form-bottom {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    max-width: 800px;
}

.form-message-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-message-group textarea {
    background: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 8px;
    color: #ffffff;
    padding: 20px;
    font-size: 1rem;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-message-group textarea:focus {
    outline: none;
    border-color: #FFC14D;
}

.form-message-group textarea::placeholder {
    color: #666666;
}

.form-disclaimer {
    color: #888888;
    font-size: 0.85rem;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.submit-button {
    background: #FFC14D;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-button:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 77, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .contact-title {
        font-size: 3rem;
    }
    
    .contact-intro {
        flex-direction: column;
        gap: 16px;
    }
    
    .star-decoration svg {
        width: 50px;
        height: 50px;
    }
    
    .conversation-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .inline-input,
    .inline-textarea {
        width: 100%;
        min-width: auto;
    }
    
    .form-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .submit-button {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 2.5rem;
    }
    
    .conversation-line {
        font-size: 1rem;
    }
    
    .inline-input,
    .inline-select,
    .inline-textarea {
        font-size: 1rem;
    }
}
