.wp-block-parashankinta-contact-form,
.phcf-saved-wrap,
.phcf-editor-wrap {
    box-sizing: border-box;
}

.phcf-contact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 36px auto;
    padding: clamp(22px, 4vw, 52px);
    color: #111827;
    border: 1px solid #dfe6f8;
    border-radius: 28px;
    background:
        radial-gradient(circle at 16% 20%, rgba(85, 105, 255, 0.13), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f7f9ff 52%, #ffffff 100%);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.10);
}

.phcf-contact * {
    box-sizing: border-box;
}

.phcf-glow {
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    filter: blur(32px);
    opacity: 0.42;
    pointer-events: none;
}

.phcf-glow-one {
    top: -90px;
    left: 12%;
    background: rgba(84, 102, 255, 0.32);
}

.phcf-glow-two {
    right: -90px;
    bottom: -110px;
    background: rgba(34, 197, 94, 0.22);
}

.phcf-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(22px, 4vw, 56px);
    align-items: center;
}

.phcf-copy {
    max-width: 520px;
}

.phcf-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 18px;
    padding: 6px 14px;
    color: #1f3fb6;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid rgba(86, 104, 255, 0.26);
    border-radius: 999px;
    background: #edf1ff;
    box-shadow: 0 8px 24px rgba(85, 105, 255, 0.12);
}

.phcf-title {
    margin: 0;
    color: #111827;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.phcf-intro {
    margin: 22px 0 0;
    max-width: 560px;
    color: #566176;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.75;
}

.phcf-note {
    margin: 24px 0 0;
    padding: 14px 16px;
    color: #526071;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #e2e8f7;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.phcf-form {
    position: relative;
    display: grid;
    gap: 16px;
    width: 100%;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid #e1e7f7;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 255, 0.96));
    box-shadow: 0 22px 58px rgba(17, 24, 39, 0.11);
}

.phcf-form::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(86, 104, 255, 0.45), rgba(34, 197, 94, 0.14), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

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

.phcf-field,
.phcf-consent {
    display: grid;
    gap: 8px;
}

.phcf-field > span,
.phcf-consent > span {
    color: #172033;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.phcf-field input,
.phcf-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 15px 16px;
    color: #111827;
    font: inherit;
    border: 1px solid #dbe3f5;
    border-radius: 16px;
    outline: none;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.phcf-field textarea {
    min-height: 138px;
    resize: vertical;
}

.phcf-field input::placeholder,
.phcf-field textarea::placeholder {
    color: #8a95a9;
}

.phcf-field input:focus,
.phcf-field textarea:focus {
    border-color: #5668ff;
    box-shadow: 0 0 0 4px rgba(86, 104, 255, 0.14);
}

.phcf-error input,
.phcf-error textarea,
.phcf-error.phcf-consent {
    border-color: #ef4444;
}

.phcf-consent {
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 12px;
    margin-top: 2px;
    padding: 14px;
    color: #526071;
    border: 1px solid #e2e8f7;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.phcf-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #5668ff;
}

.phcf-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-height: 54px;
    margin-top: 4px;
    padding: 14px 22px;
    color: #ffffff;
    font: inherit;
    font-weight: 900;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #5668ff, #4760e9 55%, #6c7bff);
    box-shadow: 0 16px 34px rgba(86, 104, 255, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.phcf-button:hover,
.phcf-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(86, 104, 255, 0.36);
}

.phcf-button-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #111827;
    border-radius: 999px;
    background: #ffffff;
}

.phcf-success {
    margin-top: 2px;
    padding: 14px 16px;
    color: #14532d;
    font-weight: 800;
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 16px;
    background: #ecfdf3;
}

.phcf-success-error {
    color: #7f1d1d;
    border-color: rgba(239, 68, 68, 0.26);
    background: #fff1f2;
}

.phcf-editor-wrap .phcf-form input,
.phcf-editor-wrap .phcf-form textarea,
.phcf-editor-wrap .phcf-button,
.phcf-editor-wrap .phcf-consent input {
    cursor: default;
}

@media (max-width: 900px) {
    .phcf-shell,
    .phcf-grid {
        grid-template-columns: 1fr;
    }

    .phcf-copy {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .phcf-contact {
        margin: 24px auto;
        padding: 18px;
        border-radius: 22px;
    }

    .phcf-form {
        padding: 18px;
        border-radius: 20px;
    }

    .phcf-button {
        width: 100%;
    }
}
