/* =========================================================================
   Variables & Reset
   ========================================================================= */
:root {
    --color-primary: #33C685;
    --color-primary-hover: #29a870;
    --color-secondary: #5BC39E;
    --color-secondary-hover: #4bb38c;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-bg-light: #EBF5F8;
    --color-bg-white: #ffffff;
    --color-border: #e0e0e0;

    --font-en: 'Inter', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;

    --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ja);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.hidden-sp {
    display: inline;
}

/* =========================================================================
   Typography & Common Elements
   ========================================================================= */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-title--gradient {
    background: linear-gradient(90deg, #1a8a5c, #5BC39E, #8ce8c8, #33C685, #1a8a5c);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientFlow 3s ease-in-out 2;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.section-title--small {
    font-size: 2.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: width var(--transition-fast);
    z-index: -1;
}

.btn:hover::after {
    width: 100%;
}

.btn::before {
    content: '〉';
    font-family: "Noto Sans JP";
    position: absolute;
    right: 20px;
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.btn:hover::before {
    transform: translateX(5px);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 18px 48px 18px 36px;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 14px 40px 14px 30px;
}

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

.btn--header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 30px 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn--header::before {
    right: 12px;
}

.btn--large {
    padding: 20px 60px 20px 40px;
    font-size: 1.1rem;
}

/* =========================================================================
   Header
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.header.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__nav-list {
    display: flex;
    gap: 30px;
}

.header__nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.header__nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.header__nav-list a:hover::after {
    width: 100%;
}

/* Hamburger (Mobile only) */
.header__hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 101;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero__bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 10s ease-out;
}

.hero.is-active .hero__bg {
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: -1;
}

.hero__container {
    width: 100%;
}

.hero__content {
    color: var(--color-white);
    max-width: 800px;
}

.hero__title-en {
    font-family: var(--font-en);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero__title-ja {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero__scroll {
    position: absolute;
    right: 50px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hero__scroll-text {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-white);
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    margin-bottom: 20px;
}

.hero__scroll-line {
    width: 1px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    animation: scrollLine 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollLine {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* =========================================================================
   About (WHAT WE DO)
   ========================================================================= */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, #f0f8f9 0%, #ffffff 100%);
    position: relative;
}

.about__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about__content {
    flex: 1;
    max-width: 500px;
}

.about__text {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 40px;
    color: var(--color-text-main);
}

.about__image-wrapper {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.about__image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-slow);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* =========================================================================
   Service
   ========================================================================= */
.service {
    padding: 120px 0;
    background-color: var(--color-bg-white);
}

.service__list {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.service__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.service__item--reverse {
    flex-direction: row-reverse;
}

.service__image-wrapper {
    flex: 1;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.service__image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0.1;
    mix-blend-mode: overlay;
    transition: opacity var(--transition-fast);
}

.service__item:hover .service__image-wrapper::after {
    opacity: 0;
}

.service__image-wrapper img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service__item:hover .service__image-wrapper img {
    transform: scale(1.05);
}

.service__content {
    flex: 1;
    max-width: 480px;
}

.service__title {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
}

.service__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-main);
}



/* =========================================================================
   Middle CTA
   ========================================================================= */
.cta-mid {
    position: relative;
    padding: 80px 0;
    color: var(--color-white);
    background-color: var(--color-secondary);
    /* フォールバック */
    overflow: hidden;
}

.cta-mid__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(28, 157, 169, 0.85), rgba(7, 44, 114, 0.85)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* パララックス */
    z-index: 0;
}

.cta-mid__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-mid__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.cta-mid__text {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.9;
}

.cta-mid__btn-wrapper {
    flex-shrink: 0;
}

.btn--cta {
    background-color: #55c589;
    /* 画像に近いグリーン */
    color: var(--color-white);
    border: none;
    font-weight: 600;
    padding: 16px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn--cta:hover {
    background-color: #4eb57d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .cta-mid__inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-mid__title {
        font-size: 1.6rem;
    }
}

/* =========================================================================
   News
   ========================================================================= */
.news {
    padding: 100px 0;
    background-color: #fcfcfc;
}

.news__list-wrapper {
    max-width: 800px;
    margin: 40px auto 0;
}

.news__link {
    display: flex;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    transition: opacity var(--transition-fast);
}

.news__link:hover {
    opacity: 0.7;
}

.news__tag {
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-right: 24px;
}

.news__text {
    font-size: 1.1rem;
}



/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: var(--color-bg-dark);
    /* Assume #333333 or similar, fallback below */
    background-color: #333333;
    color: var(--color-white);
    padding: 80px 0 0;
}

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

.footer__left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.footer__message {
    font-size: 0.9rem;
    color: var(--color-text-light);
    color: #cccccc;
}

.footer__right {
    display: flex;
    align-items: center;
}

.footer__nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer__nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-white);
    transition: color var(--transition-fast);
}

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

