@charset "UTF-8";

/* Variables */
:root {
    --color-primary: #4a4036;
    /* Deep Taupe/Warm Brown for authoritative tone */
    --color-secondary: #8b7a69;
    /* Mid-tone beige/brown for highlights */
    --color-accent: #c1a17c;
    /* Elegant warm beige/gold */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-gray: #f9f6f0;
    --color-border: #e6dace;

    --font-heading: 'Noto Serif JP', 'YuMincho', 'Hiragino Mincho ProN', serif;
    --font-body: 'Noto Serif JP', 'YuMincho', 'Hiragino Mincho ProN', serif;
    --font-en: 'Montserrat', 'Noto Serif JP', serif;
}

/* Reset & Base */
body.medical-institution-body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
}

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-top: 0;
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 4rem;
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
}

.section-title span {
    position: relative;
    z-index: 2;
}

.section-title::before {
    content: attr(data-en);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(193, 161, 124, 0.2);
    font-size: 5rem;
    font-style: italic;
    font-family: var(--font-en);
    font-weight: 100;
    white-space: nowrap;
    line-height: 1;
    z-index: 1;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%) rotate(90deg);
    width: 2px;
    height: 40px;
    background-color: var(--color-accent);
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .section-title::before {
        font-size: 2.5rem;
        top: 5px;
    }
}

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

.mt-40 {
    margin-top: 40px;
}

.bg-gray {
    background-color: var(--color-bg-gray);
}

/* Layout Containers */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Buttons */
.btn-wrap {
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.05em;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-primary:visited,
.btn-primary:active {
    color: #fff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-accent);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-primary:hover {
    border-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn::after {
    content: '→';
    margin-left: 10px;
    font-family: var(--font-en);
}

/* Header */
.page-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    margin: 0;
    line-height: 1;
}

.header-logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
}

.header-logo a span {
    display: block;
    font-size: 0.8rem;
}

/* Nav Desktop */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 30px;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list>li {
    position: relative;
    margin: 0 15px;
}

.nav-list>li>a,
.nav-list>li>.nav-parent {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-list>li>a:hover,
.nav-list>li>.nav-parent:hover,
.nav-list>li:hover>.nav-parent {
    color: var(--color-accent);
}

/* Dropdown */
.sub-nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: max-content;
    min-width: 250px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 3px solid var(--color-accent);
}

.has-child:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-nav li {
    border-bottom: 1px dashed var(--color-border);
}

.sub-nav li:last-child {
    border-bottom: none;
}

.sub-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.sub-nav a:hover {
    color: var(--color-accent);
    background-color: var(--color-bg-gray);
    padding-left: 25px;
    /* Subtle movement on hover */
}

/* Header Buttons and Tools */
.header-tools {
    display: flex;
    align-items: center;
}

.btn-contact {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-accent);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.btn-contact:hover {
    background-color: #a88c6c;
    color: #fff;
    opacity: 1;
}

