:root {
    --contact-header-height: 80px;
    --contact-ink: #102630;
    --contact-ink-soft: #58717e;
    --contact-panel: rgba(255, 255, 255, 0.95);
    --contact-panel-border: rgba(16, 38, 48, 0.12);
    --contact-accent: #e85b2f;
    --contact-accent-dark: #cf4320;
    --contact-primary: #0f2a35;
    --contact-secondary: #1f5568;
    --contact-surface: #eef4f6;
    --contact-success: #0f9d58;
    --contact-danger: #c62828;
    --contact-shadow: 0 24px 60px rgba(15, 42, 53, 0.14);
}

body.contact-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(232, 91, 47, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(31, 85, 104, 0.18), transparent 30%),
        linear-gradient(180deg, #f8fbfc 0%, #edf4f6 100%);
    color: var(--contact-ink);
}

.contact-main {
    min-height: calc(100vh - var(--contact-header-height));
    padding: 24px 0 28px;
}

.contact-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.contact-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
    gap: 24px;
    align-items: stretch;
}

.contact-copy,
.contact-form-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--contact-panel-border);
    border-radius: 28px;
    background: var(--contact-panel);
    box-shadow: var(--contact-shadow);
}

.contact-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    background:
        linear-gradient(145deg, rgba(15, 42, 53, 0.97), rgba(31, 85, 104, 0.95)),
        linear-gradient(180deg, #102630 0%, #1f5568 100%);
    color: #ffffff;
}

.contact-copy::after {
    content: "";
    position: absolute;
    right: -72px;
    top: -64px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.contact-copy__inner {
    position: relative;
    z-index: 1;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-copy h1 {
    margin: 18px 0 10px;
    font-family: Poppins, sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.contact-copy p {
    margin: 0;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.65;
}

.contact-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 18px;
}

.contact-highlight {
    border-radius: 18px;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-highlight strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.contact-highlight span {
    display: block;
    margin-top: 4px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-logos-heading {
    margin: 0 0 14px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.82);
}

.contact-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.contact-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(15, 42, 53, 0.08);
}

.contact-logo-card img {
    width: 100%;
    max-width: 100px;
    height: auto;
    display: block;
}

.contact-form-card {
    padding: 24px;
}

.contact-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(232, 91, 47, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

.contact-form-card > * {
    position: relative;
    z-index: 1;
}

.contact-form-card h2 {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 1.7rem;
    line-height: 1.15;
    color: var(--contact-ink);
}

.contact-form-card p {
    margin: 8px 0 0;
    color: var(--contact-ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

.contact-form {
    margin-top: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--contact-ink);
}

.contact-input,
.contact-select,
.contact-textarea {
    width: 100%;
    border: 1px solid rgba(16, 38, 48, 0.12);
    border-radius: 16px;
    background: #ffffff;
    color: var(--contact-ink);
    padding: 13px 14px;
    font-size: 0.96rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus,
.contact-range:focus {
    outline: none;
    border-color: rgba(31, 85, 104, 0.4);
    box-shadow: 0 0 0 4px rgba(31, 85, 104, 0.08);
}

.contact-textarea {
    min-height: 96px;
    resize: none;
}

.contact-phone-wrap {
    width: 100%;
}

.contact-phone-wrap .iti {
    width: 100%;
}

.contact-phone-wrap .iti__tel-input,
.contact-phone-wrap .iti input {
    width: 100%;
    border: 1px solid rgba(16, 38, 48, 0.12);
    border-radius: 16px;
    background: #ffffff;
    color: var(--contact-ink);
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 0.96rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-phone-wrap .iti input:focus {
    outline: none;
    border-color: rgba(31, 85, 104, 0.4);
    box-shadow: 0 0 0 4px rgba(31, 85, 104, 0.08);
}

.contact-phone-wrap .iti__selected-country {
    border-radius: 14px;
}

.contact-phone-wrap .iti__selected-country-primary {
    height: calc(100% - 2px);
    margin: 1px 0 1px 1px;
    border-radius: 14px;
    padding-left: 12px;
    padding-right: 10px;
}

.contact-phone-wrap .iti__country-container {
    padding: 0;
}

.contact-phone-wrap .iti__country-list {
    width: min(420px, calc(100vw - 32px));
    border: 1px solid rgba(16, 38, 48, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 40px rgba(15, 42, 53, 0.14);
}

.contact-phone-wrap .iti__search-input {
    border-radius: 12px;
    border: 1px solid rgba(16, 38, 48, 0.12);
}

.contact-phone-wrap .iti__search-input:focus {
    outline: none;
    border-color: rgba(31, 85, 104, 0.35);
    box-shadow: 0 0 0 4px rgba(31, 85, 104, 0.08);
}

.contact-phone-note {
    display: block;
    margin-top: 8px;
    color: var(--contact-ink-soft);
    font-size: 0.82rem;
    line-height: 1.45;
}

.contact-budget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-budget strong {
    color: var(--contact-primary);
    font-size: 1rem;
    font-weight: 700;
}

.contact-range {
    width: 100%;
    appearance: none;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--contact-primary), var(--contact-accent));
    cursor: pointer;
}

.contact-range::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffffff;
    border: 3px solid var(--contact-accent);
    box-shadow: 0 8px 18px rgba(15, 42, 53, 0.16);
}

.contact-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffffff;
    border: 3px solid var(--contact-accent);
    box-shadow: 0 8px 18px rgba(15, 42, 53, 0.16);
}

.contact-budget-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--contact-ink-soft);
    font-size: 0.82rem;
}

.contact-required {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--contact-ink-soft);
    font-size: 0.84rem;
    line-height: 1.5;
}

