.aimlcf-section,
.aimlcf-section * {
    box-sizing: border-box;
}

.aimlcf-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000000;
    background-image:
        radial-gradient(circle at 8% 0%, rgba(219, 43, 255, 0.18), transparent 28%),
        radial-gradient(circle at 96% 18%, rgba(255, 74, 95, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.aimlcf-inner {
    position: relative;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.aimlcf-header {
    max-width: 980px;
}

.aimlcf-title {
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 800;
    font-style: italic;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.aimlcf-highlight {
    --aimlcf-highlight-a: #ff4a5f;
    --aimlcf-highlight-b: #db2bff;
    display: inline-block;
    background: linear-gradient(90deg, var(--aimlcf-highlight-a), var(--aimlcf-highlight-b));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--aimlcf-highlight-b);
}

.aimlcf-subtitle {
    margin: 0 0 26px;
    font-size: clamp(14px, 1.3vw, 18px);
    line-height: 1.6;
    font-style: italic;
    max-width: 980px;
    opacity: 0.96;
}

.aimlcf-accent-line {
    --aimlcf-line-a: #d81bff;
    --aimlcf-line-b: #ff4b6b;
    width: 100%;
    max-width: 960px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--aimlcf-line-a), var(--aimlcf-line-b));
    box-shadow: 0 0 24px rgba(219, 43, 255, 0.25);
}

.aimlcf-grid {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.aimlcf-grid.aimlcf-no-map .aimlcf-form-wrap {
    flex-basis: 100% !important;
    max-width: 760px;
}

.aimlcf-form-wrap,
.aimlcf-map-wrap {
    min-width: 0;
}

.aimlcf-form-card,
.aimlcf-map-card {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aimlcf-form-card {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(8, 8, 8, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.aimlcf-form-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(219, 43, 255, 0.12), transparent 32%);
    pointer-events: none;
}

.aimlcf-form {
    position: relative;
    z-index: 1;
}

.aimlcf-fields {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
}

.aimlcf-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.aimlcf-field-width-100 {
    flex: 0 0 100%;
    width: 100%;
}

.aimlcf-field-width-50 {
    flex: 0 0 calc(50% - 8px);
    width: calc(50% - 8px);
}

.aimlcf-label {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.aimlcf-required {
    margin-left: 4px;
}

.aimlcf-control {
    display: block;
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(20, 20, 20, 0.12);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.aimlcf-control:focus {
    border-color: #db2bff;
    box-shadow: 0 0 0 4px rgba(219, 43, 255, 0.14);
}

textarea.aimlcf-control {
    min-height: 128px;
    resize: vertical;
}

select.aimlcf-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #8a8a8a 50%), linear-gradient(135deg, #8a8a8a 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.aimlcf-submit {
    --aimlcf-btn-a: #ff4a5f;
    --aimlcf-btn-b: #db2bff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    border: 0;
    cursor: pointer;
    background: linear-gradient(90deg, var(--aimlcf-btn-a), var(--aimlcf-btn-b));
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 30px rgba(219, 43, 255, 0.25);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.aimlcf-submit:hover,
.aimlcf-submit:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(219, 43, 255, 0.3);
}

.aimlcf-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.aimlcf-submit-icon svg,
.aimlcf-submit-icon i {
    width: 1em;
    height: 1em;
    display: block;
}

.aimlcf-message {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.aimlcf-message.is-success {
    display: block;
    color: #0e5a31;
    background: #dcfce7;
}

.aimlcf-message.is-error {
    display: block;
    color: #7f1d1d;
    background: #fee2e2;
}

.aimlcf-map-card {
    background: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.aimlcf-map-card iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 1024px) {
    .aimlcf-grid {
        flex-direction: column;
    }

    .aimlcf-form-wrap,
    .aimlcf-map-wrap {
        width: 100%;
        flex-basis: auto !important;
    }
}

@media (max-width: 767px) {
    .aimlcf-title {
        font-size: 30px;
    }

    .aimlcf-accent-line {
        height: 4px;
    }

    .aimlcf-field-width-50 {
        flex-basis: 100%;
        width: 100%;
    }

    .aimlcf-field {
        gap: 8px;
    }

    .aimlcf-submit {
        width: 100%;
    }
}
