.wpcf7-form.cdfcp-form {
    --cdfcp-primary: #8d1733;
    --cdfcp-secondary: #e31e3d;
    --cdfcp-text: #172033;
    --cdfcp-muted: #667085;
    --cdfcp-border: #dfe4ec;
    --cdfcp-surface: #ffffff;
    margin: 0;
}

.cdfcp-layout,
.cdfcp-layout * {
    box-sizing: border-box;
}

.cdfcp-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.35fr);
    width: min(1180px, 100%);
    margin: 34px auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(19, 33, 68, 0.08);
    border-radius: 24px;
    box-shadow:
        0 24px 70px rgba(21, 28, 45, 0.12),
        0 4px 16px rgba(21, 28, 45, 0.06);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

.cdfcp-info {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    padding: clamp(34px, 5vw, 58px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.2), transparent 34%),
        linear-gradient(145deg, var(--cdfcp-primary), #5b0c22 70%);
}

.cdfcp-info::before,
.cdfcp-info::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 999px;
    pointer-events: none;
}

.cdfcp-info::before {
    right: -90px;
    bottom: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
}

.cdfcp-info::after {
    right: 42px;
    bottom: 26px;
    width: 92px;
    height: 92px;
    border: 18px solid rgba(255, 255, 255, 0.06);
}

.cdfcp-info__glow {
    position: absolute;
    z-index: -1;
    top: -80px;
    left: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--cdfcp-secondary);
    opacity: 0.36;
    filter: blur(44px);
}

.cdfcp-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    margin-bottom: 14px;
    padding: 5px 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
}

.cdfcp-kicker--dark {
    color: var(--cdfcp-primary);
    background: color-mix(in srgb, var(--cdfcp-primary) 8%, white);
    border-color: color-mix(in srgb, var(--cdfcp-primary) 18%, white);
}

.cdfcp-info__title,
.cdfcp-form-panel__title {
    margin: 0;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.cdfcp-info__title {
    max-width: 500px;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.04;
}

.cdfcp-info__description {
    max-width: 540px;
    margin: 20px 0 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.7;
}

.cdfcp-info__items {
    display: grid;
    gap: 14px;
}

.cdfcp-info-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    backdrop-filter: blur(7px);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.cdfcp-info-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.cdfcp-info-item__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.cdfcp-info-item__icon svg {
    width: 22px;
    height: 22px;
}

.cdfcp-info-item strong {
    display: block;
    margin: 1px 0 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.cdfcp-info-item span,
.cdfcp-info-item a {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.55;
}

.cdfcp-info-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.cdfcp-trust {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    line-height: 1.55;
}

.cdfcp-trust__icon {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    color: #fff;
}

.cdfcp-trust__icon svg {
    width: 100%;
    height: 100%;
}

.cdfcp-form-panel {
    position: relative;
    padding: clamp(34px, 5vw, 58px);
    background:
        linear-gradient(180deg, rgba(249, 250, 252, 0.86), #fff 22%);
}

.cdfcp-form-panel__title {
    color: var(--cdfcp-text);
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.08;
}

.cdfcp-form-panel__description {
    max-width: 650px;
    margin: 12px 0 28px;
    color: var(--cdfcp-muted);
    font-size: 15px;
    line-height: 1.65;
}

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

.cdfcp-form-fields > p,
.cdfcp-form-fields > div,
.cdfcp-form-fields > label {
    grid-column: 1 / -1;
    margin: 0 !important;
}

.cdfcp-form-fields .cdfcp-field--half {
    grid-column: span 1;
}

.cdfcp-form-fields label {
    display: grid;
    gap: 7px;
    color: var(--cdfcp-text);
    font-size: 13px;
    font-weight: 750;
}

.cdfcp-form-fields .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.cdfcp-form-fields input[type="text"],
.cdfcp-form-fields input[type="email"],
.cdfcp-form-fields input[type="tel"],
.cdfcp-form-fields input[type="url"],
.cdfcp-form-fields input[type="number"],
.cdfcp-form-fields input[type="date"],
.cdfcp-form-fields select,
.cdfcp-form-fields textarea {
    width: 100%;
    max-width: none;
    min-height: 52px;
    margin: 0;
    padding: 13px 15px;
    color: var(--cdfcp-text);
    background: #fff;
    border: 1px solid var(--cdfcp-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
    outline: none;
    font: 500 15px/1.35 inherit;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background-color 0.16s ease;
}

.cdfcp-form-fields textarea {
    min-height: 170px;
    resize: vertical;
}

.cdfcp-form-fields input:focus,
.cdfcp-form-fields select:focus,
.cdfcp-form-fields textarea:focus {
    background: #fff;
    border-color: var(--cdfcp-primary);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--cdfcp-primary) 12%, transparent),
        0 6px 20px rgba(16, 24, 40, 0.05);
}

.cdfcp-form-fields input::placeholder,
.cdfcp-form-fields textarea::placeholder {
    color: #98a2b3;
}

.cdfcp-form-fields .wpcf7-not-valid {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.09) !important;
}

.cdfcp-form-fields .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #b42318;
    font-size: 12px;
    font-weight: 650;
}

.cdfcp-form-fields input[type="submit"],
.cdfcp-form-fields button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 260px);
    min-height: 54px;
    margin-top: 4px;
    padding: 13px 24px;
    color: #fff;
    background:
        linear-gradient(135deg, var(--cdfcp-secondary), var(--cdfcp-primary));
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--cdfcp-primary) 22%, transparent);
    cursor: pointer;
    letter-spacing: 0.01em;
    font: 800 15px/1 inherit;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.cdfcp-form-fields input[type="submit"]:hover,
.cdfcp-form-fields button[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 16px 30px color-mix(in srgb, var(--cdfcp-primary) 28%, transparent);
}

.cdfcp-form-fields input[type="submit"]:active,
.cdfcp-form-fields button[type="submit"]:active {
    transform: translateY(0);
}

.cdfcp-form-fields input[type="submit"]:disabled,
.cdfcp-form-fields button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.cdfcp-form .wpcf7-spinner {
    margin: 0 0 0 10px;
    vertical-align: middle;
}

.cdfcp-form .wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 14px 16px !important;
    border-width: 1px !important;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.cdfcp-form.sent .wpcf7-response-output {
    color: #067647;
    background: #ecfdf3;
    border-color: #abefc6 !important;
}

.cdfcp-form.invalid .wpcf7-response-output,
.cdfcp-form.failed .wpcf7-response-output,
.cdfcp-form.spam .wpcf7-response-output {
    color: #b42318;
    background: #fef3f2;
    border-color: #fecdca !important;
}

.cdfcp-form.is-submitting .cdfcp-form-panel {
    cursor: progress;
}

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

    .cdfcp-info {
        min-height: auto;
    }

    .cdfcp-info__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cdfcp-layout {
        margin: 22px auto;
        border-radius: 16px;
    }

    .cdfcp-info,
    .cdfcp-form-panel {
        padding: 28px 20px;
    }

    .cdfcp-info__items,
    .cdfcp-form-fields {
        grid-template-columns: 1fr;
    }

    .cdfcp-form-fields .cdfcp-field--half {
        grid-column: 1 / -1;
    }

    .cdfcp-form-fields input[type="submit"],
    .cdfcp-form-fields button[type="submit"] {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cdfcp-info-item,
    .cdfcp-form-fields input,
    .cdfcp-form-fields textarea,
    .cdfcp-form-fields select,
    .cdfcp-form-fields input[type="submit"],
    .cdfcp-form-fields button[type="submit"] {
        transition: none;
    }
}