.contact-options {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.contact-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--contact-ink);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.contact-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--contact-accent);
    flex-shrink: 0;
}

.contact-consent {
    margin: 12px 0 0;
    color: var(--contact-ink-soft);
    font-size: 0.86rem;
    line-height: 1.5;
}

.contact-consent a {
    color: var(--contact-secondary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-consent a:hover,
.contact-consent a:focus-visible {
    color: var(--contact-accent-dark);
}

.contact-submit {
    width: 100%;
    margin-top: 16px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--contact-accent) 0%, var(--contact-accent-dark) 100%);
    color: #ffffff;
    padding: 15px 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 28px rgba(232, 91, 47, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 22px 32px rgba(232, 91, 47, 0.28);
    outline: none;
}

.contact-submit:disabled {
    opacity: 0.8;
    cursor: wait;
}

.contact-status {
    position: fixed;
    top: 96px;
    right: 16px;
    z-index: 70;
    width: min(420px, calc(100% - 32px));
    display: none;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid transparent;
    box-shadow: 0 18px 32px rgba(15, 42, 53, 0.12);
    backdrop-filter: blur(10px);
}

.contact-status.is-visible {
    display: block;
}

.contact-status--success {
    background: rgba(15, 157, 88, 0.12);
    border-color: rgba(15, 157, 88, 0.2);
    color: #0d683d;
}

.contact-status--error {
    background: rgba(198, 40, 40, 0.1);
    border-color: rgba(198, 40, 40, 0.18);
    color: #8b1e1e;
}

.contact-status strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.contact-status span {
    display: block;
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .contact-stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-copy,
    .contact-form-card {
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .contact-main {
        padding: 18px 0 28px;
    }

    .contact-shell {
        width: min(100% - 20px, 100%);
    }

    .contact-copy,
    .contact-form-card {
        border-radius: 24px;
        padding: 20px;
    }

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

    .contact-grid,
    .contact-highlights,
    .contact-logo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-required,
    .contact-budget {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-status {
        top: 88px;
    }
}

@media (max-height: 860px) and (min-width: 1181px) {
    .contact-main {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .contact-copy,
    .contact-form-card {
        padding: 22px;
    }

    .contact-copy h1 {
        font-size: clamp(1.9rem, 3.2vw, 3rem);
    }

    .contact-copy p,
    .contact-form-card p {
        font-size: 0.92rem;
    }

    .contact-highlights,
    .contact-logo-grid,
    .contact-form {
        margin-top: 16px;
    }
}
