/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* PC 화면 좌우여백 150px 적용 */
@media (min-width: 1024px) {

    html,
    body {
        width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    .container,
    .form-container {
        padding: 0 150px !important;
        margin: 0 auto !important;
        max-width: none !important;
        width: 100vw !important;
        box-sizing: border-box !important;
    }

    .images-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .image-section {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .form-section {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        min-height: auto !important;
        position: relative;
        box-sizing: border-box !important;
    }

    .form-background {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .form-overlay {
        min-height: auto !important;
        padding: 20px 150px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .consultation-form {
        padding: 30px 40px !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        max-width: 800px !important;
        width: 100% !important;
    }


}

/* 이미지 컨테이너 */
.images-container {
    width: 100%;
    display: block;
    margin-bottom: 50px;
}

/* 이미지 섹션 */
.image-section {
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

.image-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    /* MP4→WebP 변환 손실 보정을 위한 화질 개선 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    filter: contrast(1.12) brightness(1.05) saturate(1.1);
    /* 렌더링 최적화 */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* 고해상도 이미지 지원 */
    object-fit: contain;
    object-position: center;
}

.image-section video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

/* 폼 컨테이너 */
.form-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    background: transparent;
}

/* 폼 섹션 */
.form-section {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    margin-top: 50px;
    margin-bottom: 0;
    padding-top: 50px;
    clear: both;
    display: block;
    overflow: hidden;
}

.form-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a4a4a 0%, #2c2c2c 100%);
    z-index: 1;
}

.form-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 50px 0;
}

.consultation-form {
    background: rgba(80, 80, 80, 0.9);
    padding: 60px 50px;
    border-radius: 15px;
    width: 100%;
    max-width: 700px;
    color: white;
    text-align: center;
}

.form-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    animation: gentleSparkle 2s ease-in-out infinite;
    letter-spacing: 1px;
}

@keyframes gentleSparkle {
    0% {
        text-shadow:
            0 0 8px rgba(255, 255, 255, 0.4),
            0 0 15px rgba(255, 255, 255, 0.3),
            0 0 25px rgba(255, 215, 0, 0.4),
            0 0 35px rgba(255, 215, 0, 0.2);
        opacity: 0.9;
        transform: scale(1);
    }

    50% {
        text-shadow:
            0 0 15px rgba(255, 255, 255, 0.7),
            0 0 25px rgba(255, 255, 255, 0.5),
            0 0 35px rgba(255, 215, 0, 0.6),
            0 0 45px rgba(255, 215, 0, 0.4),
            0 0 55px rgba(255, 215, 0, 0.2);
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.4),
            0 0 30px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
        opacity: 0.95;
        transform: scale(1);
    }
}

.form-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    color: #cccccc;
    line-height: 1.5;
}

.input-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    width: 100%;
    gap: 20px;
}

.input-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    min-width: 80px;
    text-align: left;
}

.form-input,
.form-textarea {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: #b8b8b8;
    color: #333;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #666;
    opacity: 1;
}

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

.form-input::-moz-placeholder,
.form-textarea::-moz-placeholder {
    color: #666;
    opacity: 1;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: #d0d0d0;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

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

.privacy-consent {
    margin: 30px 0;
}

.consent-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.consent-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.consent-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.consent-checkbox input[type="checkbox"]:checked {
    background: #4CAF50;
    border-color: #4CAF50;
}

.consent-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.consultation-btn {
    width: 50%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-top: 20px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
}

.consultation-btn:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ee0000 100%);
}

