@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #ee3c4d;
    --primary-hover: #d83040;
    --accent-yellow: #ffc300;
    --text-color: #1a1f2c;
    --text-light: #4b5563;
    --text-muted: #9CA3AF;
    --bg-color: #FDF9F6;
    --bg-white: #ffffff;
    --bg-highlight: #FFF2ED;
    --border-color: #e5e7eb;
    --font-family: 'Outfit', sans-serif;
    --shadow-soft: 0 20px 50px -12px rgba(0,0,0,0.08);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
    --shadow-hover: 0 25px 50px -12px rgba(238,60,77,0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* { margin:0; padding:0; box-sizing:border-box; font-family:var(--font-family); scroll-behavior:smooth; }
body { color:var(--text-color); background:var(--bg-color); line-height:1.6; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
.text-primary { color:var(--primary-color); }
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }
a { text-decoration:none; color:inherit; transition:all 0.3s ease; }

/* ── HEADER ── */
header { background:var(--bg-white); position:sticky; top:0; z-index:100; border-bottom:1px solid rgba(0,0,0,0.05); box-shadow:0 2px 12px rgba(0,0,0,0.04); }
header .container { display:flex; justify-content:space-between; align-items:center; height:80px; }
.logo { display:flex; align-items:center; gap:12px; font-weight:800; color:var(--text-color); }
.logo i { color:var(--primary-color); font-size:2.5rem; }
.logo-text { display:flex; flex-direction:column; line-height:1.1; }
.logo-main { font-size:1.4rem; font-weight:800; letter-spacing:-0.5px; }
.logo-sub { font-size:0.85rem; font-weight:500; color:var(--text-muted); }

.header-nav { display:flex; align-items:center; gap:1.2rem; }
.back-link { position: absolute; top: 20px; right: 24px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-color); color: white; box-shadow: 0 4px 12px rgba(238, 60, 77, 0.3); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 10; border: none; }
.back-link:hover { transform: scale(1.1) rotate(90deg); background: var(--primary-hover); box-shadow: 0 6px 16px rgba(238, 60, 77, 0.4); color: white; }
.back-link i { font-size: 1.4rem; font-weight: 800; color: white; }

