.contact-section {
    position: relative;
    padding: 92px 0 90px;
    background: #ffffff;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0 0 auto 0;
    height: 340px;
    background: linear-gradient(160deg, #f6f8fc 0%, #eaf0f9 100%);
    pointer-events: none;
}

.contact-bg::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 165, 245, 0.16), transparent 70%);
}

.contact-pattern,
.contact-gradient {
    display: none;
}

.contact-hero {
    position: relative;
    max-width: 720px;
    margin: 0 auto 44px;
    padding: 0 20px;
    text-align: center;
}

.contact-hero .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(21, 101, 192, 0.08);
    color: #1565C0;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

.contact-hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: #1a202c;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.contact-hero p {
    font-size: 16.5px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 auto;
    max-width: 560px;
}

.contact-container {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}

[data-theme="dark"] .contact-section {
    background: #181c26;
}

[data-theme="dark"] .contact-bg {
    background: linear-gradient(160deg, #181c26 0%, #1f2430 100%);
}

[data-theme="dark"] .contact-hero .section-badge {
    background: rgba(66, 165, 245, 0.12);
    color: #6cb6f5;
}

[data-theme="dark"] .contact-hero h1 {
    color: #e6eaf2;
}

[data-theme="dark"] .contact-hero p {
    color: #a2acc0;
}

@media (max-width: 900px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .contact-section {
        padding: 72px 0 64px;
    }

    .contact-hero h1 {
        font-size: 30px;
    }

    .contact-hero p {
        font-size: 15px;
    }
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid #eaeef5;
    border-radius: 22px;
    padding: 34px 32px;
    box-shadow: 0 20px 50px rgba(21, 101, 192, 0.07);
}

.form-card-header {
    margin-bottom: 24px;
}

.form-card-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 6px;
}

.form-card-header p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

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

.contact-form-card .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.contact-form-card label {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.required-star {
    color: #dc2626;
}

.input-with-icon,
.textarea-with-icon {
    position: relative;
}

.input-with-icon > i,
.textarea-with-icon > i {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.textarea-with-icon > i {
    top: 16px;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dce4f0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 15px;
    color: #1a202c;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-icon input,
.input-with-icon select,
.textarea-with-icon textarea {
    padding-left: 42px;
}

.contact-form-card select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 38px;
    cursor: pointer;
}

.contact-form-card textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    border-color: #1565C0;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: #9aa7bd;
}

.field-error-text {
    display: none;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #dc2626;
}

.form-group.has-error .field-error-text {
    display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc2626;
}

.contact-form-card .iti {
    width: 100%;
}

.contact-form-card .iti .iti__tel-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dce4f0;
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
    color: #1a202c;
    box-sizing: border-box;
}

.contact-form-card .iti .iti__tel-input:focus {
    border-color: #1565C0;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
    outline: none;
}

.cf-turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.form-actions {
    margin-top: 4px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 28px;
    border: 0;
    border-radius: 12px;
    background: #1565C0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-submit-btn:hover {
    background: #0d47a1;
    transform: translateY(-2px);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

[data-theme="dark"] .contact-form-card {
    background: #1f2430;
    border-color: #333949;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .form-card-header h2 {
    color: #e6eaf2;
}

[data-theme="dark"] .form-card-header p {
    color: #a2acc0;
}

[data-theme="dark"] .contact-form-card label {
    color: #c3ccdb;
}

[data-theme="dark"] .contact-form-card input,
[data-theme="dark"] .contact-form-card select,
[data-theme="dark"] .contact-form-card textarea,
[data-theme="dark"] .contact-form-card .iti .iti__tel-input {
    background: #1c2029;
    border-color: #373d4c;
    color: #e6eaf2;
}

[data-theme="dark"] .contact-form-card input:focus,
[data-theme="dark"] .contact-form-card select:focus,
[data-theme="dark"] .contact-form-card textarea:focus,
[data-theme="dark"] .contact-form-card .iti .iti__tel-input:focus {
    border-color: #42A5F5;
    box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.12);
}

[data-theme="dark"] .contact-form-card input::placeholder,
[data-theme="dark"] .contact-form-card textarea::placeholder {
    color: #6b7488;
}

@media (max-width: 560px) {
    .contact-form-card {
        padding: 26px 20px;
    }

    .contact-form-card .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.contact-showcase {
    background: linear-gradient(180deg, #f8fafd 0%, #f1f5fb 100%);
    border: 1px solid #e6ebf4;
    border-radius: 22px;
    padding: 30px 28px;
    box-shadow: 0 18px 40px rgba(21, 101, 192, 0.06);
}

.timeline-wrapper {
    display: flex;
    flex-direction: column;
}

.timeline-step {
    display: flex;
    gap: 16px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #ffffff;
    border: 1px solid #e2e9f4;
    color: #1565C0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-step.active .step-circle {
    background: linear-gradient(135deg, #1565C0, #42A5F5);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(21, 101, 192, 0.35);
    animation: stepCirclePop 0.4s ease;
}

.step-line {
    position: relative;
    flex: 1;
    width: 2px;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 8px 0;
    min-height: 16px;
    overflow: hidden;
}

.step-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, #1565C0, #42A5F5);
}

.timeline-step.active .step-line::after {
    animation: stepLineFill 5s linear forwards;
}

.timeline-wrapper.paused .step-line::after {
    animation-play-state: paused;
}

.step-line.last {
    display: none;
}

.step-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 20px;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 9px 0;
}

.step-header:hover h3 {
    color: #1565C0;
}

.step-header:hover .step-toggle {
    color: #1565C0;
}

.step-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    transition: color 0.2s ease;
}

