/* ── Contact Form block ───────────────────────────────────────────────────── */

.nyehs-cf {
    display:       flex;
    border-radius: 20px;
    overflow:      hidden;
    min-height:    520px;
}

/* ── Left info panel ─────────────────────────────────────────────────────── */

.nyehs-cf__left {
    flex:       0 0 33.333%;
    background: linear-gradient(160deg, #000a73 0%, #0017c7 55%, #0d41ff 100%);
    position:   relative;
    overflow:   hidden;
    display:    flex;
    flex-direction: column;
    justify-content: space-between;
}

.nyehs-cf__left::before {
    content:       '';
    position:      absolute;
    width:         320px;
    height:        320px;
    border-radius: 50%;
    background:    radial-gradient(circle, rgba(42, 0, 205, 0.38) 0%, transparent 70%);
    top:           -100px;
    right:         -100px;
    pointer-events: none;
}

.nyehs-cf__left::after {
    content:       '';
    position:      absolute;
    width:         200px;
    height:        200px;
    border-radius: 50%;
    background:    radial-gradient(circle, rgba(13, 98, 255, 0.22) 0%, transparent 70%);
    bottom:        -60px;
    left:          -60px;
    pointer-events: none;
}

.nyehs-cf__left-inner {
    position:       relative;
    z-index:        1;
    padding:        48px 40px;
    display:        flex;
    flex-direction: column;
    gap:            28px;
    height:         100%;
}

.nyehs-cf__heading {
    font-size:   2rem;
    font-weight: 800;
    line-height: 1.2;
    color:       #fff;
    margin:      0;
}

.nyehs-cf__subheading {
    font-size:   1rem;
    color:       rgba(255, 255, 255, 0.6);
    line-height: 1.65;
    margin:      0;
}

/* ── Contact info list ───────────────────────────────────────────────────── */

.nyehs-cf__contact-list {
    list-style:      none;
    margin:          0;
    padding:         0;
    display:         flex;
    flex-direction:  column;
    gap:             14px;
}

.nyehs-cf__contact-item {
    display:     flex;
    align-items: center;
    gap:         12px;
    color:       rgba(255, 255, 255, 0.75);
    font-size:   0.9rem;
    line-height: 1.5;
}

.nyehs-cf__contact-icon {
    flex-shrink:     0;
    width:           34px;
    height:          34px;
    border-radius:   50%;
    background:      rgba(255, 255, 255, 0.08);
    border:          1px solid rgba(255, 255, 255, 0.10);
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           rgba(255, 255, 255, 0.6);
}

.nyehs-cf__contact-link {
    color:           rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition:      color 0.2s ease;
}

.nyehs-cf__contact-link:hover {
    color: #fff;
}

/* ── Social icons ────────────────────────────────────────────────────────── */

.nyehs-cf__socials {
    display:    flex;
    gap:        8px;
    flex-wrap:  wrap;
    margin-top: auto;
}

.nyehs-cf__social-link {
    width:           34px;
    height:          34px;
    border-radius:   50%;
    background:      rgba(255, 255, 255, 0.08);
    border:          1px solid rgba(255, 255, 255, 0.12);
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition:      background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nyehs-cf__social-link:hover {
    background:   rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color:        #fff;
}

/* ── Right form panel ────────────────────────────────────────────────────── */

.nyehs-cf__right {
    flex:               1;
    background:         var(--wp--preset--color--contrast);
    padding:            48px 52px;
    display:            flex;
    flex-direction:     column;
    justify-content:    center;
}

.nyehs-cf__form-heading {
    font-size:   1.5rem;
    font-weight: 700;
    color:       #fff;
    margin:      0 0 28px;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */

.nyehs-cf__form {
    display:        flex;
    flex-direction: column;
    gap:            14px;
}

.nyehs-cf__row {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   14px;
}

.nyehs-cf__input,
.nyehs-cf__textarea {
    width:       100%;
    background:  rgba(255, 255, 255, 0.05);
    border:      1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color:       #fff;
    font-size:   0.9375rem;
    font-family: inherit;
    padding:     13px 16px;
    outline:     none;
    transition:  border-color 0.2s ease, background 0.2s ease;
    box-sizing:  border-box;
}

.nyehs-cf__input::placeholder,
.nyehs-cf__textarea::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.nyehs-cf__input:focus,
.nyehs-cf__textarea:focus {
    border-color: rgba(13, 98, 255, 0.55);
    background:   rgba(255, 255, 255, 0.07);
}

.nyehs-cf__input.nyehs-cf__field--error,
.nyehs-cf__textarea.nyehs-cf__field--error {
    border-color: rgba(239, 68, 68, 0.7);
    background:   rgba(239, 68, 68, 0.07);
    animation:    nyehs-cf-shake 0.32s ease;
}

@keyframes nyehs-cf-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    40%      { transform: translateX(5px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(3px); }
}

.nyehs-cf__textarea {
    resize:        vertical;
    min-height:    130px;
    border-radius: 24px;
}

/* ── Submit + feedback ───────────────────────────────────────────────────── */

.nyehs-cf__actions {
    display:        flex;
    flex-direction: column;
    gap:            12px;
    align-items:    flex-start;
}

.nyehs-cf__submit {
    display:     inline-flex;
    align-items: center;
    border:      none;
    padding:     0;
    background:  none;
    cursor:      pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance:  none;
}

.nyehs-cf__submit:disabled {
    cursor: not-allowed;
}

.nyehs-cf__submit-label {
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         0 28px;
    height:          52px;
    color:           #fff;
    font-size:       1rem;
    font-weight:     600;
    font-family:     inherit;
    letter-spacing:  0.01em;
    white-space:     nowrap;
    background:      #0017c7;
    border-radius:   999px;
    transition:      border-radius 0.3s ease, opacity 0.2s ease;
}

.nyehs-cf__submit-icon {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           52px;
    height:          52px;
    flex-shrink:     0;
    border-radius:   999px;
    background:      #0017c7;
    transition:      border-radius 0.3s ease, opacity 0.2s ease;
}

.nyehs-cf__submit-svg {
    width:      1em;
    height:     1em;
    color:      #fff;
    transform:  rotate(0deg);
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
}

.nyehs-cf__submit:not(:disabled):hover .nyehs-cf__submit-label {
    border-top-right-radius:    0;
    border-bottom-right-radius: 0;
}

.nyehs-cf__submit:not(:disabled):hover .nyehs-cf__submit-icon {
    border-top-left-radius:    0;
    border-bottom-left-radius: 0;
}

.nyehs-cf__submit:not(:disabled):hover .nyehs-cf__submit-svg {
    transform: rotate(-45deg);
}

.nyehs-cf__submit:disabled .nyehs-cf__submit-label,
.nyehs-cf__submit:disabled .nyehs-cf__submit-icon {
    opacity: 0.6;
}

.nyehs-cf__feedback {
    font-size:   0.875rem;
    line-height: 1.5;
    margin:      0;
    padding:     11px 16px;
    border-radius: 8px;
}

.nyehs-cf__feedback--success {
    background: rgba(16, 185, 129, 0.14);
    border:     1px solid rgba(16, 185, 129, 0.28);
    color:      #34d399;
}

.nyehs-cf__feedback--error {
    background: rgba(239, 68, 68, 0.14);
    border:     1px solid rgba(239, 68, 68, 0.28);
    color:      #f87171;
}

/* ── Success state ───────────────────────────────────────────────────────── */

.nyehs-cf__success {
    display:         none;
}

.nyehs-cf__right--success .nyehs-cf__form-heading,
.nyehs-cf__right--success .nyehs-cf__form {
    display: none;
}

.nyehs-cf__right--success .nyehs-cf__success {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    text-align:      center;
    flex:            1;
    padding:         40px 20px;
    animation:       nyehs-cf-fade-up 0.4s ease forwards;
}

@keyframes nyehs-cf-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nyehs-cf__success-icon {
    margin-bottom: 20px;
}

.nyehs-cf__success-circle {
    stroke-dasharray:  182;
    stroke-dashoffset: 182;
    animation:         nyehs-cf-draw-circle 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}

.nyehs-cf__success-check {
    stroke-dasharray:  42;
    stroke-dashoffset: 42;
    animation:         nyehs-cf-draw-check 0.35s ease 0.6s forwards;
}

@keyframes nyehs-cf-draw-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes nyehs-cf-draw-check {
    to { stroke-dashoffset: 0; }
}

.nyehs-cf__success-msg {
    color:      rgba(255, 255, 255, 0.75);
    font-size:  1rem;
    line-height: 1.6;
    margin:     0;
    max-width:  300px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .nyehs-cf {
        flex-direction: column;
    }

    .nyehs-cf__left {
        flex: none;
    }

    .nyehs-cf__left-inner {
        padding: 40px 28px;
    }

    .nyehs-cf__right {
        padding: 40px 28px;
    }

    .nyehs-cf__row {
        grid-template-columns: 1fr;
    }
}

/* ── Outline / minimalistic style variant ────────────────────────────────── */

.is-style-outline.nyehs-cf {
    background: #fff;
    border:     1.5px solid rgba(0, 0, 0, 0.12);
}

/* Remove the decorative blurred circles */
.is-style-outline .nyehs-cf__left::before,
.is-style-outline .nyehs-cf__left::after {
    display: none;
}

.is-style-outline .nyehs-cf__left {
    background:   #f7f8fa;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.is-style-outline .nyehs-cf__heading {
    color: #111;
}

.is-style-outline .nyehs-cf__subheading {
    color: rgba(0, 0, 0, 0.52);
}

.is-style-outline .nyehs-cf__contact-item {
    color: rgba(0, 0, 0, 0.62);
}

.is-style-outline .nyehs-cf__contact-icon {
    background:   rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.10);
    color:        rgba(0, 0, 0, 0.45);
}

.is-style-outline .nyehs-cf__contact-link {
    color: rgba(0, 0, 0, 0.62);
}
.is-style-outline .nyehs-cf__contact-link:hover {
    color: #000;
}

.is-style-outline .nyehs-cf__social-link {
    background:   rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.10);
    color:        rgba(0, 0, 0, 0.45);
}
.is-style-outline .nyehs-cf__social-link:hover {
    background:   rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
    color:        #000;
}

.is-style-outline .nyehs-cf__right {
    background: #fff;
}

.is-style-outline .nyehs-cf__form-heading {
    color: #111;
}

.is-style-outline .nyehs-cf__input,
.is-style-outline .nyehs-cf__textarea {
    background:   #fff;
    border-color: rgba(0, 0, 0, 0.16);
    color:        #111;
}

.is-style-outline .nyehs-cf__input::placeholder,
.is-style-outline .nyehs-cf__textarea::placeholder {
    color: rgba(0, 0, 0, 0.32);
}

.is-style-outline .nyehs-cf__input:focus,
.is-style-outline .nyehs-cf__textarea:focus {
    border-color: rgba(0, 0, 0, 0.42);
    background:   #fff;
}

.is-style-outline .nyehs-cf__input.nyehs-cf__field--error,
.is-style-outline .nyehs-cf__textarea.nyehs-cf__field--error {
    border-color: rgba(239, 68, 68, 0.5);
    background:   rgba(239, 68, 68, 0.04);
}

.is-style-outline .nyehs-cf__submit-label,
.is-style-outline .nyehs-cf__submit-icon {
    background: #111;
}

.is-style-outline .nyehs-cf__success-msg {
    color: rgba(0, 0, 0, 0.62);
}
