/* =============================================
   7번지대출 - 메인 스타일시트
   ============================================= */

/* ===== CSS Variables ===== */
:root { --primary-color: #0066FF; --primary-dark: #0052CC; --secondary-color: #FFD700; --accent-color: #FF6B35; --text-primary: #333; --text-secondary: #666; --bg-light: #f8f9fa; --bg-white: #ffffff; --border-color: #eee; --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15); --radius-sm: 5px; --radius-md: 10px; --radius-lg: 20px; --transition: all 0.3s ease; }

/* ===== Reset & Base Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; color: var(--text-primary); background-color: var(--bg-white); overflow-x: hidden; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3;}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ===== Table Styles ===== */
th, td { padding: 5px; text-align: center; }

/* ===== Header Styles ===== */
.header { background: var(--bg-white); padding: 1rem 0; border-bottom: 1px solid var(--border-color); position: fixed; width: 100%; top: 0; z-index: 1000; transition: transform 0.3s ease; }
.header-hidden { transform: translateY(-100%); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; flex-direction: row; width:50%; }
.logo { display: flex; align-items: center; font-size: 1.25rem; font-weight: bold; gap: 0.25rem; width: 20%; }
.logo span:first-child { color: var(--primary-color); }
.logo-img { width: 100%; }
.logo-text { display: flex; flex-direction: column; font-size: 1rem; }
.contact-info { display: flex; align-items: anchor-center; gap: 0.5rem; justify-content: flex-end; font-size: 1.125rem; font-weight: 600; }

/* ===== Main Banner Styles ===== */
.main-banner { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); margin-top: 70px; padding: 0 1.25rem; position: relative; overflow: hidden; min-height: 500px; }
.main-banner::before { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); animation: rotate 30s linear infinite; }
.banner-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 3rem; position: relative; z-index: 1; }
.banner-content { flex: 1; color: white; }
.banner-content h1 { font-size: 2.25rem; line-height: 1.3; margin-bottom: 1rem; animation: fadeInUp 0.8s ease; }
.banner-content p { font-size: 1.125rem; margin-bottom: 2rem; opacity: 0.9; animation: fadeInUp 0.8s ease 0.2s both; }
.cta-button { background: var(--bg-white); color: var(--primary-color); padding: 0.875rem 2rem; border: none; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); animation: fadeInUp 0.8s ease 0.4s both; position: relative; overflow: hidden; }
.cta-button::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: var(--primary-color); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.5s, height 0.5s; }
.cta-button:hover { color: white; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); }
.cta-button:hover::before { width: 300px; height: 300px; }
.cta-button span { position: relative; z-index: 1; }

