/* contact.css - 문의하기 페이지 전용 스타일 */

.contact-section {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 20px 120px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.contact-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: keep-all;
}

/* 폼 컨테이너 */
.contact-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
    }
    .contact-header h1 {
        font-size: 28px;
    }
    .contact-header p {
        font-size: 15px;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

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

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

.form-group label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group label span.required {
    color: var(--primary-red);
    margin-left: 4px;
}

/* 입력 필드 기본 스타일 */
.form-control {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background-color: #ffffff;
    transition: all 0.25s ease;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231a1a1a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' class='lucide lucide-chevron-down'%3E%3Cpath d='m6 9 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 45px;
}

textarea.form-control {
    height: 180px;
    padding: 16px 18px;
    resize: none;
    line-height: 1.6;
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(255, 76, 59, 0.1);
}

/* 개인정보 수집 및 이용 동의 */
.agreement-box {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #f1f5f9;
}

.terms-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    height: 110px;
    overflow-y: auto;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.terms-container h4 {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.terms-container ul {
    padding-left: 18px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red);
    cursor: pointer;
}

/* 제출 버튼 */
.submit-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.btn-submit {
    width: 100%;
    max-width: 320px;
    height: 56px;
    border: none;
    background-color: var(--primary-red);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 76, 59, 0.3);
}

.btn-submit:hover:not(:disabled) {
    background-color: #e63e32;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 76, 59, 0.4);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* 로딩 스피너 */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-submit.loading .spinner {
    display: block;
}

.btn-submit.loading .btn-text {
    opacity: 0.8;
}

/* 결과 알림 오버레이 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background-color: #ffffff;
    max-width: 480px;
    width: 100%;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon.error {
    background-color: #fef2f2;
    color: #ef4444;
}

.modal-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    word-break: keep-all;
}

.modal-btn {
    width: 100%;
    height: 52px;
    border: none;
    background-color: var(--text-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn:hover {
    background-color: #000000;
}

/* 보안 문자 (CAPTCHA) 스타일 */
.captcha-box {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.captcha-box label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.captcha-box label span.required {
    color: var(--primary-red);
    margin-left: 4px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

#captchaCanvas {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
}

.btn-refresh-captcha {
    width: 44px;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background-color: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-refresh-captcha:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
    background-color: rgba(255, 76, 59, 0.05);
}

.captcha-input {
    flex: 1;
    max-width: 240px;
}

@media (max-width: 600px) {
    .captcha-container {
        flex-wrap: wrap;
    }
    .captcha-input {
        max-width: 100%;
        width: 100%;
    }
}