.consultation-btn:active {
    transform: scale(0.98);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: none;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.modal-content h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

.modal-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

/* 반응형 디자인 - 태블릿 */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }

    .form-container {
        padding: 0;
    }

    .images-container {
        margin-bottom: 0;
    }

    .image-section {
        margin-bottom: 0;
    }

    .form-section {
        min-height: auto;
        padding-top: 0;
        margin-top: 0;
    }

    .form-overlay {
        min-height: auto;
        padding: 0;
    }

    .consultation-form {
        padding: 40px 25px;
        margin: 0;
        border-radius: 15px;
    }

    .form-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .form-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .input-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        gap: 15px;
    }

    .input-label {
        font-size: 15px;
        min-width: 70px;
        text-align: left;
    }

    .form-input,
    .form-textarea {
        flex: 1;
        padding: 14px 18px;
        font-size: 16px;
        min-height: 44px;
        background: #b8b8b8;
        color: #333;
        border: none;
    }

    .form-textarea {
        min-height: 100px;
    }

    .consultation-btn {
        width: 85%;
        padding: 16px 32px;
        font-size: 18px;
        min-height: 48px;
    }

    .consent-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 20px 15px;
    }

    .consent-checkbox input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 22px;
        height: 22px;
        border: 2px solid #ccc;
        border-radius: 4px;
        background: transparent;
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
    }

    .consent-checkbox input[type="checkbox"]:checked {
        background: #4CAF50 !important;
        border-color: #4CAF50 !important;
    }

    .consent-checkbox input[type="checkbox"]:checked::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 14px;
        font-weight: bold;
    }

    .modal-content {
        width: 90%;
        padding: 25px;
        margin: 10% auto;
    }

    .modal-content h3 {
        font-size: 22px;
    }

    .modal-content p {
        font-size: 15px;
    }
}

/* 반응형 디자인 - 모바일 */
@media (max-width: 480px) {
    .container {
        padding: 0;
    }

    .form-container {
        padding: 0;
    }

    .images-container {
        margin-bottom: 0;
    }

    .image-section {
        margin-bottom: 0;
    }

    .form-section {
        min-height: auto;
        margin-top: 0;
        padding-top: 0;
    }

    .form-overlay {
        min-height: auto;
        padding: 0;
    }

    .consultation-form {
        padding: 30px 20px;
        border-radius: 12px;
        margin: 0;
    }

    .form-title {
        font-size: 28px;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .form-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
        line-height: 1.4;
    }

    .input-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
        gap: 12px;
    }

    .input-label {
        font-size: 14px;
        min-width: 60px;
        text-align: left;
    }

    .form-input,
    .form-textarea {
        flex: 1;
        padding: 12px 16px;
        font-size: 16px;
        min-height: 44px;
        border-radius: 8px;
        background: #b8b8b8;
        color: #333;
        border: none;
    }

    .form-textarea {
        min-height: 90px;
    }

    .consultation-btn {
        width: 100%;
        padding: 14px 28px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 25px;
        margin-top: 15px;
    }

    .consent-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 18px 12px;
        text-align: left;
    }

    .consent-text,
    .checkbox-label {
        font-size: 14px;
        line-height: 1.3;
    }

    .consent-checkbox {
        justify-content: flex-end;
    }

    .consent-checkbox input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #ccc;
        border-radius: 4px;
        background: transparent;
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
    }

    .consent-checkbox input[type="checkbox"]:checked {
        background: #4CAF50 !important;
        border-color: #4CAF50 !important;
    }

    .consent-checkbox input[type="checkbox"]:checked::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 12px;
        font-weight: bold;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 20% auto;
        border-radius: 12px;
    }

    .modal-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .modal-content p {
        font-size: 14px;
        line-height: 1.4;
    }

    .close {
        font-size: 24px;
    }
}