/* ===== Features Section ===== */
.features { padding: 3rem 1.25rem; background: var(--bg-light); }
.features-container { max-width: 1200px; margin: 0 auto; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.feature-card { padding: 2rem; border-radius: var(--radius-md); position: relative; overflow: hidden; transition: var(--transition); transform: translateY(0); }
.feature-card::before { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: rgba(255, 255, 255, 0.1); transform: rotate(45deg); transition: all 0.5s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { top: -100%; right: -100%; }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 0.75rem; position: relative; z-index: 1; }
.feature-card p { font-size: 0.875rem; opacity: 0.9; position: relative; z-index: 1; }
.car-icon { width: 80px; height: 80px; }
.card-red { background: linear-gradient(135deg, #FF6B6B 0%, #C70039 100%); color: white; }
.card-yellow { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); color: var(--text-primary); }
.card-orange { background: linear-gradient(135deg, #FF6B35 0%, #FF4500 100%); color: white; }
.card-green { background: linear-gradient(135deg, #32CD32 0%, #006400 100%); color: white; }

/* ===== Reviews Section ===== */
.reviews-section { margin: 40px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.review-card { display: flex; justify-content: center; }
.review-bubble { background: #fff; padding: 1.5rem; border-radius: 20px; position: relative; box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1); border: 2px solid #f0f0f0; transition: all 0.3s ease; max-width: 300px; }
.review-bubble:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15); border-color: var(--primary-color); }
.review-bubble::before { content: ''; position: absolute; bottom: -10px; left: 30px; width: 0; height: 0; border-style: solid; border-width: 10px 15px 0 0; border-color: #fff transparent transparent transparent; filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.1)); }
.review-bubble p { font-size: 0.95rem; line-height: 1.5; color: #333; margin-bottom: 0.75rem; font-weight: 500; }
.review-bubble small { color: #666; font-size: 0.8rem; font-style: italic; }

/* ===== Calculator Section ===== */
.calculator { padding: 4rem 1.25rem; background: var(--bg-white); }
.calculator-container { max-width: 800px; margin: 0 auto; }
.calculator h2 { font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.calculator .subtitle { font-size: 1.5rem; color: var(--primary-color); text-align: center; margin-bottom: 2.5rem; }
.calculator-form { background: var(--bg-light); padding: 2.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group select { width: 100%; padding: 0.75rem; border: 2px solid transparent; border-radius: var(--radius-sm); font-size: 1rem; transition: var(--transition); background: var(--bg-white); }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1); }
.form-group input.error { border-color: #dc3545; }
.error-message { display: block; color: #dc3545; font-size: 0.875rem; margin-top: 0.25rem; }
.checkbox-group { margin: 1.5rem 0; }
.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.submit-button { width: 100%; padding: 1rem; background: var(--primary-color); color: white; border: none; border-radius: var(--radius-sm); font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.submit-button:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3); }
.submit-button:active { transform: translateY(0); }

/* ===== Loading Overlay ===== */
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.loading-spinner { text-align: center; color: white; }
.spinner { width: 50px; height: 50px; border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: white; border-radius: 50%; margin: 0 auto 1rem; animation: spin 1s linear infinite; }

/* ===== Toast Messages ===== */
.toast { position: fixed; top: 100px; right: 20px; padding: 1rem 1.5rem; border-radius: var(--radius-sm); color: white; font-weight: 500; box-shadow: var(--shadow-lg); transform: translateX(400px); transition: transform 0.3s ease; z-index: 9999; }
.toast.show { transform: translateX(0); }
.toast-success { background: #28a745; }
.toast-error { background: #dc3545; }
.toast-info { background: #17a2b8; }

/* ===== Chat Buttons ===== */
.chat-buttons { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 0.75rem; z-index: 999; }
.chat-button { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm); font-size: 1.25rem; background-color: white; }
.chat-button:hover { transform: scale(1.1); box-shadow: var(--shadow-lg); }
.chat-button.kakao { background: #FFE812; color: #000; }
.chat-button.instagram { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); color: white; }
.scroll-top { background: var(--text-secondary); color: white; display: flex; }

/* ===== Footer Styles ===== */
.footer { background: var(--bg-light); padding: 3rem 1.25rem; border-top: 1px solid var(--border-color); }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 1.5rem; }
.footer-text { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; }
.footer-bottom { background: #333; color: white; padding: 1.5rem; text-align: center; font-size: 0.875rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
.footer-links a { color: white; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-color); }

/* ===== Result Card Styles ===== */
.result-card { background: var(--bg-white); padding: 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-top: 2rem; }
.result-card h4 { text-align: center; color: var(--primary-color); margin-bottom: 1.5rem; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.result-item { text-align: center; padding: 1rem; background: var(--bg-light); border-radius: var(--radius-sm); }
.result-item.highlight { background: var(--primary-color); color: white; }
.result-item .label { display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.result-item.highlight .label { color: rgba(255, 255, 255, 0.8); }
.result-item .value { display: block; font-size: 1.25rem; font-weight: 600; }
.disclaimer { font-size: 0.75rem; color: var(--text-secondary); text-align: center; margin: 0; }

/* ===== Modal Styles ===== */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 10000; display: none; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; }
.modal.show { display: flex; }
.modal-body ul { margin-left: 1rem; padding-left: 1rem; margin-bottom: 1rem; }
.modal-body li { margin-bottom: 0.5rem; line-height: 1.6; }
.modal-body .privacy-notice { background: #f8f9fa; padding: 1rem; border-radius: 5px; margin: 1rem 0; border-left: 4px solid var(--primary-color); }
.modal-body .privacy-notice ul { margin-left: 1.5rem; }
.modal-body h3 { color: var(--primary-color); margin-top: 1.5rem; margin-bottom: 1rem; font-size: 1.1rem; }
.modal-body p { margin-bottom: 1rem; line-height: 1.6; }
.modal-body .contact-info { background: #f5f5f5; padding: 1rem; border-radius: 5px; margin: 1rem 0; }
.modal-body .contact-info ul { margin-left: 1.5rem; }
.modal-content { background: white; border-radius: var(--radius-md); max-width: 90%; max-height: 90%; width: 600px; position: relative; animation: slideIn 0.3s ease; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; border-bottom: 1px solid var(--border-color); background: var(--bg-light); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.modal-header h3 { margin: 0; color: var(--primary-color); }
.close { font-size: 1.5rem; font-weight: bold; cursor: pointer; color: var(--text-secondary); transition: var(--transition); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background-color: var(--bg-light); }
.close:hover { color: var(--primary-color); background-color: var(--bg-light); }
.modal-body { padding: 2rem; max-height: 500px; overflow-y: auto; }
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: var(--bg-light); border-radius: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== Status Badge Styles ===== */
.status-badge { display: inline-block; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500; border-radius: 12px; background: #28a745; color: white; }
.status-badge.status-pending { background: #ffc107; color: #333; }
.status-badge.status-rejected { background: #dc3545; color: white; }

/* ===== Animation Classes ===== */
.animate-ready { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.animate-in { opacity: 1; transform: translateY(0); }

/* ===== Keyframe Animations ===== */
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .header-container, .banner-container, .features-container, .calculator-container, .footer-container { padding: 0 2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    .header-container { padding: 0 0.5rem; }
    .logo { font-size: 1rem; width: 30%;}
    .logo-text { font-size: 0.6rem; }
    .contact-info { font-size: 0.7rem; }
    .main-banner { padding: 3rem 1rem; margin-top: 0; }
    .banner-container { flex-direction: column; text-align: center; }
    .banner-content { margin-top: 50%; }
    .banner-content h1 { font-size: 1.5rem; }
    .banner-image img{ width: 90%; height: auto; }
    .feature-cards { grid-template-columns: 1fr; }
    .calculator-form { padding: 1.5rem; }
    .calculator h2 { font-size: 1.5rem; }
    .calculator .subtitle { font-size: 1.125rem; }
    .chat-buttons { right: 10px; bottom: 10px; }
    .chat-button { width: 60px; height: 60px; }
    .footer-links { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .cta-button { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
    .submit-button { font-size: 1rem; }
}

/* ===== Print Styles ===== */
@media print {
    .header, .chat-buttons, .footer-bottom, .modal { display: none; }
    .main-banner { margin-top: 0; padding: 2rem 0; }
    .footer { border-top: 2px solid #000; }
}