/* Contact page — layout, cards, form (banner uses global .page-header) */

.page-header .tagline {
    font-size: 18px;
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto 20px;
    line-height: 1.55;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.contact-page {
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(237, 137, 54, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 28%, var(--bg-light) 100%);
    padding: 48px 0 80px;
    font-size: 15px;
}

.contact-lead {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-medium);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 32px 40px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 22px 22px 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(237, 137, 54, 0.22);
}

.contact-card--accent {
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.contact-card--accent:hover {
    border-color: rgba(237, 137, 54, 0.35);
}

.contact-card--accent .contact-card-text {
    color: rgba(255, 255, 255, 0.78);
}

.contact-card--accent .contact-card-title {
    color: var(--bg-white);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.15) 0%, rgba(236, 201, 75, 0.12) 100%);
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.contact-card-icon--light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--safety-yellow);
}

.contact-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.contact-card-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.contact-card-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-word;
}

.contact-card-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.contact-card--accent .contact-card-link {
    color: var(--safety-yellow);
}

.contact-card--accent .contact-card-link:hover {
    color: #f6e08a;
}

.contact-card-link--arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-card-link--arrow i {
    font-size: 12px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.contact-card-link--arrow:hover i {
    transform: translateX(4px);
}

.contact-form-panel {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 28px 28px 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.contact-form-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 22px;
}

.contact-form-hint .req {
    color: #c53030;
    font-weight: 600;
}

.contact-form {
    max-width: none;
}

.contact-form .field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.contact-form .field label span {
    color: #c53030;
    font-weight: 700;
}

.name-field-group {
    margin-bottom: 18px;
}

.name-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.name-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.name-col input {
    width: 100%;
}

.field {
    margin-bottom: 18px;
}

.field.full {
    width: 100%;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: inherit;
    background: var(--bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:hover,
.field textarea:hover {
    border-color: #cbd5e0;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.2);
}

.field textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.5;
}

.submit-btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border: none;
    color: var(--bg-white);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(237, 137, 54, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.42);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 14px;
    opacity: 0.95;
}

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

    .contact-aside {
        order: 2;
    }

    .contact-form-panel {
        order: 1;
    }

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

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

    .contact-page {
        padding: 36px 0 64px;
    }
}

@media (max-width: 480px) {
    .contact-form-panel {
        padding: 22px 18px 26px;
    }

    .page-header .tagline {
        font-size: 16px;
        padding: 0 8px;
    }
}
