/*==================================================
  CHECKIT - Main Stylesheet (Restored & Updated)
==================================================*/

/* ------------------- 
 * 1. Root & Base Styles
 * ------------------- */
:root {
    --primary-color: #2ECC71; 
    --primary-dark: #27ae60;
    --hero-bg-color: #f0fdf4; 
    --text-color: #333;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #fff;
    --font-family: 'Pretendard', sans-serif;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.07);
    --border-radius-md: 12px;
    /* Chatbot colors */
    --chatbot-primary: #00c795;
    --chatbot-bg: #ffffff;
    --chatbot-header-text: #ffffff;
    --bot-message-bg: #e0f8e9; /* Light green for bot messages */
    --user-message-bg: #f1f1f1; /* Light grey for user messages */
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
}

body { font-family: var(--font-family); color: var(--text-color); line-height: 1.7; margin: 0; padding: 0; background-color: var(--white); text-align: center; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; }
.section-subtitle { font-size: 1.15rem; color: var(--text-light); max-width: 750px; margin: 0 auto 60px; }
.alternate-bg { background-color: var(--bg-light); }
.cta-button-primary { display: inline-block; background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); color: var(--white); padding: 16px 35px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform 0.3s, box-shadow 0.3s; box-shadow: var(--shadow-sm); }
.cta-button-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3); }
.cta-button-secondary { display: inline-block; background-color: var(--white); color: var(--primary-color); padding: 12px 25px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid #e0e0e0; transition: all 0.3s; }
.cta-button-secondary:hover { background-color: var(--primary-color); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46, 204, 113, 0.2); }

/* ------------------- 
 * 2. Header
 * ------------------- */
#main-header { background: var(--white); padding: 20px 0; border-bottom: 1px solid #e9e9e9; position: sticky; top: 0; z-index: 1000; }
#main-header .container { display: flex; justify-content: space-between; align-items: center; }
#main-header .logo { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); }
#language-switcher .lang-btn { background: none; border: 1px solid #ddd; border-radius: 6px; padding: 8px 15px; margin-left: 8px; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
#language-switcher .lang-btn.active { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

/* ------------------- 
 * 2.5. Hero Section (NEW)
 * ------------------- */
#hero { background-color: var(--hero-bg-color); text-align: center; padding: 120px 0; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.3; margin-bottom: 25px; color: #2c3e50; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-light); max-width: 700px; margin: 0 auto 40px; }

/* ------------------- 
 * 3. Section: Who is this for?
 * ------------------- */
#service-for { background-color: #fff; } 
#service-for .card-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; }
#service-for .card { background: var(--white); padding: 40px; border-radius: var(--border-radius-md); box-shadow: var(--shadow-sm); text-align: left; transition: transform 0.3s; }
#service-for .card:hover { transform: translateY(-10px); }
#service-for .card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
#service-for .card h3 { font-size: 1.8rem; margin-bottom: 15px; }
#service-for .card p { color: var(--text-light); margin-bottom: 30px; }

/* ------------------- 
 * 4. Section: Why Choose Us?
 * ------------------- */
#why-us-new { text-align: center; }
#why-us-new .features-grid-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; text-align: left; margin-top: 60px; }
#why-us-new .feature-item-new { background: var(--white); padding: 35px; border-radius: var(--border-radius-md); }
#why-us-new .feature-item-new i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
#why-us-new .feature-item-new h3 { font-size: 1.5rem; margin-bottom: 10px; }

/* ------------------- 
 * 5. Section: Process
 * ------------------- */
#process-new .process-steps { display: flex; justify-content: space-around; gap: 30px; margin-top: 60px; position: relative; }
#process-new .process-steps::before { content: ''; position: absolute; top: 25px; left: 10%; right: 10%; height: 2px; background: #e0e0e0; z-index: -1; }
#process-new .step { background: var(--white); padding: 0 20px; }
#process-new .step-number { width: 50px; height: 50px; background-color: var(--primary-color); color: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; border: 4px solid var(--bg-light); }
#process-new .step h3 { font-size: 1.4rem; }

/* ------------------- 
 * 6. Final CTA Section
 * ------------------- */
