/**
 * Contact Page Styles
 * 문의하기 페이지 스타일
 */

/* ============================================
   Hero Section - 상단 타이틀 영역
   ============================================ */
.contact-hero {
    padding: 140px 20px 60px;
    background-color: #ffffff;
    text-align: center;
}

.contact-hero__container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero__title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-hero__description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   Contact Form Section - 폼 영역
   ============================================ */
.contact-form-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.contact-form-section__container {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Form - 폼 영역 */
.contact-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    color: #1a1a1a;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox */
.form-group--checkbox {
    margin-top: 8px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox__label {
    font-size: 14px;
    color: #666;
}

/* Submit Button */
.form-submit {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #1a1a1a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 8px;
}

.form-submit:hover {
    background-color: #333;
}

.form-submit:active {
    transform: translateY(1px);
}

/* ============================================
   Contact Methods Section - 연락 방법 영역
   ============================================ */
.contact-methods-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.contact-methods-section__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Individual Contact Method */
.contact-method {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-method__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2;
    margin-bottom: 8px;
}

.contact-method__icon svg {
    width: 36px;
    height: 36px;
}

.contact-method__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.contact-method__description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.contact-method__link {
    font-size: 16px;
    font-weight: 600;
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-method__link:hover {
    color: #357abd;
    text-decoration: underline;
}

/* ============================================
   Responsive Design - 반응형 디자인
   ============================================ */

/* Tablet - 1024px 이하 */
@media (max-width: 1024px) {
    .contact-hero__title {
        font-size: 40px;
    }

    .contact-methods-section__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile - 768px 이하 */
@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 20px 40px;
    }

    .contact-hero__title {
        font-size: 36px;
    }

    .contact-hero__description {
        font-size: 16px;
    }

    .contact-form-section {
        padding: 40px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .contact-methods-section {
        padding: 60px 20px;
    }

    .contact-methods-section__container {
        gap: 30px;
    }
}

/* Small Mobile - 480px 이하 */
@media (max-width: 480px) {
    .contact-hero {
        padding: 40px 16px 30px;
    }

    .contact-hero__title {
        font-size: 28px;
    }

    .contact-hero__description {
        font-size: 14px;
    }

    .contact-form-section {
        padding: 30px 16px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .contact-form__form {
        gap: 20px;
    }

    .form-input,
    .form-textarea {
        font-size: 14px;
        padding: 10px 14px;
    }

    .form-submit {
        padding: 12px 24px;
        font-size: 14px;
    }

    .contact-methods-section {
        padding: 40px 16px;
    }

    .contact-methods-section__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-method__icon {
        width: 50px;
        height: 50px;
    }

    .contact-method__icon svg {
        width: 30px;
        height: 30px;
    }

    .contact-method__title {
        font-size: 18px;
    }

    .contact-method__description {
        font-size: 13px;
    }

    .contact-method__link {
        font-size: 14px;
    }
}

/* ============================================
   Form Validation States - 폼 검증 상태
   ============================================ */
.form-input.error,
.form-textarea.error {
    border-color: #e74c3c;
}

.form-input.success,
.form-textarea.success {
    border-color: #2ecc71;
}

.form-error-message {
    font-size: 13px;
    color: #e74c3c;
    margin-top: 4px;
}

.form-success-message {
    padding: 16px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Loading State */
.form-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-submit.loading {
    position: relative;
    color: transparent;
}

.form-submit.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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