.timeline-step.active .step-header h3 {
    color: #1565C0;
}

.step-toggle {
    color: #94a3b8;
    font-size: 13px;
    transition: transform 0.3s ease, color 0.2s ease;
}

.timeline-step.active .step-toggle {
    transform: rotate(180deg);
    color: #1565C0;
}

.step-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.timeline-step.active .step-details {
    max-height: 600px;
    opacity: 1;
    padding-top: 6px;
}

.timeline-step.active .step-details > * {
    animation: stepDetailIn 0.4s ease both;
}

.timeline-step.active .step-details > *:nth-child(2) {
    animation-delay: 0.08s;
}

.timeline-step.active .step-details > *:nth-child(3) {
    animation-delay: 0.16s;
}

.timeline-step.active .step-details > *:nth-child(4) {
    animation-delay: 0.24s;
}

.timeline-step.active .metric-bar::after {
    animation: metricFill 0.9s 0.25s ease both;
}

@keyframes stepCirclePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes stepLineFill {
    to { height: 100%; }
}

@keyframes stepDetailIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes metricFill {
    from { width: 0; }
}

.step-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
    margin: 0 0 14px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(21, 101, 192, 0.18);
    color: #1565C0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-link:hover {
    background: rgba(21, 101, 192, 0.06);
    border-color: rgba(21, 101, 192, 0.35);
    color: #1565C0;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(21, 101, 192, 0.14);
}

.metric {
    margin-bottom: 16px;
}

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

.metric-label {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
}

.metric-value {
    font-size: 13.5px;
    font-weight: 700;
    color: #1565C0;
}

.metric-bar {
    height: 6px;
    border-radius: 6px;
    background: #e6ebf3;
    position: relative;
    overflow: hidden;
}

.metric-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--bar-width, 0%);
    border-radius: 6px;
    background: linear-gradient(90deg, #1565C0, #42A5F5);
    box-shadow: 0 0 6px rgba(66, 165, 245, 0.45);
}

.step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-tags span {
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(21, 101, 192, 0.06);
    border: 1px solid rgba(21, 101, 192, 0.14);
    color: #1565C0;
    font-size: 12px;
    font-weight: 600;
}

.schedule {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #eaeef5;
    font-size: 13.5px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-row:hover {
    border-color: rgba(21, 101, 192, 0.3);
    box-shadow: 0 3px 8px rgba(21, 101, 192, 0.08);
}

.schedule-row .day {
    color: #334155;
    font-weight: 600;
}

.schedule-row .hours {
    color: #64748b;
}

.schedule-row.closed .hours {
    color: #dc2626;
    font-weight: 600;
}

.address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #eaeef5;
    font-size: 13.5px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 14px;
}

.address i {
    color: #1565C0;
    margin-top: 2px;
}

.mini-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeef5;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.mini-map iframe {
    display: block;
}

[data-theme="dark"] .contact-showcase {
    background: linear-gradient(180deg, #20242f 0%, #1b1f29 100%);
    border-color: #343b4d;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .step-circle {
    background: #262b38;
    border-color: #3a4152;
    color: #6cb6f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .timeline-step.active .step-circle {
    background: linear-gradient(135deg, #1565C0, #42A5F5);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(21, 101, 192, 0.45);
}

[data-theme="dark"] .step-line {
    background: #373d4c;
}

[data-theme="dark"] .step-header:hover h3,
[data-theme="dark"] .step-header:hover .step-toggle {
    color: #6cb6f5;
}

[data-theme="dark"] .step-header h3 {
    color: #e6eaf2;
}

[data-theme="dark"] .timeline-step.active .step-header h3 {
    color: #6cb6f5;
}

[data-theme="dark"] .step-toggle {
    color: #8b93a5;
}

[data-theme="dark"] .timeline-step.active .step-toggle {
    color: #6cb6f5;
}

[data-theme="dark"] .step-desc {
    color: #a2acc0;
}

[data-theme="dark"] .contact-link {
    background: #262b38;
    border-color: rgba(108, 182, 245, 0.25);
    color: #6cb6f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .contact-link:hover {
    background: rgba(66, 165, 245, 0.12);
    border-color: rgba(108, 182, 245, 0.45);
    color: #6cb6f5;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .metric-label {
    color: #8b93a5;
}

[data-theme="dark"] .metric-value {
    color: #6cb6f5;
}

[data-theme="dark"] .metric-bar {
    background: #333949;
}

[data-theme="dark"] .step-tags span {
    background: rgba(66, 165, 245, 0.1);
    border-color: rgba(108, 182, 245, 0.22);
    color: #6cb6f5;
}

[data-theme="dark"] .schedule-row,
[data-theme="dark"] .address {
    background: #1c2029;
    border-color: #333949;
}

[data-theme="dark"] .schedule-row:hover {
    border-color: rgba(108, 182, 245, 0.35);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .schedule-row .day {
    color: #c3ccdb;
}

[data-theme="dark"] .schedule-row .hours {
    color: #a2acc0;
}

[data-theme="dark"] .schedule-row.closed .hours {
    color: #f87171;
}

[data-theme="dark"] .address {
    color: #a2acc0;
}

[data-theme="dark"] .address i {
    color: #6cb6f5;
}

[data-theme="dark"] .mini-map {
    border-color: #333949;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .mini-map iframe {
    filter: brightness(0.85) contrast(1.05);
}

@media (max-width: 560px) {
    .contact-showcase {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-step.active .step-circle,
    .timeline-step.active .step-line::after,
    .timeline-step.active .step-details > *,
    .timeline-step.active .metric-bar::after {
        animation: none;
    }
}
