/**
 * Widget « Formulaire numéro » (catégorie C'cash).
 * Card gauche (label + input + bouton CTA) + image côté droit.
 */

.celtiis-cash-pf {
    font-family: 'Gotham', sans-serif;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}

.celtiis-cash-pf--img-left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.celtiis-cash-pf--img-left .celtiis-cash-pf__media { order: 1; }
.celtiis-cash-pf--img-left .celtiis-cash-pf__card  { order: 2; }

/* Card gauche */
.celtiis-cash-pf__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 32px;
    background: #F1F4F9;
    border-radius: 14px;
    justify-content: center;
}

.celtiis-cash-pf__label {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: #1D3D70;
    line-height: 1.35;
}

.celtiis-cash-pf__field {
    position: relative;
    z-index: 2;
}

.celtiis-cash-pf__input {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 1.5px solid #E5E9F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #1D3D70;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}

.celtiis-cash-pf__input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.celtiis-cash-pf__input:focus {
    border-color: #8DC63F;
    box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.14);
}

.celtiis-cash-pf__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    background: #8DC63F;
    color: #1D3D70;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 0;
    font-family: inherit;
    transition: filter .15s ease, transform .15s ease, gap .2s ease;
    margin-top: 4px;
}

.celtiis-cash-pf__btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    filter: grayscale(.2);
    transform: none;
    gap: 10px;
}

.celtiis-cash-pf__btn:disabled:hover {
    filter: grayscale(.2);
    transform: none;
    color: #1D3D70;
    gap: 10px;
}

.celtiis-cash-pf__notice {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 10;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(141, 198, 63, .55);
    border-radius: 10px;
    background: #F4F9EA;
    color: #1D3D70;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 10px 24px -18px rgba(29, 61, 112, .45);
}

.celtiis-cash-pf__notice::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 24px;
    width: 10px;
    height: 10px;
    border-top: 1px solid rgba(141, 198, 63, .55);
    border-left: 1px solid rgba(141, 198, 63, .55);
    background: #F4F9EA;
    transform: rotate(45deg);
}

.celtiis-cash-pf__notice[hidden] {
    display: none !important;
}

.celtiis-cash-pf__btn:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
    color: #1D3D70;
    gap: 14px;
}

.celtiis-cash-pf__btn svg {
    transition: transform .2s ease;
}

.celtiis-cash-pf__btn:hover svg {
    transform: translateX(2px);
}

/* Média droite */
.celtiis-cash-pf__media {
    display: flex;
    align-self: stretch;
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background: #F1F4F9;
}

.celtiis-cash-pf__img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .celtiis-cash-pf,
    .celtiis-cash-pf--img-left {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .celtiis-cash-pf--img-left .celtiis-cash-pf__media,
    .celtiis-cash-pf--img-left .celtiis-cash-pf__card { order: initial; }

    .celtiis-cash-pf__img { max-height: 280px; }
}

@media (max-width: 640px) {
    .celtiis-cash-pf__card { padding: 24px 20px; }
    .celtiis-cash-pf__img { max-height: 220px; }
}
