/* Quote Section */
.quote-section {
    min-height: calc(100vh - 150px);
    padding: 120px 0 80px;
    background: var(--bg-secondary);
}

.quote-content {
    max-width: 900px;
    margin: 0 auto;
}

.quote-header {
    text-align: center;
    margin-bottom: 60px;
}

.quote-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: var(--gradient-elegant);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quote-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Quote Card */
.quote-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.quote-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 2rem;
}

/* Language Selector */
.language-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: end;
}

.language-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.language-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.language-select {
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.language-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.5rem;
}

/* Text Input */
.text-input-wrapper {
    position: relative;
}

.translation-textarea {
    width: 100%;
    min-height: 300px;
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
}

.translation-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.char-counter {
    text-align: right;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 10px;
    color: #0369a1;
    font-size: 0.9rem;
}

.input-notice i {
    color: #0ea5e9;
}

/* Quote Summary */
.quote-summary {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.summary-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 1rem;
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

.summary-row.total {
    padding-top: 1.5rem;
}

.summary-row.total .summary-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-row.total .summary-value.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Quote Notice */
.quote-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #92400e;
    margin-bottom: 2rem;
}

.quote-notice i {
    color: #f59e0b;
    font-size: 1.2rem;
}

/* Submit Button */
.btn-quote-submit {
    width: 100%;
    padding: 1.25rem;
    background: #94a3b8;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-quote-submit.active {
    background: var(--gradient-primary);
    cursor: pointer;
}

.btn-quote-submit.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.btn-quote-submit i {
    transition: transform 0.3s ease;
}

.btn-quote-submit.active:hover i {
    transform: translateX(5px);
}

/* 반응형 */
@media (max-width: 768px) {
    .quote-section {
        padding: 100px 0 60px;
    }

    .quote-title {
        font-size: 2rem;
    }

    .language-selector {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .language-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .card-header,
    .card-body {
        padding: 1.5rem;
    }

    .translation-textarea {
        min-height: 250px;
    }

    .quote-summary {
        padding: 1.5rem;
    }

    .summary-row.total .summary-value.price {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .quote-content {
        padding: 0 1rem;
    }

    .summary-row.total .summary-value.price {
        font-size: 1.5rem;
    }
}

/* ===== Contact Section ===== */
/* ===== Contact Section ===== */
.contact {
    background: var(--bg-secondary);
    padding: 80px 0;
}

/* 견적 섹션 없이 단독 페이지로 표시될 때 */
.contact.contact-page {
    padding-top: 120px;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: var(--gradient-elegant);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group-contact label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group-contact input,
.form-group-contact textarea {
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-primary);
    resize: vertical;
}

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

.form-group-contact input:focus,
.form-group-contact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* File Input */
.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-input-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
}

.file-input-label i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.file-input-label span {
    font-weight: 500;
}

.file-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f0f9ff;
    border-radius: 10px;
    color: #0369a1;
    font-size: 0.85rem;
}

.file-notice i {
    color: #0ea5e9;
    font-size: 1rem;
}

/* Inquiry Type Button Group */
.inquiry-type-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.inquiry-type-btn {
    flex: 1;
    min-width: 130px;
    cursor: pointer;
}

.inquiry-type-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.inquiry-type-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.inquiry-type-btn input:checked + span {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99,102,241,0.07), rgba(139,92,246,0.07));
    color: var(--primary-color);
    font-weight: 600;
}

.inquiry-type-btn:hover span {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .inquiry-type-group {
        flex-direction: column;
    }
    .inquiry-type-btn {
        min-width: unset;
    }
}

/* Contact Submit Button */
.btn-contact-submit {
    width: 100%;
    padding: 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-contact-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.btn-contact-submit i {
    transition: transform 0.3s ease;
}

.btn-contact-submit:hover i {
    transform: translateX(5px);
}

/* 반응형 - Contact */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .contact-title {
        font-size: 2rem;
    }

    .form-row-contact {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .file-input-label {
        flex-direction: column;
        text-align: center;
    }
}

/* Contact Form Alerts */
.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-alert p {
    margin: 4px 0 0;
}

.contact-alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}

.contact-alert-success i {
    color: #22c55e;
}

.contact-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.contact-alert-error i {
    color: #ef4444;
}

.input-error {
    border-color: #ef4444 !important;
}

/* ===== 문의 완료 팝업 ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
}

.popup-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-icon.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.popup-icon.success i {
    font-size: 3rem;
    color: #10b981;
}

@keyframes successBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-10px) scale(1.05); }
}

.popup-overlay.active .popup-icon.success {
    animation: successBounce 0.6s ease;
}

.popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--gradient-elegant);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    word-break: keep-all;
}

.popup-close-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popup-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.popup-close-btn i {
    transition: transform 0.3s ease;
}

.popup-close-btn:hover i {
    transform: scale(1.2);
}

@media (max-width: 480px) {
    .popup-content {
        padding: 2rem 1.5rem;
    }

    .popup-icon {
        width: 80px;
        height: 80px;
    }

    .popup-icon.success i {
        font-size: 2.5rem;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-message {
        font-size: 1rem;
    }
}