/* 초소형 모바일 (아이폰 SE 등) */
@media (max-width: 375px) {
    .container {
        padding: 0;
    }

    .form-container {
        padding: 0;
    }

    .images-container {
        margin-bottom: 0;
    }

    .image-section {
        margin-bottom: 0;
    }

    .consultation-form {
        padding: 25px 15px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-subtitle {
        font-size: 13px;
    }

    .input-row {
        gap: 10px;
    }

    .input-label {
        font-size: 13px;
        min-width: 50px;
        text-align: left;
    }

    .form-input,
    .form-textarea {
        padding: 10px 14px;
        font-size: 16px;
        background: #b8b8b8;
        color: #333;
        border: none;
    }

    .consultation-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* 로딩 스타일 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .consultation-btn {
    position: relative;
}

.loading .consultation-btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 개인정보처리방침 [보기] 링크 스타일 */
.privacy-view-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-left: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-view-link:hover {
    color: #ff4757;
    text-decoration: underline;
}

/* 개인정보처리방침 모달 스타일 */
.privacy-modal {
    z-index: 1001;
}

.privacy-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: 5% auto;
    position: relative;
}

.privacy-modal-content h3 {
    color: #333;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #ff6b6b;
    padding-bottom: 15px;
}

.privacy-content {
    line-height: 1.6;
    color: #555;
}

.privacy-content h4 {
    color: #333;
    font-size: 20px;
    margin: 30px 0 15px 0;
    padding-left: 10px;
    border-left: 4px solid #ff6b6b;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 5px;
}

.privacy-content p {
    margin: 12px 0;
    font-size: 15px;
    padding-left: 10px;
}

.privacy-content a {
    color: #ff6b6b;
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.privacy-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-close:hover {
    color: #ff6b6b;
}

/* 모바일 개인정보처리방침 모달 */
@media (max-width: 768px) {
    .privacy-modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 25px 20px;
        margin: 10% auto;
    }

    .privacy-modal-content h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .privacy-content h4 {
        font-size: 18px;
        margin: 25px 0 12px 0;
        padding: 8px 12px;
    }

    .privacy-content p {
        font-size: 14px;
        margin: 10px 0;
        padding-left: 8px;
    }

    .privacy-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }

    .privacy-view-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .privacy-modal-content {
        width: 98%;
        padding: 20px 15px;
        margin: 8% auto;
    }

    .privacy-modal-content h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .privacy-content h4 {
        font-size: 16px;
        margin: 20px 0 10px 0;
        padding: 6px 10px;
    }

    .privacy-content p {
        font-size: 13px;
        margin: 8px 0;
        padding-left: 5px;
    }

    .privacy-view-link {
        font-size: 12px;
    }
}

/* 회사정보 푸터 스타일 */
footer.company-footer {
    background: #2c2c2c;
    color: #ddd;
    padding: 40px 20px 30px;
    margin-top: 0;
    border-top: 1px solid #444;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo .company-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.company-logo {
    margin-bottom: 25px;
    text-align: center;
}

.company-logo h2 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.business-info {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.company-details {
    line-height: 1.6;
    text-align: left;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 13px;
    gap: 8px;
}

.detail-label {
    color: #ccc;
    font-weight: 500;
}

.separator {
    color: #666;
    margin: 0 4px;
}

/* 모바일 푸터 스타일 */
@media (max-width: 768px) {

    .company-footer {
        padding: 30px 15px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-logo .company-logo {
        height: 50px;
    }

    .company-details {
        text-align: center;
    }

    .company-logo h2 {
        font-size: 20px;
    }

    .detail-row {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        font-size: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .detail-row>span {
        display: inline;
        width: auto;
    }

    .separator {
        display: inline;
    }
}

@media (max-width: 480px) {

    .company-footer {
        padding: 25px 12px 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-logo .company-logo {
        height: 40px;
    }

    .company-details {
        text-align: center;
    }

    .company-logo h2 {
        font-size: 18px;
    }

    .detail-row {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        margin-bottom: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .detail-row>span {
        display: inline;
        width: auto;
    }

    .separator {
        display: inline;
    }
}

/* PC 전용 푸터 150px 좌우여백 - 최종 우선순위 */
@media only screen and (min-width: 1024px) {

    footer.company-footer {
        background: #ffffff !important;
        padding: 0 !important;
        border-top: none !important;
    }

    .footer-content {
        background: #2c2c2c !important;
        border-top: 1px solid #444 !important;
        max-width: calc(100% - 300px) !important;
        margin: 0 150px !important;
        padding: 40px 20px 30px !important;
    }
}