@charset "utf-8";

/* 견적 문의 페이지 전용 스타일 */

/* 페이지 히어로 섹션 */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    padding: 120px 0 80px;
    margin-bottom: 60px;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
    opacity: 0.3;
}

.page-hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: #ffffff;
    clip-path: ellipse(120% 100% at 50% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hero-content p {
    font-size: 1.4em;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 섹션 기본 스타일 */
.page-content section {
    margin-bottom: 80px;
}

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

.section-header h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.section-header p {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-top: 20px;
}

/* 혜택 그리드 */
.contact-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.benefit-item {
    background: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    transition: all 0.5s ease;
}

.benefit-item:hover::before {
    top: 0;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.benefit-item i {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 20px;
}

.benefit-item h4 {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.benefit-item p {
    font-size: 1em;
    color: #7f8c8d;
    line-height: 1.5;
}

/* 견적 문의 폼 */
.estimate-form {
    background: #f8f9fa;
    padding: 60px 0;
    border-radius: 20px;
}

.estimate-form-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.estimate-form-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05em;
    transition: color 0.3s ease;
}

.form-group:hover label {
    color: #3498db;
}

.required {
    color: #e74c3c;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #bdc3c7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

/* 에러 상태 */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* 성공 상태 */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #27ae60;
}

/* 폼 액션 버튼 */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-submit,
.btn-reset {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

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

.btn-reset {
    background: #ecf0f1;
    color: #7f8c8d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-reset:hover {
    background: #bdc3c7;
    color: #fff;
}

/* 로딩 상태 */
.btn-submit.loading {
    color: transparent;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

/* 연락처 정보 그리드 */
.contact-info {
    margin-top: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.contact-item i {
    font-size: 2.5em;
    color: #3498db;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
}

.contact-item h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 1.1em;
    color: #34495e;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-item span {
    font-size: 0.9em;
    color: #95a5a6;
}

/* 성공 메시지 */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: none;
    animation: slideDown 0.5s ease;
}

.success-message.show {
    display: block;
}

/* 애니메이션 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* 반응형 디자인 */
@media (max-width: 991px) {
    .contact-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-content p {
        font-size: 1.1em;
    }
    
    .contact-benefits,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .estimate-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-submit,
    .btn-reset {
        width: 100%;
    }
}

/* 프린트 스타일 */
@media print {
    .page-hero {
        display: none;
    }
    
    .benefit-item,
    .contact-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .form-actions {
        display: none;
    }
}