/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero headline: white text with primary blue outline for contrast */
#hero .hero-text h1 {
    color: #ffffff;
    -webkit-text-stroke: 1.5px #3a3aa8; /* outline on WebKit */
    paint-order: stroke fill;           /* ensure stroke below fill where supported */
    text-shadow:
        0 0 1px #3a3aa8,
        0 0 2px #3a3aa8;               /* fallback outline for non-WebKit */
    font-size: clamp(1.875rem, 4.5vw, 2.75rem); /* slightly smaller than global h1 */
}

/* Simulator overrides: one-column centered with primary (blue) background */
#simulator .simulator-content {
    grid-template-columns: 1fr;            /* one column */
    max-width: 720px;                      /* centered narrow width */
    margin: 0 auto;                        /* center horizontally */
    background-color: #3a3aa8;             /* primary blue tone */
    color: white;                          /* text on blue */
    padding: 32px;                         /* inner spacing */
    border-radius: 12px;                   /* rounded corners */
}

#simulator .simulator-text {
    text-align: center;                    /* center heading */
    color: #3a3aa8;                        /* primary blue text */
}

/* Ensure custom checkboxes are visible on blue background inside simulator */
#simulator .simulator-content .checkbox-custom {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
}

/* White card for the form inside the blue container */
#simulator .simulator-form {
    background: #ffffff;
    color: #333;                 /* readable text on white */
    padding: 32px;               /* keep padding */
    border-radius: 12px;         /* keep rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

#simulator .simulator-form .checkbox-custom {
    border-color: #ddd;          /* neutral border on white card */
    background: #ffffff;         /* white background */
}

/* Policy section specific: enforce 1:1 column ratio */
#policy .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

#policy .container > h2 {
    grid-column: 1 / -1; /* make heading span full width above columns */
    margin-bottom: 8px;
}

#policy .image-content img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    #policy .container {
        grid-template-columns: 1fr; /* collapse to single column on mobile */
        gap: 24px;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1a1a1a;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #3a3aa8;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #333;
}

p {
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0.98);
}

.btn:hover {
    transform: scale(1.0);
    box-shadow: 0 4px 20px rgba(58, 58, 168, 0.3);
}

.btn-primary {
    background-color: #3a3aa8; /* unified primary blue */
    color: white;
    border-color: #3a3aa8;
}

.btn-primary:hover {
    background-color: #2e2e8a; /* darker blue on hover */
    border-color: #2e2e8a;
}



.btn-secondary {
    background-color: #6C757D;
    color: white;
    border-color: #6C757D;
}

.btn-secondary:hover {
    background-color: #545B62;
    border-color: #545B62;
}

.btn-white {
    background-color: white;
    color: #0066CC;
    border-color: white;
}

.btn-white:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline-white:hover {
    background-color: white;
    color: #3a3aa8;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: relative; /* allow centered logo */
}

.nav-brand a {
    font-size: 24px;
    font-weight: 700;
    color: #3a3aa8;
    text-decoration: none;
}

/* Centered header logo */
.nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* keep brand/menu clickable */
}

.nav-logo img {
    height: 70px;   /* match header height */
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .nav-logo img {
        height: 70px; /* keep consistent unless you want a smaller mobile header */
        width: auto;
    }
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3a3aa8;
}

.nav-cta {
    background-color: #3a3aa8;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-cta:hover {
    background-color: #2e2e8a;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Mobile CTA */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(58, 58, 168, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-cta.show {
    transform: translateY(0);
}

.mobile-cta-button {
    flex: 1;
    background-color: white;
    color: #3a3aa8;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    margin-right: 12px;
}

.mobile-cta-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

@media (min-width: 769px) {
    .mobile-cta {
        display: none;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-gray {
    background-color: #f8f9fa;
}

.section-primary {
    background-color: #3a3aa8;
    color: white;
}

/* (reverted) No special override for h2 in primary sections */

/* CTA section: use red background variant */
#cta.section-primary {
    background-color: #3a3aa8;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

#about .section-content {
    grid-template-columns: 1fr 1fr;
}

#about .image-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* About section: slightly larger paragraph text */
#about .text-content p {
    font-size: 18px; /* +1pt相当（約2px） */
}