/* フッター内のお問い合わせボタン用スタイル調整 */
.btn--footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 32px 12px 24px;
    box-shadow: none;
    border-radius: 4px;
}

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

.footer__bottom {
    padding: 20px 0;
    text-align: center;
}

.footer__copy {
    font-size: 0.75rem;
    color: #999999;
    letter-spacing: 0.05em;
}

/* スマホ表示用 (768px以下を想定) */
@media screen and (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer__nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* =========================================================================
   Animations (Reveal on Scroll)
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--left {
    transform: translateX(-40px);
}

.reveal--right {
    transform: translateX(40px);
}

.reveal--up {
    transform: translateY(40px);
}

/* Gradient Title Animation */
.animate-title-gradient {
    /* グラデーション背景をテキストにクリップ */
    /* より変化をわかりやすくするため、白と明るいエメラルドグリーンを使用 */
    background: linear-gradient(to right, var(--color-primary) 0%, #b3ffce 40%, rgba(255, 255, 255, 0.8) 50%, #b3ffce 60%, #63c79b 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-position: 200% center;
}

.animate-title-gradient.is-visible {
    animation: titleGradientSweep 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes titleGradientSweep {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* Delay modifiers */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* =========================================================================
   Media Queries
   ========================================================================= */
@media screen and (max-width: 992px) {
    .hero__title-en {
        font-size: 3.5rem;
    }

    .about__inner {
        flex-direction: column;
        text-align: center;
    }

    .section-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about__image {
        transform: none;
    }

    .about__image:hover {
        transform: none;
    }

    .service__item,
    .service__item--reverse {
        flex-direction: column;
        gap: 40px;
    }

    .service__image-wrapper {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .hidden-sp {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    /* Header Mobile */
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }

    .header.is-open .header__nav {
        right: 0;
    }

    .header__nav-list {
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
        gap: 20px;
    }

    .header__nav-list a {
        font-size: 1.2rem;
    }

    .header__hamburger {
        display: block;
    }

    .header__hamburger span {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--color-primary);
        transition: 0.3s;
    }

    .header__hamburger span:nth-child(1) {
        top: 0;
    }

    .header__hamburger span:nth-child(2) {
        top: 9px;
    }

    .header__hamburger span:nth-child(3) {
        bottom: 0;
    }

    .header.is-open .header__hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .header.is-open .header__hamburger span:nth-child(2) {
        opacity: 0;
    }

    .header.is-open .header__hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero */
    .hero__title-en {
        font-size: 2.8rem;
    }

    .hero__title-ja {
        font-size: 1.2rem;
    }

    .hero__scroll {
        right: 20px;
    }

    /* General */
    .section-title {
        font-size: 3rem;
    }

    .about,
    .service,
    .news,
    .contact {
        padding: 80px 0;
    }

    /* Footer */
    .footer__nav ul {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* =========================================================================
   Company Page Layout
   ========================================================================= */
.page-company {
    background-color: #f7f9fa;
}

.company-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-hero__bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.company-hero__bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.company-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.company-hero__content {
    color: var(--color-white);
    text-align: center;
    width: 100%;
}

.company-hero__title-en {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.company-hero__title-ja {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Mission Vision */
.mission-vision {
    padding: 120px 0 80px;
    background-color: var(--color-white);
}

.mission-vision__block {
    max-width: 800px;
    margin: 0 auto 80px;
}

.mission-vision__content h3 {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 30px;
}

.mission-vision__content p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--color-text-main);
}

/* Strength */
.strength {
    padding: 100px 0;
    background-color: #fcfcfc;
}

.strength__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.strength__card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.strength__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.strength__title {
    font-size: 1.3rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 700;
}

.strength__text {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* About Info */
.about-info {
    padding: 100px 0 120px;
    background-color: var(--color-white);
}

.about-info__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-info__content {
    flex: 1;
    max-width: 500px;
}

.about-info__list {
    margin-top: 40px;
}

.about-info__list li {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.about-info__list dt {
    width: 30%;
    font-weight: 600;
    color: var(--color-text-main);
}

.about-info__list dd {
    width: 70%;
    line-height: 1.8;
}

.about-info__address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.about-info__address p {
    margin: 0;
}

.btn--map {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 40px;
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--map::before,
.btn--map::after {
    display: none;
}

.btn--map:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-info__image-wrapper {
    flex: 1;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-info__image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-info__image-wrapper:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 992px) {
    .strength__grid {
        grid-template-columns: 1fr;
    }

    .about-info__inner {
        flex-direction: column;
    }

    .about-info__image-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .about-info__address {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* =========================================================================
   Contact Page Layout
   ========================================================================= */
.page-contact {
    background-color: #f7f9fa;
}

.page-contact .header--subpage {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.contact-form-section {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.contact-form__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1c9da9 100%);
    z-index: -2;
}

.contact-form__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.contact-form__container .section-title,
.contact-form__container .section-subtitle {
    color: var(--color-white);
}

.contact-form__card {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 60px 80px;
    max-width: 800px;
    margin: 40px auto 0;
    box-shadow: var(--shadow-lg);
}

.contact-form__lead {
    font-size: 1.05rem;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

/* =========================================================================
   Form Controls
   ========================================================================= */
.form__group {
    margin-bottom: 30px;
}

.form__label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form__badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 500;
}

.form__badge--required {
    background-color: #E53E3E;
    color: var(--color-white);
}

.form__badge--optional {
    background-color: #E2E8F0;
    color: #4A5568;
}

.form__control {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    background-color: #F7FAFC;
    transition: all var(--transition-fast);
}

.form__control:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(51, 198, 133, 0.2);
}

.form__control::placeholder {
    color: #A0AEC0;
}

.form__select-wrapper {
    position: relative;
}

.form__select-wrapper::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #718096;
    pointer-events: none;
}

.form__select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__submit {
    margin-top: 50px;
}

/* Button Loading State */
.btn.is-loading {
    color: transparent;
    pointer-events: none;
}

.btn__loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 1s ease-in-out infinite;
    display: none;
}

.btn.is-loading .btn__loader {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* =========================================================================
   Success Modal (Glassmorphism)
   ========================================================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.modal.is-active .modal__content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: var(--color-primary);
}

.modal__icon-circle {
    stroke-dasharray: 63;
    /* 2 * pi * r (r=10) ≈ 63 */
    stroke-dashoffset: 63;
}

.modal__icon-check {
    stroke-dasharray: 12;
    stroke-dashoffset: 12;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.modal__title {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.modal__text {
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.8;
    margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
    .contact-form__card {
        padding: 40px 20px;
    }

    .modal__content {
        padding: 40px 20px;
    }
}

/* Fix for smooth scroll with dynamically loaded header */
html {
    scroll-padding-top: 80px;
    /* Adjust based on header height */
}