.lang-toggle { display:flex; align-items:center; background:#f3f4f6; border:1.5px solid var(--border-color); border-radius:999px; padding:3px; gap:2px; }
.lang-toggle-btn { padding:5px 14px; border-radius:999px; font-size:0.8rem; font-weight:700; letter-spacing:0.5px; border:none; cursor:pointer; transition:all 0.2s; color:var(--text-light); background:transparent; }
.lang-toggle-btn.active { background:var(--primary-color); color:#fff; box-shadow:0 2px 8px rgba(238,60,77,0.35); }
.lang-toggle-btn:hover:not(.active) { color:var(--text-color); background:rgba(0,0,0,0.06); }

/* ── MAIN SECTION ── */
.generator-section { position:relative; padding:60px 0 100px; }
.blob-bg { position:absolute; filter:blur(80px); z-index:0; opacity:0.5; }
.blob-1 { width:500px; height:500px; background:#ffecf5; top:-150px; right:-100px; border-radius:50%; }
.blob-2 { width:400px; height:400px; background:#ffecf5; bottom:-100px; left:-150px; border-radius:50%; }
.generator-section .container { position:relative; z-index:1; }

/* ── PAGE HEADER ── */
.page-header { text-align:center; max-width:680px; margin:0 auto 48px; animation:fadeInUp 0.7s ease-out; }
.eyebrow { display:inline-block; padding:8px 16px; background:white; border:2px solid var(--accent-yellow); border-radius:50px; font-weight:700; font-size:0.9rem; margin-bottom:20px; box-shadow:2px 2px 0 rgba(0,0,0,0.05); }
.page-header h1 { font-size:2.8rem; font-weight:800; letter-spacing:-1px; margin-bottom:16px; line-height:1.2; }
.page-header p { font-size:1.1rem; color:var(--text-light); }

/* ── STEP INDICATOR ── */
.step-indicator { display:flex; align-items:center; justify-content:center; gap:0; margin-bottom:40px; }
.step-item { display:flex; flex-direction:column; align-items:center; gap:8px; }
.step-circle { width:52px; height:52px; border-radius:50%; border:3px solid var(--border-color); background:var(--bg-white); display:flex; align-items:center; justify-content:center; transition:all 0.4s ease; position:relative; }
.step-num { font-size:1.2rem; font-weight:800; color:var(--text-muted); transition:all 0.3s; }
.step-check { position:absolute; font-size:1.4rem; color:white; opacity:0; transition:all 0.3s; }
.step-label { font-size:0.85rem; font-weight:700; color:var(--text-muted); transition:all 0.3s; white-space:nowrap; }
.step-line { flex:1; max-width:120px; height:3px; background:var(--border-color); margin:0 12px; margin-bottom:24px; border-radius:99px; transition:background 0.4s ease; position:relative; overflow:hidden; }
.step-line::after { content:''; position:absolute; left:0; top:0; height:100%; width:0%; background:var(--primary-color); border-radius:99px; transition:width 0.5s ease; }

/* Active step */
.step-item.active .step-circle { border-color:var(--primary-color); background:var(--primary-color); box-shadow:0 4px 16px rgba(238,60,77,0.3); }
.step-item.active .step-num { color:white; }
.step-item.active .step-label { color:var(--primary-color); }

/* Completed step */
.step-item.completed .step-circle { border-color:var(--primary-color); background:var(--primary-color); }
.step-item.completed .step-num { opacity:0; }
.step-item.completed .step-check { opacity:1; }
.step-item.completed .step-label { color:var(--primary-color); }
.step-line.filled::after { width:100%; }

/* ── STEP CARD (Step 1) ── */
.step-panel { animation:fadeInUp 0.5s ease; }
.step-card { max-width:640px; margin:0 auto; background:var(--bg-white); border-radius:var(--radius-lg); box-shadow:var(--shadow-soft); overflow:hidden; }
.step-card-header { display:flex; align-items:center; gap:20px; padding:2rem 2.5rem; background:var(--primary-color); color:white; }
.step-card-icon { width:56px; height:56px; background:rgba(255,255,255,0.2); border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center; font-size:2rem; flex-shrink:0; }
.step-card-header h2 { font-size:1.4rem; font-weight:800; margin-bottom:4px; }
.step-card-header p { font-size:0.95rem; opacity:0.85; }
.step-card form { padding:2.5rem; }

/* ── USER SUMMARY BAR ── */
.user-summary { display:flex; align-items:center; justify-content:space-between; background:var(--bg-white); border-radius:var(--radius-md); padding:14px 24px; margin-bottom:2rem; box-shadow:var(--shadow-sm); border:1.5px solid var(--border-color); flex-wrap:wrap; gap:12px; }
.user-summary-info { display:flex; align-items:center; gap:10px; font-weight:600; color:var(--text-color); font-size:0.95rem; }
.user-summary-info i { color:var(--primary-color); font-size:1.5rem; }
.sep { color:var(--text-muted); }
.edit-step-btn { display:inline-flex; align-items:center; gap:6px; font-size:0.85rem; font-weight:700; color:var(--primary-color); background:var(--bg-highlight); border:none; border-radius:50px; padding:8px 16px; cursor:pointer; transition:all 0.2s; }
.edit-step-btn:hover { background:var(--primary-color); color:white; }

/* ── GENERATOR LAYOUT (Step 2) ── */
.generator-layout { display:flex; gap:3rem; align-items:flex-start; }
.form-section { flex:1; min-width:320px; background:var(--primary-color); padding:3rem 2.5rem; border-radius:var(--radius-lg); box-shadow:var(--shadow-soft); color:#fff; }
.preview-section { flex:1; min-width:320px; display:flex; flex-direction:column; }

/* ── FORM ELEMENTS ── */
.form-row { display:flex; gap:1.5rem; margin-bottom:1.5rem; }
.form-group { flex:1; margin-bottom:1.5rem; display:flex; flex-direction:column; }
label { display:block; font-size:0.82rem; font-weight:700; color:inherit; margin-bottom:0.7rem; letter-spacing:0.5px; text-transform:uppercase; }
input, select { width:100%; padding:1.1rem 1.2rem; background:var(--bg-white); border:2px solid transparent; border-radius:var(--radius-md); color:var(--text-color); font-size:1rem; font-weight:500; transition:all 0.2s; box-shadow:var(--shadow-sm); }
input::placeholder { color:var(--text-muted); font-weight:400; }
input:focus, select:focus { outline:none; border-color:var(--bg-white); box-shadow:0 0 0 4px rgba(255,255,255,0.4); }
input.invalid, select.invalid { border:2px solid #ee3c4d !important; background:#fff1f2 !important; box-shadow:0 0 0 4px rgba(238,60,77,0.2) !important; animation:shake 0.4s ease-in-out; }

.toggle-group { display:flex; background:rgba(255,255,255,0.6); border-radius:50px; padding:5px; }
.toggle-btn { flex:1; padding:0.9rem; background:transparent; border:none; border-radius:50px; color:var(--text-light); font-weight:600; cursor:pointer; transition:all 0.3s; font-size:0.95rem; }
.toggle-btn.active { background:var(--primary-color); color:#fff; font-weight:700; box-shadow:var(--shadow-sm); }
.form-section .toggle-btn.active { background:#fff; color:var(--primary-color); }

.submit-btn { width:100%; padding:1.3rem; background:var(--text-color); color:#fff; border:none; border-radius:50px; font-size:1.1rem; font-weight:700; cursor:pointer; transition:all 0.3s; margin-top:1rem; box-shadow:0 10px 20px rgba(0,0,0,0.15); display:flex; align-items:center; justify-content:center; gap:10px; }
.submit-btn:hover { background:var(--accent-yellow); color:var(--text-color); transform:translateY(-2px); }

/* ── RESUME UPLOAD ── */
.resume-upload-zone { background:rgba(255,255,255,0.15); border:2px dashed rgba(255,255,255,0.4); border-radius:var(--radius-md); padding:2rem; text-align:center; cursor:pointer; transition:all 0.3s; position:relative; }
.resume-upload-zone:hover, .resume-upload-zone.dragover { background:rgba(255,255,255,0.25); border-color:white; }
.resume-upload-zone.invalid { border-color:#ffb3b3 !important; animation:shake 0.4s ease; }
.upload-icon { font-size:2.5rem; margin-bottom:0.8rem; opacity:0.85; display:block; }
.upload-text { font-size:1rem; margin-bottom:0.5rem; font-weight:500; }
.upload-text b { text-decoration:underline; }
.resume-helper { font-size:0.85rem; opacity:0.75; }
.file-status { position:absolute; inset:0; background:var(--bg-white); border-radius:var(--radius-md); display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--text-color); gap:0.4rem; z-index:5; animation:fadeInUp 0.3s ease; }
.file-status i { font-size:2.5rem; color:var(--primary-color); }
.file-status span { font-weight:700; font-size:0.95rem; }
.remove-file-btn { position:absolute; top:10px; right:10px; background:var(--bg-highlight); border:none; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--primary-color); transition:all 0.2s; }
.remove-file-btn:hover { background:var(--primary-color); color:white; }
.error-msg { color:#ffdce0; font-size:0.85rem; font-weight:600; margin-top:0.5rem; }
.email-suggestion { display:flex; align-items:center; gap:0.5rem; margin-top:0.5rem; padding:0.6rem 0.85rem; background:#fffbeb; border:1.5px solid #f59e0b; border-radius:8px; font-size:0.83rem; color:#92400e; font-weight:600; animation:fadeInUp 0.2s ease-out; }
.email-suggestion i { flex-shrink:0; font-size:1rem; color:#d97706; }
.suggestion-accept-btn { background:#f59e0b; border:none; color:#fff; font-size:0.8rem; font-weight:700; padding:3px 12px; border-radius:6px; cursor:pointer; white-space:nowrap; transition:background 0.2s; }
.suggestion-accept-btn:hover { background:#d97706; }

/* ── EMAIL PREVIEW ── */
.paper-preview { background:var(--bg-white); padding:3rem; border-radius:var(--radius-lg); min-height:550px; box-shadow:var(--shadow-soft); line-height:1.7; margin-bottom:1.5rem; flex-grow:1; font-size:0.95rem; position:relative; }
.paper-preview::before { content:''; position:absolute; top:0; left:0; height:100%; width:8px; background:var(--primary-color); border-radius:var(--radius-lg) 0 0 var(--radius-lg); }
.placeholder-text { color:var(--text-muted); text-align:center; margin-top:50%; transform:translateY(-50%); font-style:italic; font-size:1rem; padding:0 1rem; }
.email-content { color:#2c3e50; display:block; }
.email-content p { margin-bottom:0.8rem; }

.action-buttons { display:flex; gap:1rem; }
.action-btn { flex:1; padding:1.1rem; border-radius:50px; display:flex; align-items:center; justify-content:center; gap:0.5rem; font-size:1rem; font-weight:700; cursor:pointer; transition:all 0.2s; background:var(--bg-white); border:none; color:var(--text-color); box-shadow:var(--shadow-sm); }
.action-btn:hover { background:var(--primary-color); color:white; transform:translateY(-2px); }
.action-btn.primary-btn { background:var(--primary-color); color:white; }
.action-btn.primary-btn:hover { background:var(--primary-hover); }

/* ── GUIDE SECTION ── */
.guide-section { padding:100px 0; background:var(--bg-color); }
.section-title { text-align:center; max-width:700px; margin:0 auto 56px; }
.section-title h2 { font-size:2.6rem; font-weight:800; margin-bottom:16px; letter-spacing:-1px; }
.section-title p { font-size:1.1rem; color:var(--text-light); }
.guide-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.guide-card { background:var(--bg-white); padding:28px; border-radius:var(--radius-lg); border:1px solid var(--border-color); box-shadow:0 10px 40px -15px rgba(0,0,0,0.08); transition:transform 0.3s, box-shadow 0.3s; display:flex; flex-direction:column; align-items:flex-start; animation:fadeInUp 0.6s ease-out both; }
.guide-card:hover { transform:translateY(-8px); box-shadow:0 20px 45px rgba(238,60,77,0.12); border-color:var(--primary-color); }
.card-illustration { width:100%; height:140px; border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center; margin-bottom:20px; background:var(--bg-highlight); color:var(--primary-color); }
.card-illustration i { font-size:3.5rem; }
.step-badge { width:38px; height:38px; display:flex; align-items:center; justify-content:center; font-size:1rem; font-weight:800; color:white; background:var(--primary-color); border-radius:50%; margin-bottom:14px; box-shadow:0 6px 14px rgba(238,60,77,0.2); }
.guide-card h3 { font-size:1.2rem; font-weight:800; margin-bottom:10px; }
.guide-card p { color:var(--text-light); font-size:0.95rem; line-height:1.6; }

/* ── FEATURES SECTION ── */
.features-section { padding:100px 0; background:var(--bg-white); }
.features-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; max-width:800px; margin:0 auto; }
.feature-item { display:flex; align-items:center; gap:14px; background:var(--bg-highlight); padding:22px; border-radius:var(--radius-md); font-size:1.05rem; font-weight:700; transition:transform 0.2s; }
.feature-item:hover { transform:translateY(-3px); }
.feature-item i { color:#10B981; background:rgba(16,185,129,0.1); padding:10px; border-radius:50%; font-size:1.4rem; flex-shrink:0; }

/* ── FAQ SECTION ── */
.faq-section { padding:100px 0; background:var(--bg-color); }
.faq-container { max-width:800px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.faq-item { background:var(--bg-white); border-radius:var(--radius-md); box-shadow:var(--shadow-sm); overflow:hidden; transition:box-shadow 0.3s; }
.faq-item:hover { box-shadow:var(--shadow-soft); }
.faq-question { width:100%; padding:22px 28px; display:flex; justify-content:space-between; align-items:center; cursor:pointer; border:none; background:transparent; font-size:1.05rem; font-weight:700; color:var(--text-color); text-align:left; }
.faq-question i { color:var(--text-light); font-size:1.4rem; transition:transform 0.3s; background:var(--bg-highlight); padding:8px; border-radius:50%; flex-shrink:0; }
.faq-question.active i { transform:rotate(180deg); background:var(--primary-color); color:white; }
.faq-answer { display:none; padding:0 28px 26px; color:var(--text-light); font-size:1rem; line-height:1.7; }

/* ── FOOTER ── */
/* --- MODERN FOOTER (MATCHING INDEX.HTML) --- */
.modern-footer {
    background-color: #1a1f2c;
    color: white;
    padding: 64px 20px 32px;
    font-family: 'Outfit', sans-serif;
}

.modern-footer .container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-box {
    width: 40px;
    height: 40px;
    background-color: #ee3d4d;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(238, 61, 77, 0.2);
}

.logo-icon-box svg {
    width: 24px;
    height: 24px;
}

.logo-text-box {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main-text {
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-sub-text {
    font-size: 11px;
    color: #9ca3af;
    text-transform: none;
}

.footer-desc {
    color: #9ca3af !important;
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
    text-transform: none !important;
}

.footer-section-title {
    color: #ee3d4d;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-list a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links-list a:hover {
    color: white;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 640px) {
    .footer-bottom-modern {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.footer-bottom-modern p {
    color: #6b7280;
    font-size: 12px;
    margin: 0;
}

.footer-pills-modern {
    display: flex;
    gap: 16px;
}

.footer-pills-modern span {
    color: #4b5563;
    font-size: 12px;
}

/* Back to top button (Modern) */
.back-to-top-modern {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ee3d4d;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(238, 61, 77, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.back-to-top-modern.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-modern:hover {
    background-color: #d63341;
    transform: translateY(-4px);
}

/* ── BUTTONS ── */
.btn-primary { display:inline-flex; align-items:center; gap:10px; background:var(--primary-color); color:white; padding:16px 36px; border-radius:50px; font-weight:700; font-size:1.05rem; box-shadow:0 10px 20px rgba(238,60,77,0.3); cursor:pointer; transition:all 0.3s; }
.btn-primary:hover { background:var(--primary-hover); transform:translateY(-3px); }

/* ── TOAST ── */
.toast-container { position:fixed; bottom:30px; left:50%; transform:translateX(-50%); z-index:9999; display:flex; flex-direction:column; gap:10px; pointer-events:none; }
.toast { background:#333; color:#fff; padding:12px 24px; border-radius:50px; box-shadow:0 10px 30px rgba(0,0,0,0.2); font-weight:600; font-size:0.95rem; pointer-events:auto; animation:toastIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275) forwards; display:flex; align-items:center; gap:10px; border-left:5px solid var(--primary-color); }
.toast i { color:var(--primary-color); font-size:1.2rem; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
@keyframes toastIn { from{opacity:0;transform:translateY(100%)} to{opacity:1;transform:translateY(0)} }
@keyframes toastOut { to{opacity:0;transform:translateY(20px) scale(0.9)} }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .page-header h1 { font-size:2rem; }
    .generator-layout { flex-direction:column; }
    .form-section { padding:2rem 1.5rem; }
    .guide-grid { grid-template-columns:1fr; }
    .features-grid { grid-template-columns:1fr; }
    .form-row { flex-direction:column; gap:0; }
    .paper-preview { min-height:380px; padding:2rem 1.5rem; }
    .step-line { max-width:60px; }
}

@media (max-width: 500px) {
    .back-link { width: 34px; height: 34px; }
    .user-summary { flex-direction:column; align-items:flex-start; }
    .page-header h1 { font-size:1.7rem; }
}

/* ── TEXTAREA ── */
textarea { width:100%; padding:1.1rem 1.2rem; background:var(--bg-white); border:2px solid transparent; border-radius:var(--radius-md); color:var(--text-color); font-size:1rem; font-weight:500; resize:vertical; transition:all 0.2s; box-shadow:var(--shadow-sm); font-family:var(--font-family); line-height:1.6; }
textarea::placeholder { color:var(--text-muted); font-weight:400; }
textarea:focus { outline:none; border-color:var(--bg-white); box-shadow:0 0 0 4px rgba(255,255,255,0.4); }
textarea.invalid { border:2px solid #ee3c4d !important; background:#fff1f2 !important; animation:shake 0.4s ease-in-out; }
.field-hint { font-size:0.8rem; opacity:0.75; margin-top:6px; }
.letter-content { color:#2c3e50; display:block; }
.letter-content p { margin-bottom:0.8rem; }