/* Compare section specific: enforce 1:1 column ratio */
#compare .section-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

#compare .image-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Trust section specific: enforce 1:1 column ratio */
#trust .section-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

#trust .image-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Prominent note below compare two-column */
.compare-note {
    background-color: #dc3545; /* red */
    color: #fff;
    padding: 16px;
    font-size: clamp(1.25rem, 3vw, 1.75rem); /* match h3 base size */
    font-weight: 700;
    text-align: center;
    margin: 24px 0 0; /* add space from section above */
    border-radius: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    /* Centered canvas and avoid header overlap */
    width: 100%;
    max-width: 1920px;
    height: 800px; /* requested height */
    margin: 80px auto 0; /* 80px ~= header height */
}

.hero-content {
    display: grid;
    grid-template-columns: 3fr 2fr; /* widen text column (~60% / 40%) */
    gap: 40px;
    align-items: center;
    margin-bottom: 100px; /* raise block slightly by adding space from bottom */
}

/* Full-bleed hero background slideshow (behind content) */
#hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#hero .hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero .hero-bg .hero-bg-base {
    opacity: 1;
}

#hero .hero-bg .hero-bg-overlay {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#hero .container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    align-items: end; /* place content at the bottom */
}

/* Responsive fallbacks */
@media (max-width: 1280px) {
    .hero {
        height: 70vh; /* keep strong presence on smaller screens */
        margin-top: 70px; /* slightly smaller header allowance if needed */
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto; /* let content dictate height on mobile */
    }

    #hero .container {
        align-items: start; /* stack from top on mobile */
    }

    .hero-content {
        margin-bottom: 24px; /* smaller spacing on mobile */
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: #ffffff;
    background-color: #3a3aa8;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-width: 140px;
}

.feature-icon {
    font-size: 24px;
    min-width: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero CTA buttons: OFF gray, ON primary (#3a3aa8) */
#hero .hero-cta .btn {
    background-color: #6c757d; /* gray off */
    border-color: #6c757d;
    color: #ffffff;
}

#hero .hero-cta .btn:hover {
    background-color: #3a3aa8; /* on */
    border-color: #3a3aa8;
    color: #ffffff;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
    }
}

/* Risk Section */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.risk-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.risk-item p {
    text-align: left;
}

.risk-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert {
    background-color: #dc3545; /* red */
    border: 1px solid #dc3545;
    color: #ffffff; /* white */
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.alert h3 {
    color: #ffffff;
    margin: 0;
}

.alert p,
.alert strong,
.alert a {
    color: #ffffff;
    margin: 0;
}

/* Compare Section */
.compare-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

/* Highlight specific words in Risk heading */
#risk h2 .highlight-red {
    color: #dc3545;
}

/* Left align the rating rows */
.compare-rating {
    text-align: left;
}

.compare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row.highlight {
    background-color: #e7f3ff;
}

.compare-method {
    font-weight: 600;
    flex: 1;
}

.compare-rating {
    flex: 2;
    text-align: left;
}

.rating-good {
    color: #28a745;
    font-weight: bold;
}

.rating-ok {
    color: #ffc107;
    font-weight: bold;
}

.rating-bad {
    color: #dc3545;
    font-weight: bold;
}

/* Policy Section */
.policy-list {
    list-style: none;
    margin-bottom: 24px;
}

.policy-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.policy-list li:last-child {
    border-bottom: none;
}

