/**
 * Premium hero inspection form — compact, centered card
 */

/* ── Hero form column ───────────────────────────────────────── */
.corp-hero__aside {
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .corp-hero__form-card {
        max-width: none;
        width: 100%;
        margin-inline: 0;
    }
}

@media (min-width: 1024px) {
    .corp-hero__aside {
        justify-content: flex-end;
    }
}

.corp-hero__form-card {
    width: 100%;
    max-width: 22.5rem; /* 360px */
    margin-inline: auto;
    background: #fff;
    border: 1px solid #d8e2ec;
    border-radius: 14px;
    box-shadow:
        0 2px 8px rgba(12, 31, 61, 0.06),
        0 16px 40px rgba(12, 31, 61, 0.12);
    overflow: hidden;
}

.corp-hero--has-image .corp-hero__form-card {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 20px 48px rgba(0, 0, 0, 0.28);
}

.corp-hero__form-card::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #005588, #0077a8);
}

/* ── Form shell ─────────────────────────────────────────────── */
.insp-form {
    display: flex;
    flex-direction: column;
}

/* Header */
.insp-form__header {
    padding: 1.125rem 1.25rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
    border-bottom: 1px solid #e8eef4;
}

.insp-form__badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #005588;
    background: #e8f4fa;
    border-radius: 4px;
}

.insp-form__title {
    margin: 0 0 0.35rem;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0c1f3d;
}

.insp-form__intro {
    margin: 0 auto;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
    max-width: 16rem;
}

/* Body */
.insp-form__body {
    padding: 1rem 1.25rem 0;
}

.insp-form__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 400px) {
    .insp-form__fields {
        grid-template-columns: 1fr 1fr;
        column-gap: 0.625rem;
    }

    .insp-form__field--full {
        grid-column: 1 / -1;
    }
}

.insp-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.insp-form__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.insp-form__label-hint {
    font-weight: 400;
    color: #94a3b8;
}

.insp-form__control {
    width: 100%;
    min-height: 42px;
    padding: 0.5625rem 0.75rem;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #d1dbe6;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.insp-form__control::placeholder {
    color: #94a3b8;
}

.insp-form__control:hover {
    border-color: #b8c9d9;
    background: #fff;
}

.insp-form__control:focus {
    border-color: #005588;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 85, 136, 0.12);
}

.insp-form__control--area {
    min-height: 4.25rem;
    resize: vertical;
    padding-top: 0.5625rem;
}

/* Error */
.insp-form__error {
    margin: 0.625rem 0 0;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

/* CTA block */
.insp-form__actions {
    margin-top: 0.875rem;
    padding-bottom: 1rem;
}

.insp-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(180deg, #006699 0%, #005588 100%);
    border: none;
    border-radius: 8px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 85, 136, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.insp-form__submit:hover:not(:disabled) {
    background: linear-gradient(180deg, #005588 0%, #004466 100%);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 6px 16px rgba(0, 85, 136, 0.35);
    transform: translateY(-1px);
}

.insp-form__submit:active:not(:disabled) {
    transform: translateY(0);
}

.insp-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.insp-form__submit-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.insp-form__submit-icon--spin {
    animation: insp-form-spin 0.8s linear infinite;
}

@keyframes insp-form-spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.insp-form__footer {
    padding: 0.75rem 1.25rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #e8eef4;
}

.insp-form__assurance {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
}

.insp-form__assurance li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #475569;
}

.insp-form__assurance svg {
    flex-shrink: 0;
    width: 0.75rem;
    height: 0.75rem;
    color: #16a34a;
}

.insp-form__privacy {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.4;
    color: #94a3b8;
    text-align: center;
}

/* Success state */
.insp-form__success {
    padding: 2rem 1.25rem;
    text-align: center;
}

.insp-form__success-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    color: #16a34a;
}

.insp-form__success-title {
    margin: 0 0 0.375rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0c1f3d;
}

.insp-form__success-note {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.insp-form__success-note a {
    color: #005588;
    font-weight: 600;
    text-decoration: none;
}

.insp-form__success-note a:hover {
    text-decoration: underline;
}

/* ── Contact section compact card ───────────────────────────── */
body.site-professional .lead-form-wrap--compact {
    width: 100%;
    max-width: 22.5rem;
    margin-inline: auto;
    padding: 1.25rem 1.25rem 1.375rem !important;
    border-radius: 14px;
    border: 1px solid #e2eaf2;
    background: #fff;
    box-shadow:
        0 2px 8px rgba(12, 31, 61, 0.05),
        0 12px 32px rgba(12, 31, 61, 0.08);
}

@media (min-width: 1024px) {
    body.site-professional .home-page #contact .home-contact__form.lead-form-wrap--compact {
        max-width: none;
        width: 100%;
        margin-inline: 0;
    }
}

body.site-professional .lead-form-wrap--compact::before {
    display: block;
    height: 3px;
    margin: -1.25rem -1.25rem 1rem;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, #005588, #2a9fd6);
}

body.site-professional .lead-form-wrap--compact h3 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
    text-align: center;
}

body.site-professional .lead-form-wrap--compact > div > p.text-sm {
    margin-bottom: 1rem !important;
    font-size: 0.8125rem;
    text-align: center;
    color: #64748b;
}

body.site-professional .lead-form-wrap--compact form.space-y-4 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.site-professional .lead-form-wrap--compact .form-field {
    min-height: 42px;
    padding: 0.5625rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

body.site-professional .lead-form-wrap--compact textarea.form-field {
    min-height: 4.25rem;
}

body.site-professional .lead-form-wrap--compact .btn-primary {
    min-height: 46px;
    font-size: 0.9375rem;
    border-radius: 8px;
}

body.site-professional .lead-form-wrap--compact form > p.text-xs {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
}

@media (max-width: 639px) {
    .corp-hero__form-card {
        max-width: 100%;
        border-radius: 12px;
    }

    .insp-form__header {
        padding: 1rem 1.125rem 0.875rem;
    }

    .insp-form__body {
        padding: 0.875rem 1.125rem 0;
    }

    .insp-form__footer {
        padding: 0.625rem 1.125rem 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .insp-form__submit:hover:not(:disabled) {
        transform: none;
    }
}
