/* CV Builder */

.site-content .content-area.cv-builder-page,
.site-content .content-area.cv-preview-page,
.site-content .content-area.cv-landing-v2 {
    padding: 0;
}

.cv-hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}
.cv-hero-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
}
.cv-hero-sub {
    font-size: 15px;
    opacity: 0.85;
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cv-builder-body,
.cv-preview-body {
    padding: 30px 0 50px;
}

/* Disclaimer */
.cv-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #e8f9ee;
    border: 1px solid #b8e6c8;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.cv-disclaimer i {
    color: #00bf63;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}
.cv-disclaimer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

/* Template Selector */
.cv-template-section {
    margin-bottom: 10px;
}
.cv-template-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.cv-template-card {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.cv-template-card:hover {
    border-color: #86efac;
}
.cv-template-card.active {
    border-color: #00bf63;
    box-shadow: 0 0 0 3px rgba(0, 191, 99, 0.15);
}
.cv-template-card input[type="radio"] {
    display: none;
}
.cv-template-thumb {
    background: #f3f4f6;
    border-radius: 4px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.cv-template-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #6b7280;
}
.cv-template-placeholder i {
    font-size: 32px;
}
.cv-template-placeholder span {
    font-size: 13px;
    font-weight: 500;
}
.cv-template-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.cv-template-card.active .cv-template-placeholder {
    color: #00bf63;
}
.cv-template-card.active .cv-template-label {
    color: #00bf63;
}

/* Sections */
.cv-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}
.cv-section-title {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 18px;
    margin: 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
}
.cv-section-title i:first-child {
    color: #00bf63;
    width: 20px;
    text-align: center;
}
.cv-section-toggle {
    cursor: pointer;
    user-select: none;
}
.cv-section-toggle:hover {
    background: #f3f4f6;
}
.cv-toggle-icon {
    margin-left: auto;
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s;
}
.cv-section-content {
    padding: 18px;
}

/* Form Fields */
.cv-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}
.cv-row-3 {
    flex-wrap: wrap;
}
.cv-row-3 .cv-field {
    flex: 1;
    min-width: 150px;
}
.cv-field {
    flex: 1;
}
.cv-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}
.cv-field label span {
    color: #ef4444;
}
.cv-field input,
.cv-field select,
.cv-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
}
.cv-field input:focus,
.cv-field select:focus,
.cv-field textarea:focus {
    outline: none;
    border-color: #00bf63;
    box-shadow: 0 0 0 3px rgba(0, 191, 99, 0.12);
}
.cv-field.has-error input,
.cv-field.has-error select,
.cv-field.has-error textarea {
    border-color: #ef4444;
}
.cv-field-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Repeater */
.cv-repeater-entries {
    margin-bottom: 10px;
}
.cv-repeater-entry {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 10px;
    background: #fafbfc;
}
.cv-repeater-entry-inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding: 10px 14px;
}
.cv-repeater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}
.cv-repeater-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
}
.cv-repeater-remove:hover {
    color: #dc2626;
}
.cv-repeater-remove-inline {
    margin-bottom: 8px;
}
.cv-repeater-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #e8f9ee;
    border: 1px dashed #86efac;
    border-radius: 6px;
    color: #00bf63;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.cv-repeater-add:hover {
    background: #d1fae5;
}

/* Submit */
.cv-submit-wrap {
    text-align: center;
    padding: 20px 0;
}
.cv-submit-btn {
    font-size: 16px;
    padding: 13px 40px;
    background: #00bf63;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.cv-submit-btn:hover {
    background: #389e2a;
}

/* Preview Page */
.cv-preview-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.cv-preview-actions-bottom {
    margin-top: 20px;
    margin-bottom: 0;
}
.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff !important;
}
a.contact-submit {
    color: #fff !important;
    text-decoration: none;
}
.cv-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    transition: background 0.2s;
}
.cv-edit-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.cv-preview-frame {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.cv-preview-cta {
    text-align: center;
    padding: 30px;
    margin-top: 30px;
    background: #e8f9ee;
    border-radius: 8px;
}
.cv-preview-cta h3 {
    font-size: 20px;
    margin: 0 0 6px;
    color: #1a1a1a;
}
.cv-preview-cta p {
    color: #6b7280;
    margin: 0 0 16px;
}

/* Landing Pages */
.cv-landing-hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}
.cv-landing-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
}
.cv-landing-hero p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cv-landing-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00bf63;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cv-landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #389e2a;
    color: #fff !important;
}
.cv-landing-cta {
    color: #fff !important;
}

.cv-landing-content {
    padding: 40px 0 50px;
}
.cv-landing-content h2 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 30px 0 12px;
}
.cv-landing-content h3 {
    font-size: 18px;
    color: #374151;
    margin: 24px 0 8px;
}
.cv-landing-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 12px;
}
.cv-landing-content ul {
    padding-left: 20px;
    margin: 0 0 16px;
}
.cv-landing-content li {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 4px;
}

.cv-faq-section {
    background: #f9fafb;
    padding: 40px 0;
}
.cv-faq-section h2 {
    text-align: center;
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 24px;
}
.cv-faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.cv-faq-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 6px;
}
.cv-faq-item p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Landing Pages V2 */
.cv-landing-v2 {
    --cv-ink: #1a1a1a;
    --cv-muted: #646464;
    --cv-brand: #00bf63;
    --cv-brand-dark: #389e2a;
}
.cv-landing-v2 .cv-landing-shell {
    max-width: 980px;
    margin: 0 auto;
}
.cv-landing-v2 .cv-landing-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 12% 18%, rgba(0, 191, 99, 0.15), transparent 44%), radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.12), transparent 42%), linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 68px 0 62px;
    text-align: left;
}
.cv-landing-v2 .cv-landing-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -74px;
    bottom: -130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}