#contact-new { padding: 100px 0; }
#contact-new h2 { font-size: 2.2rem; }

/* ------------------- 
 * 7. Chatbot Styles (New Design)
 * ------------------- */
#open-chatbot { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: var(--chatbot-primary); color: white; border: none; border-radius: 50%; font-size: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, visibility 0.3s; z-index: 1001; }
#open-chatbot:hover { transform: scale(1.1); }
body.chatbot-open #open-chatbot { opacity: 0; visibility: hidden; transform: scale(0.8); }

#chatbot-container { position: fixed; bottom: 100px; right: 30px; width: 420px; max-width: calc(100% - 40px); height: 700px; max-height: calc(100vh - 120px); background-color: var(--chatbot-bg); border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow: hidden; z-index: 1000; transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease; transform: translateY(30px) scale(0.95); opacity: 0; visibility: hidden; }
#chatbot-container.show { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }

#chatbot-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; background-color: var(--chatbot-primary); color: var(--chatbot-header-text); font-weight: 600; font-size: 1.1rem; flex-shrink: 0; }
.chatbot-title { font-weight: 700; }
#chatbot-lang-buttons { display: flex; gap: 8px; }
#chatbot-lang-buttons .chatbot-lang-btn { background: none; border: 1px solid rgba(255,255,255,0.7); color: white; padding: 6px 14px; border-radius: 16px; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; }
#chatbot-lang-buttons .chatbot-lang-btn.active { background-color: white; color: var(--chatbot-primary); font-weight: 600; border-color: white; }
#close-chatbot { background: none; border: none; color: white; font-size: 28px; cursor: pointer; padding: 0; line-height: 1; opacity: 0.8; }
#close-chatbot:hover { opacity: 1; }

#chatbot-messages { flex-grow: 1; padding: 25px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background-color: #f9f9f9; }
.message { padding: 12px 18px; border-radius: 20px; max-width: 85%; line-height: 1.6; word-wrap: break-word; text-align: left; font-size: 0.95rem; }
.message.bot { background-color: var(--bot-message-bg); color: #333; align-self: flex-start; border-bottom-left-radius: 5px; }
.message.user { background-color: var(--user-message-bg); color: #333; align-self: flex-end; border-bottom-right-radius: 5px; text-align: right; }

/* Loading Animation */
.message.loading-indicator { background-color: var(--bot-message-bg); display: inline-block; padding: 12px 20px; align-self: flex-start; border-bottom-left-radius: 5px; }
.message.loading-indicator span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: var(--chatbot-primary); opacity: 0.7; animation: bounce 1s infinite ease-in-out; margin: 0 2px; }
.message.loading-indicator span:nth-of-type(1) { animation-delay: -0.2s; }
.message.loading-indicator span:nth-of-type(2) { animation-delay: -0.1s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.5); opacity: 0.5; } 40% { transform: scale(1.0); opacity: 1; } }

#chatbot-bottom-container { flex-shrink: 0; border-top: 1px solid #f0f0f0; background-color: #fff; }
#chatbot-suggested-questions { padding: 15px 20px 10px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.suggested-question-btn { background-color: var(--input-bg); border: 1px solid #e5e5e5; color: #333; padding: 15px; border-radius: 12px; cursor: pointer; font-size: 1rem; text-align: left; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.suggested-question-btn:hover { background-color: #f9f9f9; border-color: #ccc; transform: translateY(-1px); }

#chatbot-input-container { display: flex; padding: 15px 20px 20px; background-color: #fff; align-items: center; }
#chatbot-input { flex-grow: 1; border: 1px solid var(--input-border); background-color: var(--input-bg); border-radius: 25px; padding: 15px 20px; font-size: 1rem; margin-right: 15px; }
#chatbot-input:focus { outline: none; border-color: var(--chatbot-primary); box-shadow: 0 0 0 2px rgba(0, 199, 149, 0.2); }
#chatbot-send { background-color: var(--chatbot-primary); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; }
#chatbot-send:hover { background-color: var(--primary-dark); }

body.chatbot-open { overflow: hidden; }
