/*
 * Shared inquiry form and technical-resource card.
 * Used by the homepage, product catalogue, customer-case and contact-page sections.
 */

.contact .contact-layout {
    align-items: flex-start;
}

.contact .contact-left,
.contact .contact-right,
.contact .lead-magnet-content,
.contact .form-fields {
    min-width: 0;
}

.contact .contact-left h2 {
    max-width: 12em;
    font-size: clamp(32px, 3.4vw, 44px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.contact .contact-form {
    width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: clamp(24px, 3vw, 40px);
}

.contact .contact-form-group {
    min-width: 0;
    margin-bottom: 20px;
}

.contact .contact-form-label {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.contact .contact-form-required {
    color: var(--brand-light, #A33A3C);
    font-weight: 700;
}

.contact .contact-form-input,
.contact .custom-select-trigger {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.055);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

.contact .contact-form-input {
    height: 54px;
    padding: 0 16px;
}

.contact textarea.contact-form-input {
    min-height: 128px;
    height: auto;
    padding: 15px 16px;
    resize: vertical;
}

.contact .contact-form-input::placeholder,
.contact .custom-select-trigger .placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.contact .contact-form-input:focus,
.contact .custom-select-trigger:focus,
.contact .custom-select-trigger.active {
    outline: 2px solid rgba(163, 58, 60, 0.36);
    outline-offset: 2px;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.075);
    box-shadow: none;
}

.contact select.contact-form-input {
    padding-right: 42px;
    background-color: rgba(255, 255, 255, 0.055);
}

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

.contact .contact-form-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.contact .contact-form-submit {
    min-height: 54px;
    height: auto;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.35;
}

.contact .contact-form-submit.contact-form-submit--secondary,
.contact .contact-form-submit.contact-form-submit--secondary:focus,
.contact .contact-form-submit.contact-form-submit--secondary:active {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

.contact .contact-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 2px 0 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.contact .contact-consent input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--brand-light, #A33A3C);
}

.contact .contact-form-feedback {
    display: none;
    margin: 0 0 14px;
    padding: 11px 13px;
    border-radius: 8px;
    color: #ffd7d7;
    background: rgba(160, 45, 49, 0.18);
    font-size: 13px;
    line-height: 1.5;
}

.contact .contact-form-feedback.is-visible {
    display: block;
}

.contact .contact-global-note {
    max-width: 44rem;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.contact .lead-magnet {
    width: 100%;
    margin: 24px 0 0;
    padding: 28px;
    border: 1px solid rgba(123, 41, 43, 0.24);
    border-radius: 14px;
    background: rgba(123, 41, 43, 0.07);
    display: flex;
    align-items: center;
    gap: 22px;
}

.contact .lead-magnet-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 12px;
    background: rgba(123, 41, 43, 0.13);
    color: var(--brand-light, #A33A3C);
}

.contact .lead-magnet-content {
    flex: 1;
}

.contact .lead-magnet-content h4 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

.contact .lead-magnet-content p {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.65;
}

.contact .lead-magnet-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.contact .lead-magnet-form input,
.contact .lead-magnet-form button {
    min-height: 50px;
    height: 50px;
    border-radius: 8px;
    font-family: inherit;
}

.contact .lead-magnet-form input {
    min-width: 0;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    font-size: 16px;
}

.contact .lead-magnet-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact .lead-magnet-form input:focus {
    outline: 2px solid rgba(163, 58, 60, 0.36);
    outline-offset: 2px;
    border-color: rgba(255, 255, 255, 0.3);
}

.contact .lead-magnet-form button {
    min-width: 116px;
    padding: 0 20px;
    background: var(--brand, #7B292B);
    color: #fff;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .contact .contact-form-submit.contact-form-submit--secondary:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.28);
    }
}

@media (max-width: 768px) {
    .contact {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .contact .contact-layout {
        flex-direction: column;
        gap: 34px;
    }

    .contact .contact-left,
    .contact .contact-right {
        width: 100%;
        order: initial;
    }

    .contact .contact-left h2 {
        max-width: none;
        margin-bottom: 28px;
        font-size: clamp(28px, 8vw, 32px);
        line-height: 1.25;
    }

    .contact .contact-form {
        padding: 20px;
    }

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

    .contact .contact-form-input,
    .contact .custom-select-trigger {
        min-height: 56px;
        font-size: 16px;
    }

    .contact .contact-form-input {
        height: 56px;
    }

    .contact textarea.contact-form-input {
        min-height: 132px;
        height: auto;
    }

    .contact .contact-form-actions {
        flex-direction: column;
    }

    .contact .contact-form-actions .contact-form-submit {
        flex: none !important;
        width: 100%;
        min-height: 54px;
    }

    .contact .lead-magnet {
        margin-top: 20px;
        padding: 20px;
        align-items: flex-start;
        gap: 18px;
    }

    .contact .lead-magnet-content h4 {
        font-size: 18px;
    }

    .contact .lead-magnet-content p {
        font-size: 15px;
    }

    .contact .lead-magnet-form {
        grid-template-columns: 1fr;
    }

    .contact .lead-magnet-form input,
    .contact .lead-magnet-form button {
        width: 100%;
        min-height: 54px;
        height: 54px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact .lead-magnet {
        flex-direction: column;
    }

    .contact .lead-magnet-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
}

@media (max-width: 360px) {
    .contact .contact-form,
    .contact .lead-magnet {
        padding: 16px;
    }
}

html[dir="rtl"] .contact select.contact-form-input {
    padding-right: 16px;
    padding-left: 42px;
    background-position: left 16px center;
}