.cv-landing-v2 .cv-landing-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.cv-landing-v2 .cv-landing-hero h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 14px;
    color: #fff;
}
.cv-landing-v2 .cv-landing-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    opacity: 0.96;
}
.cv-landing-v2 .cv-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.cv-landing-v2 .cv-landing-cta {
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cv-landing-v2 .cv-landing-cta-primary {
    background: #00bf63;
    color: #fff !important;
}
.cv-landing-v2 .cv-landing-cta-primary:hover {
    background: #389e2a;
    color: #fff !important;
}
.cv-landing-v2 .cv-landing-cta-secondary {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}
.cv-landing-v2 .cv-landing-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}
.cv-landing-v2 .cv-landing-highlights li {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    padding: 7px 13px;
    margin: 0;
}
.cv-landing-v2 .cv-landing-content {
    background: linear-gradient(180deg, #f5f7f5 0%, #ffffff 46%);
    padding: 48px 0;
}
.cv-landing-v2 .cv-landing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.cv-landing-v2 .cv-landing-card:last-child {
    margin-bottom: 0;
}
.cv-landing-v2 .cv-landing-card h2 {
    color: var(--cv-ink);
    font-size: 25px;
    line-height: 1.25;
    margin: 0 0 14px;
}
.cv-landing-v2 .cv-landing-card h3 {
    color: #203a57;
    font-size: 18px;
    margin: 20px 0 8px;
}
.cv-landing-v2 .cv-landing-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--cv-muted);
    margin: 0 0 12px;
}
.cv-landing-v2 .cv-landing-card p:last-child {
    margin-bottom: 0;
}
.cv-landing-v2 .cv-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.cv-landing-v2 .cv-feature-card {
    border: 1px solid #e0e8e0;
    border-radius: 12px;
    padding: 16px;
    background: #fafcfa;
}
.cv-landing-v2 .cv-feature-card h3 {
    margin-top: 0;
}
.cv-landing-v2 .cv-landing-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cv-landing-v2 .cv-landing-list li {
    position: relative;
    font-size: 15px;
    line-height: 1.8;
    color: var(--cv-muted);
    margin-bottom: 8px;
    padding-left: 22px;
}
.cv-landing-v2 .cv-landing-list li:last-child {
    margin-bottom: 0;
}
.cv-landing-v2 .cv-landing-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cv-brand);
    position: absolute;
    top: 11px;
    left: 0;
}
.cv-landing-v2 .cv-landing-tip {
    background: #e8f9ee;
    border-left: 3px solid var(--cv-brand);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 14px;
    color: #304864;
}
.cv-landing-v2 .cv-landing-related {
    padding: 10px 0 52px;
}
.cv-landing-v2 .cv-landing-related h2 {
    color: var(--cv-ink);
    font-size: 26px;
    margin: 0 0 16px;
}
.cv-landing-v2 .cv-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.cv-landing-v2 .cv-related-link {
    display: block;
    text-decoration: none;
    border: 1px solid #dbe6f4;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.cv-landing-v2 .cv-related-link:hover {
    transform: translateY(-2px);
    border-color: #bad0f1;
    box-shadow: 0 10px 20px rgba(17, 42, 76, 0.08);
}
.cv-landing-v2 .cv-related-link strong {
    display: block;
    color: #173556;
    font-size: 16px;
    margin-bottom: 6px;
}
.cv-landing-v2 .cv-related-link span {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: #5e7189;
}
.cv-landing-v2 .cv-faq-section {
    background: #f5f7f5;
    padding: 46px 0 54px;
}
.cv-landing-v2 .cv-faq-section h2 {
    text-align: left;
    color: var(--cv-ink);
    font-size: 26px;
    margin: 0 0 16px;
}
.cv-landing-v2 .cv-faq-item {
    max-width: none;
    border-radius: 12px;
    border-color: #dde8f6;
    padding: 18px 20px;
    margin-bottom: 12px;
}
.cv-landing-v2 .cv-faq-item h3 {
    font-size: 16px;
    color: #1f3c5c;
    margin-bottom: 8px;
}
.cv-landing-v2 .cv-faq-item p {
    font-size: 14px;
    line-height: 1.7;
    color: #5c6f86;
}

@media (max-width: 900px) {
    .cv-landing-v2 .cv-landing-hero {
        padding: 54px 0 48px;
    }
    .cv-landing-v2 .cv-landing-hero h1 {
        font-size: 32px;
    }
    .cv-landing-v2 .cv-feature-grid,
    .cv-landing-v2 .cv-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cv-landing-v2 .cv-landing-kicker {
        margin-bottom: 12px;
    }
    .cv-landing-v2 .cv-landing-hero h1 {
        font-size: 28px;
    }
    .cv-landing-v2 .cv-landing-hero p {
        font-size: 15px;
    }
    .cv-landing-v2 .cv-landing-actions {
        gap: 10px;
        margin-top: 20px;
    }
    .cv-landing-v2 .cv-landing-cta {
        width: 100%;
        justify-content: center;
    }
    .cv-landing-v2 .cv-landing-highlights {
        margin-top: 18px;
    }
    .cv-landing-v2 .cv-landing-card {
        padding: 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cv-row {
        flex-direction: column;
        gap: 10px;
    }
    .cv-template-grid {
        justify-content: center;
    }
    .cv-template-card {
        max-width: 160px;
    }
    .cv-repeater-entry-inline {
        flex-wrap: wrap;
    }
    .cv-preview-frame {
        padding: 20px;
    }
    .cv-hero-title,
    .cv-landing-hero h1 {
        font-size: 22px;
    }
}
