/* ResumeRocket - Professional SaaS Design */

:root {
    --primary: #1a56db;
    --primary-dark: #1340a8;
    --primary-light: #e8eefb;
    --accent: #0ea5e9;
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Hamburger Menu (CSS-only) --- */
.hamburger-toggle {
    display: none;
}

.hamburger-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 24px;
}

.hamburger-label span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 80px 5% 60px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* --- Sections --- */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-gray {
    background: var(--gray-100);
    max-width: 100%;
}

.section-gray .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Problem Section --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.problem-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.problem-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.problem-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.04);
}

.pricing-card.featured .badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.pricing-card .price-sub {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-card ul li {
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.pricing-card ul li::before {
    content: "[+] ";
    color: var(--success);
    font-weight: 700;
}

/* --- Demo --- */
.demo-container {
    background: var(--gray-900);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.demo-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-500);
}

.demo-dot:nth-child(1) { background: #ef4444; }
.demo-dot:nth-child(2) { background: #f59e0b; }
.demo-dot:nth-child(3) { background: #10b981; }

.demo-content {
    color: #e5e7eb;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.demo-btn-row {
    text-align: center;
    margin-top: 24px;
}

/* --- ROI Section --- */
.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.roi-card {
    padding: 24px;
}

.roi-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
}

.roi-card .label {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-top: 4px;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 40px 5%;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

/* ============================
   APP PAGE STYLES
   ============================ */

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    min-height: calc(100vh - 140px);
}

.app-panel {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 32px;
}

.app-panel h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Output */
.output-area {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    white-space: pre-wrap;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    color: var(--gray-700);
}

.output-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}

.loading::after {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    margin: 16px auto 0;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.error-msg {
    color: #ef4444;
    background: #fef2f2;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}

/* --- Plan Selector --- */
.plan-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.plan-option {
    flex: 1;
    cursor: pointer;
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.plan-option input[type="radio"]:checked + .plan-box {
    border-color: var(--primary);
    background: var(--primary-light);
}

.plan-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}

.payment-note {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--gray-500);
    text-align: center;
}

/* --- Credit Badge --- */
.credit-badge {
    display: inline-block;
    background: var(--success);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Message Styles --- */
.success-msg {
    color: #065f46;
    background: #d1fae5;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.info-msg {
    color: #1e40af;
    background: #dbeafe;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ============================
   TEMPLATE SELECTOR (App Page)
   ============================ */

.template-selector {
    margin-bottom: 20px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.template-option {
    cursor: pointer;
}

.template-option input[type="radio"] {
    display: none;
}

.template-card {
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.template-card:hover {
    border-color: var(--primary);
}

.template-card.selected,
.template-option input[type="radio"]:checked + .template-card {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
    background: var(--primary-light);
}

.template-card-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 8px;
    color: var(--dark);
}

.template-card-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* --- Template Preview Mockups --- */

.template-preview {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    height: 100px;
    padding: 8px;
    overflow: hidden;
    position: relative;
}

.tp-line {
    height: 4px;
    border-radius: 2px;
    background: var(--gray-300);
    margin-bottom: 4px;
}

.tp-line-wide { width: 100%; }
.tp-line-medium { width: 65%; }
.tp-line-short { width: 40%; }

/* Modern: sidebar + content */
.template-preview-modern {
    display: flex;
    gap: 6px;
    padding: 0;
}

.tp-sidebar {
    width: 28%;
    background: var(--primary);
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
}

.template-preview-modern .tp-content {
    padding: 8px 6px;
    flex: 1;
}

/* Classic: centered header + body */
.template-preview-classic {
    text-align: center;
}

.tp-header-center {
    width: 50%;
    height: 6px;
    background: var(--dark);
    border-radius: 2px;
    margin: 4px auto 6px;
}

.tp-divider {
    width: 100%;
    height: 2px;
    background: var(--dark);
    margin-bottom: 8px;
}

/* Creative: colored top bar */
.template-preview-creative {
    padding: 0;
}

.tp-topbar {
    width: 100%;
    height: 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 4px 4px 0 0;
}

.tp-content-creative {
    padding: 8px 8px 4px;
}

/* Minimal: thin lines */
.template-preview-minimal {
    padding: 10px 8px;
}

.tp-thin-divider {
    width: 100%;
    height: 1px;
    background: var(--gray-300);
    margin: 4px 0;
}

/* ============================
   TEMPLATE SHOWCASE (Landing)
   ============================ */

.template-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
}

.showcase-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.showcase-card .template-preview {
    height: 140px;
    margin-bottom: 16px;
}

.showcase-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.showcase-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================
   AUTH FORMS (Login/Signup)
   ============================ */

.auth-container {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-300);
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-family: inherit;
}

.auth-tab:hover {
    color: var(--primary);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-message {
    margin-bottom: 16px;
}

/* ============================
   DASHBOARD
   ============================ */

.dashboard-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.dashboard-empty-icon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.dashboard-empty h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.dashboard-empty p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.resume-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
}

.resume-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.resume-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.resume-card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.resume-card-date {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.resume-card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.resume-card-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.resume-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-danger {
    background: #ef4444;
    color: var(--white);
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .app-container {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-wrap: wrap;
        position: relative;
    }

    .hamburger-label {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-300);
        padding: 8px 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a,
    .nav-links button {
        display: block;
        width: 100%;
        padding: 10px 16px;
        text-align: left;
    }

    .nav-links .btn {
        border-radius: 0;
        text-align: center;
    }

    .hamburger-toggle:checked ~ .nav-links {
        display: flex;
    }

    .hamburger-toggle:checked ~ .hamburger-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger-toggle:checked ~ .hamburger-label span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-toggle:checked ~ .hamburger-label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-container {
        padding: 24px 16px;
    }

    .resume-actions {
        flex-direction: column;
    }

    .resume-actions .btn {
        width: 100%;
        text-align: center;
    }

    .refinement-input-row {
        flex-direction: column;
    }
}

/* ============================
   COLLAPSIBLE SECTIONS
   ============================ */

.collapsible-section {
    margin-bottom: 20px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
}

.collapsible-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    font-family: inherit;
    transition: background 0.2s;
}

.collapsible-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.toggle-icon {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    transition: transform 0.2s;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.collapsible-content.open {
    max-height: 600px;
    padding: 16px;
}

/* ============================
   JOB POSTING BADGE
   ============================ */

.job-posting-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

/* ============================
   MATCHING SCORE
   ============================ */

.matching-score-section {
    margin-top: 16px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
}

.matching-score-label {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.matching-score-bar {
    width: 100%;
    height: 12px;
    background: var(--gray-300);
    border-radius: 6px;
    overflow: hidden;
}

.matching-score-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease, background 0.3s ease;
}

.matching-score-fill.score-red {
    background: #ef4444;
}

.matching-score-fill.score-yellow {
    background: #f59e0b;
}

.matching-score-fill.score-green {
    background: #10b981;
}

/* ============================
   REFINEMENT SECTION
   ============================ */

.refinement-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
}

.refinement-section h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.refinement-counter {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.refinement-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.refinement-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.refinement-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* ============================
   COVER LETTER SECTION
   ============================ */

.cover-letter-section {
    margin-top: 24px;
    padding: 24px;
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
}

.cover-letter-section h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.cover-letter-section .form-group {
    margin-bottom: 14px;
}

.cover-letter-section .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--gray-700);
}

.cover-letter-section .form-group input,
.cover-letter-section .form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cover-letter-section .form-group input:focus,
.cover-letter-section .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.cover-letter-output {
    margin-top: 20px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: 8px;
}

.cover-letter-output h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.cover-letter-preview {
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.cover-letter-preview p {
    margin-bottom: 10px;
}