/* Reasons Section */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.reason-item {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.reason-item:hover {
    transform: translateY(-4px);
}

.reason-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.section-cta {
    text-align: center;
    margin-bottom: 40px;
}

.reasons-image {
    text-align: center;
}

.reasons-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.pricing-item {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.pricing-item.featured {
    border: 2px solid #3a3aa8;
}

.pricing-item.featured::before {
    content: "人気";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000067;
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3a3aa8;
    margin: 16px 0;
}

.price span {
    font-size: 1.5rem;
    color: #666;
}

.price-note {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
}

.pricing-note {
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-disclaimer {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
}

/* Flow Section */
.flow-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.flow-step-vertical {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.flow-step-vertical:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 54px;
    bottom: -32px;
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, #3a3aa8, #e9ecef);
}

.flow-step-vertical .step-number {
    width: 48px;
    height: 48px;
    background-color: #3a3aa8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 1.25rem;
}

.step-content p {
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
    text-align: left; /* force left alignment for descriptions */
}

.flow-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.flow-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .flow-step-vertical {
        flex-direction: column;
        text-align: center;
    }

    .flow-images {
        grid-template-columns: 1fr;
    }
}

/* Simulator Section */
#simulator h2 {
    color: #ffffff;
}

.simulator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.simulator-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 24px;
}

/* Simulator form readability improvements */
#simulator .simulator-form label {
    display: block;
    font-weight: 700;           /* bold labels */
    text-align: left;           /* left-aligned */
    margin-bottom: 8px;
    color: #333;
}

#simulator .simulator-form .form-group {
    border-bottom: 1px solid #e9ecef; /* separator between items */
    padding-bottom: 16px;
    margin-bottom: 16px;
}

#simulator .simulator-form .form-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: inherit;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
    background: white;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    display: inline-block; /* ensure the box is visible next to text */
    vertical-align: middle;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: white;
    border-color: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0066CC;
    font-weight: bold;
}

/* Improve contrast on primary (blue) section background */
.section-primary .checkbox-custom {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
}

.result {
    background: rgba(255, 255, 255, 0.15);
    padding: 24px;
    border-radius: 8px;
    margin-top: 24px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.result.show {
    opacity: 1;
    transform: translateY(0);
}

.result-price {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 16px 0;
}

.result-note {
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 16px;
}

.simulator-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .simulator-content {
        grid-template-columns: 1fr;
    }

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

    .checkbox-group {
        flex-direction: column;
    }
}

/* Voice Section */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.voice-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.voice-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.voice-content {
    padding: 24px;
}

.voice-details {
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 12px;
}

.voice-comment {
    font-style: italic;
    color: #555;
    margin-bottom: 0;
}

/* Trust Section */
.trust-list {
    display: grid;
    gap: 24px;
}

.trust-item h3 {
    margin-bottom: 8px;
}

.trust-item p {
    margin-bottom: 0;
    color: #666;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.125rem;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #0066CC;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px;
}

.faq-answer p {
    margin-bottom: 0;
    color: #666;
}

/* CTA Section */
.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cta-text {
    text-align: center;
}

.cta-text h2 { color: #ffffff; }
.cta-text p { color: white; }

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

.cta-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .cta-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* CTA: one-column when there is no image block */
#cta .cta-content {
    grid-template-columns: 1fr;
    justify-items: center;      /* center the single column */
    text-align: center;
}

/* Contact Form */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    background: white;
    border: 1px solid #ddd;
    color: #333;
}

.contact-form .checkbox-custom {
    border-color: #ddd;
    background: white;
}

.required {
    color: #dc3545;
}

.privacy-link {
    color: #0066CC;
    text-decoration: underline;
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.photo-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

/* Footer */
.footer {
    background-color: #2d3436;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section p {
    color: #b2bec3;
    line-height: 1.6;
}

.phone-link {
    color: #3a3aa8;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.phone-link:hover {
    text-decoration: underline;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #636e72;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    color: #b2bec3;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90%;
    overflow: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin-bottom: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Image lazy loading */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }

    .contact-form {
        padding: 24px;
    }

    .modal-content {
        margin: 16px;
        width: calc(100% - 32px);
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #0066CC;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0066CC;
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #20207a;
        border-color: #20207a;
    }
    
    .section-primary {
        background-color: #20207a;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}