.sp-contact {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    padding: 0;
    margin-left: 20px;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.menu-toggle .bar:nth-child(1) {
    top: 0;
}

.menu-toggle .bar:nth-child(2) {
    top: 11px;
}

.menu-toggle .bar:nth-child(3) {
    bottom: 0;
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Header Responsive */
@media screen and (max-width: 1024px) {
    .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: flex-start;
        align-items: center;
        padding-top: 80px;
        margin-right: 0;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .header-nav.is-active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list>li {
        width: 100%;
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list>li>a,
    .nav-list>li>.nav-parent {
        padding: 20px;
        font-size: 1.1rem;
    }

    .sub-nav {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: var(--color-bg-gray);
        display: block;
        /* SPでは出しっぱなしに変更 */
        opacity: 1;
        visibility: visible;
        padding: 0;
    }

    .has-child:hover .sub-nav,
    .has-child.is-open .sub-nav,
    .has-child.is-open:hover .sub-nav {
        display: block;
    }

    .sub-nav a {
        padding: 15px;
    }

    .pc-contact {
        display: none;
    }

    .sp-contact {
        display: block;
        margin-top: 30px;
        padding-bottom: 50px;
    }

    .menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(74, 64, 54, 0.5), rgba(74, 64, 54, 0.5)), url('../images/medical-institution/fv.webp') no-repeat center center/cover;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
    color: #fff;
}

.sp-only {
    display: none;
}

/* Intro Section */
.intro-row {
    display: flex;
    gap: 50px;
    align-items: center;
    /* Center images vertically to match text height better */
    margin-bottom: 60px;
}

.intro-row:last-child {
    margin-bottom: 0;
}

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

.intro-text {
    flex: 1;
}

.intro-text p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.intro-text .signature {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    text-align: right;
    margin-top: 30px;
    font-weight: 500;
}

.intro-image {
    width: 40%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

/* Overview Section */
.overview-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.overview-text {
    flex: 1;
}

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

.overview-text p {
    font-size: 1.05rem;
    line-height: 1.9;
}

.overview-image {
    width: 45%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

/* Facilities Section */
/* Facilities Section */
.facilities-section {
    background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url('../images/medical-institution/bg_facilities.png') no-repeat center center / cover;
    background-color: #faf9f7;
    position: relative;
}

.facilities-section .container {
    position: relative;
    z-index: 1;
}

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

.facility-btn {
    background-color: #fff;
    border: 1px solid var(--color-border);
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.facility-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(193, 161, 124, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.facility-btn:hover {
    border-color: var(--color-accent);
    box-shadow: 0 15px 30px rgba(74, 64, 54, 0.08);
    /* Deeper, softer shadow */
    transform: translateY(-8px);
}

.facility-btn:hover::before {
    opacity: 1;
}

.facility-btn .num {
    font-family: var(--font-en);
    font-size: 1.6rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: block;
    transition: color 0.3s ease;
}

.facility-btn .num::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 8px auto 0;
    transition: width 0.3s ease;
}

.facility-btn:hover .num::after {
    width: 40px;
    /* Expands line on hover */
}

.facility-btn .text {
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.5;
    display: block;
    position: relative;
    z-index: 1;
}

.facility-btn::after {
    content: '→';
    font-family: var(--font-en);
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: var(--color-accent);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.facility-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Flow Section */
.flow-steps {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 60px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.flow-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-step::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: -40px;
    width: 2px;
    background-color: var(--color-border);
    z-index: 1;
}

.flow-step:last-child::before {
    display: none;
}

.step-num {
    min-width: 50px;
    width: auto;
    padding: 0 10px;
    height: 50px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--color-primary);
}

.step-content {
    margin-left: 30px;
    padding-top: 10px;
}

.step-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.step-text {
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.8;
}

.step-text .notice {
    color: #d9534f;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

/* Footer */
.page-footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

.footer-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    margin: 0;
    line-height: 1;
}

.footer-logo a {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    font-family: var(--font-heading);
    display: inline-block;
    text-align: left;
}

.footer-logo a span {
    font-size: 0.8rem;
    display: block;
}

.footer-logo a:hover {
    color: var(--color-accent);
}

.footer-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.page-footer .copyright {
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .sp-only {
        display: block;
    }

    .section-padding {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        font-weight: 500;
    }

    .overview-subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .intro-content,
    .overview-content,
    .intro-row {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .intro-row.reverse {
        flex-direction: column-reverse;
    }

    .intro-image,
    .overview-image {
        width: 100%;
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        /* Reduce gap slightly for SP 2-column layout */
    }

    .facility-btn {
        padding: 15px 0;
        /* Reduced vertical padding */
        min-height: 140px;
        /* Reduced min height */
    }

    .facility-btn .num {
        font-size: 1.3rem;
        /* Scaled down from 1.6rem */
    }

    .flow-steps {
        padding: 40px 20px;
    }

    .flow-step {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .flow-step::before {
        display: none;
    }

    .step-num {
        font-size: 1.25rem;
        /* Scaled down from 1.5rem */
        margin-bottom: 10px;
    }

    .step-title {
        font-size: 1.15rem;
        /* Scaled down from header default */
    }

    .step-content {
        margin-left: 0;
        padding-top: 0;
    }

    .footer-bottom-info {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-logo a {
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 20px;
    }
}

/* Removed max-width 480px to keep 2 columns for facilities-grid */

/* ---------------------------------
   Subpage Shared Styles 
--------------------------------- */
.subpage-hero {
    padding: 120px 0 60px;
    background-color: var(--color-bg-gray);
    text-align: center;
}

.subpage-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 500;
}

.subpage-subtitle {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-top: 15px;
    font-family: var(--font-heading);
}

.subpage-content {
    padding: 60px 0;
    line-height: 1.8;
    color: var(--color-text);
}

.subpage-content p {
    margin-bottom: 1.5rem;
}

.important-notice {
    background-color: #fcf8f2;
    border-left: 4px solid var(--color-accent);
    padding: 25px;
    margin-top: 40px;
    border-radius: 4px;
}

.important-notice h4,
.important-notice .notice-title {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

.important-notice ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 0;
}

.important-notice li {
    margin-bottom: 10px;
}

.content-list {
    list-style: none;
    /* Custom bullet */
    margin-left: 0;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.content-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.content-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.sub-list {
    list-style: none;
    margin-top: 10px;
    padding-left: 20px;
    margin-bottom: 10px;
}

.sub-list li {
    margin-bottom: 5px;
}

.sub-list li::before {
    content: '-';
    color: var(--color-text);
}

.note-text {
    font-size: 0.9rem;
    color: #666;
    background-color: var(--color-bg-gray);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.sub-heading {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 700;
}

.content-heading {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-top: 50px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .subpage-hero {
        padding: 100px 0 40px;
    }

    .subpage-title {
        font-size: 1.6rem;
    }
}

/* ---------------------------------
   Access Section 
--------------------------------- */
.access-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.access-info {
    flex: 1;
}

.access-map-area {
    width: 55%;
}

.access-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.access-map img {
    display: block;
    width: 100%;
    height: auto;
}

.access-map-link {
    text-align: right;
    margin-top: 10px;
}

.access-map-link a {
    font-size: 0.95rem;
    color: var(--color-primary);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.access-map-link a::after {
    content: "→";
    font-family: var(--font-en);
    font-size: 1.1em;
}

.access-list {
    margin: 0;
}

.access-list dt {
    font-weight: 700;
    color: var(--color-primary);
    padding: 15px 0 5px;
    border-top: 1px solid var(--color-border);
}

.access-list dt:first-child {
    border-top: none;
    padding-top: 0;
}

.access-list dd {
    margin: 0 0 15px 0;
    line-height: 1.8;
}

.access-list dd .notice {
    color: #d9534f;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

@media screen and (max-width: 768px) {
    .access-content {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .access-map-area {
        width: 100%;
    }
}

/* ---------------------------------
   Sticky Contact Button
--------------------------------- */
.sticky-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-accent);
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sticky-contact-btn:visited,
.sticky-contact-btn:active {
    color: #fff;
}

.sticky-contact-btn::after {
    content: '→';
    margin-left: 10px;
    font-family: var(--font-en);
}

.sticky-contact-btn:hover {
    background-color: #a88c6c;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .sticky-contact-btn {
        bottom: 0;
        left: 0;
        right: auto;
        width: 100%;
        border-radius: 0;
        padding: 18px;
        font-size: 1.1rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .sticky-contact-btn:hover {
        transform: none;
    }

    .page-footer {
        padding-bottom: 80px;
    }
}

/* ---------------------------------
   Contact Form Styling
--------------------------------- */
.contact-section {
    padding: 60px 0 100px;
    background-color: var(--color-bg-gray);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px 60px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.wpcf7-form p {
    margin-bottom: 25px;
}

.wpcf7-form label {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-bg-gray);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-textarea:focus,
.wpcf7-form-control.wpcf7-select:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(193, 161, 124, 0.15);
}

.wpcf7-form-control.wpcf7-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 50px auto 0;
    padding: 20px 30px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.wpcf7-form-control.wpcf7-submit:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(193, 161, 124, 0.3);
}

.wpcf7-not-valid-tip {
    font-size: 0.9rem;
    color: #d9534f;
    margin-top: 8px;
    display: block;
}

.wpcf7-response-output {
    margin-top: 40px !important;
    border-radius: 6px;
    padding: 20px !important;
    text-align: center;
}

.hidden-fields-container {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

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

.page-block-quote {
    margin: 30px 0;
    padding: 25px 30px;
    background-color: #f9f9f9;
    border-left: 5px solid var(--accent-color);
}

.page-block-quote p {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    margin-top: 10px;
    font-style: italic;
    color: #666;
}
/* -------------------- Partners Section -------------------- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-height: 140px;
}

.partner-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(74, 64, 54, 0.08);
    transform: translateY(-8px);
    opacity: 1;
}

.partner-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

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

    .partner-item {
        min-height: 120px;
        padding: 20px;
    }
}
