/* ===================================
   Contacts Page — visual redesign
   =================================== */

/* --- Hero (self-contained; about-page.css is not loaded here) --- */
.hero--contacts {
    margin-top: 80px;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background: #f7f7f8;
    overflow: hidden;
}

.hero--contacts::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 126, 3, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero--contacts::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 10%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 126, 3, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container--contacts {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px 56px;
    position: relative;
    z-index: 1;
    width: 100%;
}

@media (min-width: 900px) {
    .hero-container--contacts {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.hero-content--contacts {
    max-width: 640px;
}

.hero-eyebrow--contacts {
    color: #F27E03;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero-title--contacts {
    color: #3E3E3E;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 20px;
}

.hero-subtitle--contacts {
    color: #6B6B6B;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 52ch;
}

.hero-ornament--contacts {
    display: none;
}

/* --- Main strip (gray platform) --- */
.contacts-section {
    padding: 48px 0 56px;
    background: #f0f1f3;
}

.contacts-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 900px) {
    .contacts-main {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.contacts-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* --- Panels (matched cards) --- */
.contacts-form-panel,
.contacts-info-panel {
    background: #fff;
    border: 1px solid #e8e5e0;
    border-radius: 12px;
    padding: 28px 28px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.contacts-form-panel {
    position: relative;
}

.contacts-info-panel {
    position: sticky;
    top: 100px;
    /* was align-self:start — prevented equal-height cards with the form column */
    align-self: stretch;
}

.contacts-form-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text, #3E3E3E);
    margin: 0 0 24px;
    line-height: 1.25;
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-height: 0;
}

.contacts-form-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 520px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text, #3E3E3E);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text, #3E3E3E);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #F27E03;
    box-shadow: 0 0 0 3px rgba(242, 126, 3, .15);
}

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

.contacts-submit {
    margin-top: auto;
    padding: 14px 24px;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    background: #F27E03;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.contacts-submit:hover {
    background: #d96e00;
}

.contacts-submit:active {
    transform: scale(.99);
}

.contacts-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.contacts-form-success {
    padding: 20px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    color: #065f46;
    font-weight: 500;
    max-width: 520px;
}

.contacts-form-success p {
    margin: 0;
}

.contacts-form-error {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    color: #991b1b;
    font-weight: 500;
    max-width: 520px;
}

.contacts-form-error p {
    margin: 0;
}

/* --- Info panel --- */
.contacts-info-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #F27E03;
    margin: 0 0 6px;
    font-weight: 600;
}

.contacts-info-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text, #3E3E3E);
    margin: 0 0 24px;
    line-height: 1.3;
}

.contacts-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.contacts-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contacts-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(242, 126, 3, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F27E03;
}

.contacts-info-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 4px;
}

.contacts-info-value {
    display: block;
    font-size: 0.95rem;
    color: var(--color-text, #3E3E3E);
    word-break: break-word;
}

a.contacts-info-value {
    text-decoration: none;
    transition: color .2s;
}

a.contacts-info-value:hover {
    color: #F27E03;
}

.contacts-info-footnote {
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid #ececec;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6B6B6B;
}

/* --- Map --- */
.contacts-map-section {
    padding: 40px 24px 64px;
    background: #f0f1f3;
}

.contacts-map-inner {
    max-width: 1120px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    line-height: 0;
}

@media (min-width: 900px) {
    .contacts-map-section {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.contacts-map-inner iframe {
    width: 100%;
    height: 450px;
    display: block;
    vertical-align: top;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 900px) {
    .hero--contacts {
        min-height: 0;
        margin-top: 72px;
    }

    .contacts-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contacts-info-panel {
        position: static;
        min-height: 0;
    }

    .contacts-info-list {
        flex: none;
    }

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

    .contacts-form-fields {
        max-width: none;
    }

    .contacts-submit {
        max-width: none;
    }

    .contacts-form-success,
    .contacts-form-error {
        max-width: none;
    }

    .contacts-form-fields {
        flex: none;
    }

    .contacts-submit {
        margin-top: 6px;
    }
}

@media (max-width: 600px) {
    .hero-container--contacts {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .contacts-form-panel,
    .contacts-info-panel {
        padding: 22px 20px 26px;
    }

    .contacts-form-heading {
        font-size: 1.35rem;
    }

    .contacts-map-section {
        padding-bottom: 40px;
    }

    .contacts-map-inner iframe {
        height: 280px;
    }
}
