/**
 * VIES Italy HK — Main Stylesheet
 * Design: Red (#B22222) + Gold (#FFD700) Chinese landing page style
 * All components extracted from translator-approved HTML previews
 */

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
    color: #2D2D2D;
    background: #FAFAFA;
    line-height: 1.8;
}

/* ==========================================================================
   2. Container & Layout
   ========================================================================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.divider { border: none; border-top: 1px solid #eee; margin: 0; }

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.site-header-vies {
    background: #B22222;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-header-vies .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

/* Logo: icon + text */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 46px;
    width: auto;
}

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

.logo-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.logo-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 400;
    margin-top: 1px;
}

/* Navigation: inline with header */
.main-nav {
    display: flex;
    gap: 2px;
    align-items: center;
    margin-left: auto;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.main-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.main-nav a.cta-nav {
    background: #FFD700;
    color: #8B0000;
    font-weight: 700;
    border-radius: 6px;
    padding: 10px 22px;
    margin-left: 8px;
    transition: background 0.2s, transform 0.2s;
}

.main-nav a.cta-nav:hover {
    background: #FFC800;
    transform: translateY(-1px);
}

.main-nav a.cta-nav.active {
    background: #FFD700;
    color: #8B0000;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   4. Breadcrumb
   ========================================================================== */
.breadcrumb { padding: 14px 0 8px; font-size: 13px; color: #999; }
.breadcrumb a { color: #B22222; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    color: #fff;
    padding: 52px 24px 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.07);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

/* Homepage hero: larger, full-width with margin */
.hero--home {
    padding: 64px 24px 56px;
    margin: 16px 0;
    border-radius: 12px;
}

.hero--home::before { top: -60px; right: -60px; width: 280px; height: 280px; background: rgba(255, 215, 0, 0.06); }
.hero--home::after { bottom: -80px; left: -80px; width: 320px; height: 320px; }

/* Internal pages hero: rounded, inside container */
.hero--page { border-radius: 12px; margin: 8px 0 32px; }

.hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    color: #fff !important;
}

.hero--page h1 { font-size: 34px; margin-bottom: 16px; }

.hero .subtitle {
    font-size: 16px;
    opacity: 0.92;
    max-width: 580px;
    margin: 0 auto 30px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.hero--page .subtitle { font-size: 15px; max-width: 600px; line-height: 1.85; }

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-trust {
    margin-top: 32px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.trust-item { font-size: 13px; opacity: 0.85; display: flex; align-items: center; gap: 5px; }

.trust-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
.cta-btn.primary { background: #FFD700; color: #8B0000; }
.cta-btn.secondary { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }

/* ==========================================================================
   7. Section common styles
   ========================================================================== */
.section { background: #fff; padding: 44px 0; border-bottom: 1px solid #f0f0f0; }
.section:nth-child(even), .section.alt { background: #FAFAFA; }
.section-label { color: #B22222; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: 26px; font-weight: 800; color: #1A1A1A; margin-bottom: 16px; line-height: 1.4; }
.section-intro { font-size: 15px; color: #555; margin-bottom: 28px; line-height: 1.9; }
.section p { font-size: 15px; color: #444; line-height: 1.9; margin-bottom: 14px; }

/* Standalone section wrappers (homepage uses these instead of .section) */
.problem-section { background: #fff; padding: 52px 0; }
.service-section { background: #FAFAFA; padding: 52px 0; }
.steps-section { background: #fff; padding: 52px 0; }
.why-section { background: #FAFAFA; padding: 52px 0; }
.testimonials-section { background: #fff; padding: 52px 0; }
.faq-section { background: #FAFAFA; padding: 52px 0; }
.norm-section { background: #fff; padding: 40px 0; }

/* ==========================================================================
   8. Homepage — Problem cards
   ========================================================================== */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.problem-card { background: #FFF5F5; border: 1px solid #F5C6C6; border-left: 4px solid #B22222; border-radius: 8px; padding: 20px; }
.problem-card .icon { font-size: 26px; margin-bottom: 8px; }
.problem-card h3 { font-size: 15px; color: #B22222; margin-bottom: 6px; font-weight: 700; }
.problem-card p { font-size: 13px; color: #666; line-height: 1.7; }

/* ==========================================================================
   9. Homepage — Service box
   ========================================================================== */
.service-box { background: linear-gradient(135deg, #fff 0%, #FFF8E7 100%); border: 1px solid #FFD700; border-radius: 12px; padding: 36px 32px; }
.service-box .title { font-size: 22px; font-weight: 800; color: #1A1A1A; margin-bottom: 8px; }
.service-box .subtitle { font-size: 14px; color: #888; margin-bottom: 24px; }
.service-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.spec-item { text-align: center; padding: 16px 12px; background: #fff; border-radius: 8px; border: 1px solid #eee; }
.spec-value { font-size: 22px; font-weight: 800; color: #B22222; }
.spec-label { font-size: 12px; color: #888; margin-top: 4px; }
.service-box p { font-size: 14px; color: #555; line-height: 1.8; }

/* ==========================================================================
   10. Steps (shared between homepage and VIES page)
   ========================================================================== */
.section-header { margin-bottom: 32px; }
.steps { margin: 20px 0; }
.step { display: flex; gap: 20px; margin-bottom: 20px; padding: 22px 20px; background: #FAFAFA; border-radius: 10px; border: 1px solid #eee; transition: box-shadow 0.2s; align-items: flex-start; }
.step:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07); }
.step-num { background: #B22222; color: #FFD700; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.step-content h3 { font-size: 15px; color: #B22222; margin-bottom: 5px; font-weight: 700; line-height: 1.4; }
.step-content p { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 0; }
.step.highlight { background: #FFF8E7; border-color: #FFD700; }
.step.highlight .step-num { background: #FFD700; color: #8B0000; }
.step-badge { display: inline-block; background: #B22222; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.step-tag { display: inline-block; background: #B22222; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; font-weight: 600; }

/* ==========================================================================
   11. Homepage — Why us cards
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 26px 22px; transition: box-shadow 0.2s; }
.why-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.why-card .icon { font-size: 32px; margin-bottom: 12px; }
.why-card h3 { font-size: 16px; color: #B22222; margin-bottom: 8px; font-weight: 700; }
.why-card p { font-size: 13px; color: #666; line-height: 1.7; }

/* ==========================================================================
   12. Homepage — Testimonials
   ========================================================================== */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.testimonial-card { background: #FAFAFA; border: 1px solid #eee; border-radius: 10px; padding: 22px 20px; }
.testimonial-text { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 14px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 36px; height: 36px; background: #B22222; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFD700; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.author-info .name { font-size: 14px; font-weight: 700; color: #2D2D2D; }
.author-info .role { font-size: 12px; color: #999; }
.stars { color: #FFD700; font-size: 14px; margin-bottom: 10px; }

/* ==========================================================================
   13. VIES Page — Info box
   ========================================================================== */
.info-box { background: #FFF8E7; border: 1px solid #FFD700; border-left: 4px solid #FFD700; border-radius: 8px; padding: 22px 26px; margin: 20px 0; }
.info-box .label { color: #B22222; font-weight: 700; font-size: 13px; margin-bottom: 10px; letter-spacing: 0.5px; }
.info-box p { font-size: 15px; color: #333; margin-bottom: 0; }

/* ==========================================================================
   14. VIES Page — Who must register cards
   ========================================================================== */
.who-section { margin: 20px 0; }
.who-card { border-radius: 8px; padding: 18px 22px; margin-bottom: 12px; border-left: 4px solid; }
.who-card.yes { background: #F0FFF4; border-color: #22863A; }
.who-card.no { background: #F5F5F5; border-color: #999; }
.who-badge { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.who-card.yes .who-badge { color: #22863A; }
.who-card.no .who-badge { color: #777; }
.who-card h3 { font-size: 15px; font-weight: 700; color: #1A1A1A; margin-bottom: 6px; line-height: 1.4; }
.who-card p { font-size: 14px; color: #555; margin-bottom: 0; line-height: 1.7; }

/* ==========================================================================
   15. VIES Page — Benefits grid
   ========================================================================== */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.benefit-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 24px 20px; transition: box-shadow 0.2s; }
.benefit-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.benefit-card .icon { font-size: 32px; margin-bottom: 10px; }
.benefit-card h3 { font-size: 16px; color: #B22222; margin-bottom: 8px; font-weight: 700; }
.benefit-card p { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 0; }

/* ==========================================================================
   16. VIES Page — Timeline
   ========================================================================== */
.timeline { margin: 20px 0; }
.timeline-item { display: flex; gap: 16px; padding: 16px 20px; margin-bottom: 10px; background: #fff; border-radius: 8px; border: 1px solid #eee; align-items: flex-start; }
.timeline-year { font-weight: 800; color: #B22222; min-width: 130px; font-size: 13px; line-height: 1.4; flex-shrink: 0; }
.timeline-desc { font-size: 14px; color: #444; line-height: 1.7; }
.norm-highlight { background: #FFF3CD; border: 1px solid #FFD700; border-left: 4px solid #B22222; border-radius: 8px; padding: 18px 22px; margin: 20px 0; font-size: 14px; color: #444; line-height: 1.8; }
.norm-highlight strong { color: #B22222; }

/* ==========================================================================
   17. VIES Page — Consequence cards
   ========================================================================== */
.con-card { background: #fff; border: 1px solid #eee; border-left: 4px solid #B22222; border-radius: 8px; padding: 18px 22px; margin-bottom: 12px; transition: box-shadow 0.2s; }
.con-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); }
.con-card .con-icon { font-size: 22px; margin-bottom: 8px; }
.con-card h3 { font-size: 15px; color: #B22222; margin-bottom: 6px; font-weight: 700; }
.con-card p { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 0; }

/* ==========================================================================
   18. VIES Page — Related pages grid
   ========================================================================== */
.related-section { padding: 28px 0; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 16px; }
.related-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 18px 16px; text-decoration: none; display: block; transition: box-shadow 0.2s, border-color 0.2s; }
.related-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); border-color: #FFD700; }
.related-card .rc-label { font-size: 11px; color: #B22222; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.related-card .rc-title { font-size: 14px; color: #1A1A1A; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.related-card .rc-arrow { font-size: 13px; color: #B22222; margin-top: 6px; }

/* Image placeholder (for future images) */
.img-placeholder { background: #F5F5F5; border: 2px dashed #ddd; border-radius: 8px; padding: 32px 20px; text-align: center; color: #aaa; font-size: 13px; margin: 20px 0; }
.img-placeholder .ph-icon { font-size: 36px; margin-bottom: 8px; }

/* ==========================================================================
   19. Contact — Channel cards
   ========================================================================== */
.channels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.channel-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 24px 20px; transition: box-shadow 0.2s; }
.channel-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.channel-card.featured { border-color: #FFD700; background: linear-gradient(135deg, #fff 0%, #FFF8E7 100%); }
.ch-icon { font-size: 30px; margin-bottom: 10px; }
.ch-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 10px; }
.channel-card.featured .ch-badge { background: #FFD700; color: #8B0000; }
.channel-card:not(.featured) .ch-badge { background: #F0F0F0; color: #666; }
.channel-card h3 { font-size: 16px; font-weight: 800; color: #1A1A1A; margin-bottom: 4px; }
.ch-sub { font-size: 13px; color: #888; margin-bottom: 12px; }
.ch-value { font-size: 14px; font-weight: 700; color: #B22222; line-height: 1.6; margin-bottom: 4px; }
.ch-note { font-size: 12px; color: #999; margin-top: 10px; }
.ch-action { display: inline-block; margin-top: 14px; background: #B22222; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; padding: 8px 20px; border-radius: 6px; transition: background 0.2s; }
.ch-action:hover { background: #8B0000; }
.channel-card.featured .ch-action { background: #FFD700; color: #8B0000; }
.wechat-box { background: #F0FFF4; border: 1px solid #9AE6B4; border-radius: 8px; padding: 12px 14px; margin-top: 12px; display: flex; align-items: flex-start; gap: 10px; }
.wechat-box .wc-icon { font-size: 20px; flex-shrink: 0; }
.wechat-box .wc-text { font-size: 13px; color: #276749; line-height: 1.6; }
.wechat-box .wc-id { font-weight: 800; display: block; margin-top: 2px; }
.response-box { background: #FFF8E7; border: 1px solid #FFD700; border-left: 4px solid #FFD700; border-radius: 8px; padding: 18px 22px; margin-top: 24px; }
.response-box .rl { color: #B22222; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.response-box p { font-size: 14px; color: #333; line-height: 1.8; margin-bottom: 0; }

/* ==========================================================================
   20. Contact — Form
   ========================================================================== */
.form-box { background: linear-gradient(135deg, #fff 0%, #FFF8E7 100%); border: 1px solid #FFD700; border-radius: 12px; padding: 34px 30px; margin-top: 24px; }
.form-title { font-size: 20px; font-weight: 800; color: #1A1A1A; margin-bottom: 6px; }
.form-sub { font-size: 13px; color: #888; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 700; color: #444; margin-bottom: 6px; }
.req { color: #B22222; }

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #2D2D2D;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #B22222;
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.07);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23B22222' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-notice { font-size: 12px; color: #888; line-height: 1.7; margin-bottom: 20px; }
.form-notice a { color: #B22222; text-decoration: none; }

.form-submit {
    background: #B22222;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    transition: background 0.2s, transform 0.2s;
}

.form-submit:hover { background: #8B0000; transform: translateY(-1px); }

.form-success { display: none; background: #F0FFF4; border: 1px solid #68D391; border-radius: 8px; padding: 22px; text-align: center; }
.form-success .fs-icon { font-size: 30px; margin-bottom: 8px; }
.form-success p { color: #276749; font-weight: 700; font-size: 15px; }
.form-success .fs-sub { color: #555; font-size: 13px; font-weight: 400; margin-top: 6px; line-height: 1.7; }

/* ==========================================================================
   21. Contact — Office cards
   ========================================================================== */
.offices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.office-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 24px 22px; }
.office-card.main { border-color: #FFD700; background: linear-gradient(135deg, #fff 0%, #FFF8E7 100%); }
.office-flag { font-size: 28px; margin-bottom: 10px; }
.office-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 10px; }
.office-card.main .office-badge { background: #FFD700; color: #8B0000; }
.office-card:not(.main) .office-badge { background: #F0F0F0; color: #666; }
.office-card h3 { font-size: 17px; font-weight: 800; color: #1A1A1A; margin-bottom: 4px; }
.city-it { font-size: 13px; color: #888; margin-bottom: 12px; }
.address { font-size: 13px; color: #555; line-height: 1.7; }
.office-tel { font-size: 14px; color: #B22222; font-weight: 700; margin-top: 10px; }
.office-hours { font-size: 12px; color: #999; margin-top: 5px; }

/* ==========================================================================
   22. Contact — Promise box
   ========================================================================== */
.promise-box { background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%); border-radius: 12px; padding: 32px 28px; color: #fff; text-align: center; position: relative; overflow: hidden; margin-top: 24px; }
.promise-box::before { content: ""; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 215, 0, 0.05); }
.promise-box h3 { font-size: 18px; font-weight: 800; color: #FFD700; margin-bottom: 12px; position: relative; z-index: 1; }
.promise-box p { font-size: 14px; opacity: 0.88; line-height: 1.85; position: relative; z-index: 1; margin-bottom: 6px; }
.promise-specs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.promise-spec { background: rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.3); border-radius: 8px; padding: 10px 20px; text-align: center; }
.ps-val { font-size: 20px; font-weight: 800; color: #FFD700; }
.ps-lbl { font-size: 11px; color: rgba(255, 255, 255, 0.65); margin-top: 2px; }

/* ==========================================================================
   23. Contact — Preparation items
   ========================================================================== */
.prep-item { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 18px 22px; margin-bottom: 12px; }
.prep-item .qi { font-size: 14px; font-weight: 700; color: #1A1A1A; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.prep-item .qi::before { content: "\2713"; background: #B22222; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; margin-top: 2px; }
.prep-item .ans { font-size: 13px; color: #555; line-height: 1.8; padding-left: 26px; }

/* ==========================================================================
   24. FAQ
   ========================================================================== */
.faq-item { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px 22px; margin-bottom: 12px; }
.faq-item .question, .faq-q { font-size: 15px; font-weight: 700; color: #1A1A1A; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.faq-item .question::before, .faq-q::before { content: "Q"; background: #B22222; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.faq-item .answer, .faq-a { font-size: 14px; color: #555; line-height: 1.8; padding-left: 28px; }
.faq-more { text-align: center; margin-top: 24px; }
.faq-more a { color: #B22222; font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 2px solid #FFD700; padding-bottom: 2px; }

/* ==========================================================================
   25. Normativa box (homepage)
   ========================================================================== */
.norm-box { background: #F8F8F8; border: 1px solid #ddd; border-left: 4px solid #B22222; border-radius: 8px; padding: 20px 24px; }
.norm-box .norm-title { font-size: 14px; font-weight: 700; color: #B22222; margin-bottom: 10px; }
.norm-box p { font-size: 14px; color: #555; line-height: 1.8; }

/* ==========================================================================
   26. CTA Section (final call-to-action)
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, #B22222, #8B0000);
    color: #fff;
    padding: 56px 24px;
    text-align: center;
}

.cta-section--rounded { border-radius: 12px; margin: 36px 0; }
.cta-section h2 { font-size: 28px; margin-bottom: 12px; font-weight: 800; }
.cta-section .sub { opacity: 0.9; margin-bottom: 30px; font-size: 15px; line-height: 1.7; }
.cta-section .cta-btn { margin: 6px; }
.cta-contact, .cta-info { margin-top: 28px; font-size: 14px; opacity: 0.8; line-height: 2; }
.cta-contact a, .cta-info a { color: #FFD700; text-decoration: none; }
.cta-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.cta-pill { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; font-size: 13px; padding: 5px 14px; border-radius: 20px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   27. Links
   ========================================================================== */
a.internal, a.int { color: #B22222; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
a.internal:hover, a.int:hover { color: #8B0000; }

/* ==========================================================================
   28. Footer
   ========================================================================== */
.site-footer-vies { background: #1A1A1A; color: #aaa; padding: 44px 0 24px; font-size: 13px; }
.site-footer-vies a { color: #FFD700; text-decoration: none; }
.site-footer-vies a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; margin-bottom: 28px; }
.footer-grid h4, .footer-col h4 { color: #FFD700; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.footer-grid a, .footer-col a { display: block; margin-bottom: 8px; color: #bbb; }
.footer-grid a:hover, .footer-col a:hover { color: #FFD700; }
.footer-grid p, .footer-col p { margin-bottom: 6px; color: #bbb; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; color: #666; }
.footer-bottom a { color: #888; margin: 0 8px; font-size: 12px; }

/* ==========================================================================
   29. WeChat floating widget
   ========================================================================== */
.vies-wechat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
}

.wechat-widget__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #07C160;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 28px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(7, 193, 96, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wechat-widget__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(7, 193, 96, 0.5);
}

.wechat-widget__icon { font-size: 20px; }

.wechat-widget__panel {
    display: none;
    position: absolute;
    bottom: 56px;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    width: 220px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.vies-wechat-widget.is-open .wechat-widget__panel { display: block; }

.wechat-widget__header {
    font-size: 14px;
    font-weight: 700;
    color: #07C160;
    margin-bottom: 12px;
}

.wechat-widget__qr {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 6px;
    background: #fff;
}

.wechat-widget__id {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    word-break: break-all;
    margin-bottom: 4px;
}

.wechat-widget__hint {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .vies-wechat-widget { right: 12px; bottom: 12px; }
    .wechat-widget__label { display: none; }
    .wechat-widget__toggle { padding: 12px 14px; border-radius: 50%; }
    .wechat-widget__panel { width: 190px; right: -4px; }
    .wechat-widget__qr { width: 140px; height: 140px; }
}

/* ==========================================================================
   30. Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .site-header-vies .container { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 2px;
        padding: 12px 0 4px;
        margin-left: 0;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a {
        padding: 12px 14px;
        border-radius: 6px;
        text-align: left;
        text-transform: none;
        font-size: 15px;
    }
    .main-nav a.cta-nav {
        margin-left: 0;
        margin-top: 4px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 26px; }
    .hero { padding: 40px 16px 36px; }
    .hero--home { padding: 44px 16px 40px; }
    .problem-grid,
    .service-specs,
    .why-grid,
    .testimonials-grid,
    .benefits,
    .channels-grid,
    .offices-grid,
    .form-row { grid-template-columns: 1fr; }
    .step { flex-direction: column; gap: 10px; }
    .related-grid { grid-template-columns: 1fr; }
    .timeline-item { flex-direction: column; gap: 6px; }
    .timeline-year { min-width: auto; }
    .cta-section h2 { font-size: 22px; }
    .form-box { padding: 22px 16px; }
    .promise-specs { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .logo-title { font-size: 14px; }
    .logo-sub { font-size: 11px; }
    .logo img { height: 30px; }
}

/* ==========================================================================
   30. Override GeneratePress defaults on VIES templates
   ========================================================================== */

/* GP's .one-container .container sets white bg + dark text — override for header */
.site-header-vies,
.site-header-vies .container,
.one-container .site-header-vies .container,
.separate-containers .site-header-vies .container {
    background: #B22222 !important;
    background-color: #B22222 !important;
    color: #fff !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force nav visibility */
.site-header-vies .main-nav {
    display: flex !important;
}

.site-header-vies .main-nav a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.site-header-vies .main-nav a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

.site-header-vies .main-nav a.cta-nav {
    color: #8B0000 !important;
    background: #FFD700 !important;
}

.site-header-vies .logo-title {
    color: #fff !important;
}

.site-header-vies .logo-sub {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* GP also applies padding/bg to generic .container — override for footer too */
.site-footer-vies,
.site-footer-vies .container,
.one-container .site-footer-vies .container,
.separate-containers .site-footer-vies .container {
    background: #1A1A1A !important;
    background-color: #1A1A1A !important;
    color: #aaa !important;
    border: none !important;
    box-shadow: none !important;
}

/* CTA section override — GP sets white bg on .container inside colored sections */
.cta-section {
    background: linear-gradient(135deg, #B22222, #8B0000) !important;
    color: #fff !important;
}

.cta-section .container,
.one-container .cta-section .container,
.separate-containers .cta-section .container {
    background: transparent !important;
    background-color: transparent !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.cta-section h2,
.cta-section .sub,
.cta-section .cta-contact,
.cta-section .cta-info {
    color: #fff !important;
}

.cta-section .cta-contact a,
.cta-section .cta-info a {
    color: #FFD700 !important;
}

/* Same fix for rounded CTA inside .container */
.cta-section--rounded {
    background: linear-gradient(135deg, #B22222, #8B0000) !important;
}

/* Hero section — ensure GP doesn't override colors */
.hero,
.hero--home,
.hero--page {
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%) !important;
    color: #fff !important;
}

.hero .subtitle,
.hero p {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Problem section cards — GP overrides backgrounds */
.problem-section,
.service-section,
.steps-section,
.why-section,
.testimonials-section,
.faq-section,
.norm-section {
    color: #2D2D2D !important;
}

.one-container .problem-section .container,
.one-container .service-section .container,
.one-container .steps-section .container,
.one-container .why-section .container,
.one-container .testimonials-section .container,
.one-container .faq-section .container,
.one-container .norm-section .container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .site-header-vies .main-nav {
        display: none !important;
    }
    .site-header-vies .main-nav.is-open {
        display: flex !important;
    }
}

/* ==========================================================================
   31. WordPress admin bar fix
   ========================================================================== */
.admin-bar .site-header-vies { top: 32px; }

@media (max-width: 782px) {
    .admin-bar .site-header-vies { top: 46px; }
}
