/* ===================================
   INQUIRY PAGE - 통합 CSS
   =================================== */

/* 기본 컨테이너 스타일 */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

.page-container {
    width: 100%;
    max-width: 100vw;
    margin-top: 280px;
}

.content-section {
    width: 100%;
    max-width: 100vw;
    padding: 20px 0;
}

.section-wrapper {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px;
}

.section-side {
    width: 400px;
    flex-shrink: 0;
    min-width: 0;
}

.section-content {
    flex: 1;
    position: relative;
    min-width: 0;
    width: 100%;
}

/* 모든 이미지 반응형 처리 */
img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   TYPOGRAPHY & COMMON ELEMENTS
   =================================== */

.side-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.history-number {
    font-size: 18px;
    color: #ffcd3c;
    display: block;
}

.header-title-2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
}

.space-20 {
    margin: 20px 0;
}

/* ===================================
   INQUIRY FORM STYLES
   =================================== */

.inquiry-content {
    width: 100%;
}

.inquiry-form-wrapper {
    max-width: 1400px;
}

.inquiry-form-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s ease;

    font-family: 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Helvetica Neue', 'Arial', 'Roboto', 'Segoe UI', 'Microsoft YaHei', sans-serif;
     }

.form-control:focus {
    outline: none;
    border-color: #FFB300;
    box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.2);
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* 문자 카운터 스타일 */
.char-count {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    text-align: right;
}

.btn-submit {
    background: #FFB300;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 140px;
}

.btn-submit:hover:not(:disabled) {
    background: #FFA000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 로딩 스피너 애니메이션 */
.btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* ===================================
   FIELD ERROR STYLES
   =================================== */

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.custom-alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid transparent;
}

.custom-alert.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.custom-alert.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.custom-alert.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================
   CONTACT & MAP STYLES
   =================================== */

.closing {
    margin-top: 100px;
    text-align: right;
}

.sep-line::before {
    position: absolute;
    top: 50%;
    display: inline-block;
    background: rgba(0, 0, 0, .4);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    content: "";
}

.map-container {
    width: 100%;
}

.location-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.company-info {
    display: flex;
    align-items: center;
}

.logo-area {
    width: 250px;
}

.logo-img {
    width: 100%;
    height: auto;
}

.address-area {
    flex: 1;
}

.address-detail {
    font-size: 14px;
    color: #666;
}

.contact-info {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.contact-info p {
    font-size: 14px;
    color: #666;
}

.contact-info i {
    margin-right: 8px;
    color: #999;
}

#map {
    width: 100%;
    height: 400px;
    margin-top: 30px;
}

/* ===================================
   TIMELINE STYLES
   =================================== */

.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-section {
    position: relative;
    padding-left: 50px;
    margin-bottom: 60px;
}

.timeline-section::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #eee;
}

.year-marker {
    top: 100px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    padding: 10px 0;
}

/* inquiry 페이지 전용 timeline 스타일 */
.inquiry-timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.inquiry-timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #666;
    border: 2px solid #fff;
}

.inquiry-timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.inquiry-timeline-item.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.timeline-date {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.timeline-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 1024px) {
    .section-wrapper {
        flex-direction: column;
        padding: 60px 20px;
    }

    .section-side {
        width: 100%;
        margin-bottom: 40px;
    }

    .inquiry-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {

    .contact{

        height: 200px !important;
    }

    .section-side {
        margin-bottom: 10px;
    }

    .page-container{
        margin-top: 150px !important;
    }


    .mobile-logo{
        background: white;
    }



    .page-container {
        margin-top: 250px;
    }

    .section-wrapper {
        padding: 40px 20px;
    }

    .section-side {
        width: 100%;
    }

    .side-title {
        font-size: 2rem;
    }

    .history-number {
        font-size: 16px;
    }

    .inquiry-form-wrapper {
        padding: 20px;
    }

    .header-title-2 {
        font-size: 1.25rem;
    }

    .form-control {
        padding: 10px 12px;
    }

    .btn-submit {
        padding: 12px 30px;
        font-size: 15px;
    }

    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .logo-area {
        width: 100px;
        border-right: none;
        padding-right: 0;
    }

    .address-area {
        padding-left: 0;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .timeline-section {
        padding-left: 30px;
    }

    .timeline-section::before {
        left: 15px;
    }

    .inquiry-timeline-item::before {
        left: -22px;
    }

    .year-marker {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page-container {
        margin-top: 200px;
    }

    .section-wrapper {
        padding: 30px 15px;
    }

    .side-title {
        font-size: 1.5rem;
    }

    .inquiry-form-wrapper {
        padding: 15px;
    }

    .header-title-2 {
        font-size: 1.1rem;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-control {
        padding: 8px 10px;
    }

    textarea.form-control {
        min-height: 100px;
    }
} 