/* ================================================================
   form.css — Stiluri formular MpM Contact
   Paletă actualizată pentru identitatea mov/lavandă
   ================================================================ */

/* ---- Wrapper -------------------------------------------------- */
.mpc-form-wrap {
    background: #ffffff;
    border: 1px solid #DDD0EF;
    border-radius: 24px;
    padding: 2.25rem 2.5rem;
    font-family: 'Outfit', system-ui, sans-serif;
    color: #2A173F;
    box-sizing: border-box;
}

.mpc-form-wrap *,
.mpc-form-wrap *::before,
.mpc-form-wrap *::after {
    box-sizing: border-box;
}

/* ---- Grid câmpuri --------------------------------------------- */
.mpc-form-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mpc-row {
    display: grid;
    gap: 1rem;
}

.mpc-row-2 {
    grid-template-columns: 1fr 1fr;
}

.mpc-row-1 {
    grid-template-columns: 1fr;
}

@media (max-width: 520px) {
    .mpc-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ---- Câmp individual ------------------------------------------ */
.mpc-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mpc-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2A173F;
    line-height: 1.3;
}

.mpc-field label a {
    color: #6B35C7;
}

.mpc-required {
    color: #6B35C7;
    margin-left: 2px;
}

/* ---- Inputuri ------------------------------------------------- */
.mpc-field input[type="text"],
.mpc-field input[type="email"],
.mpc-field input[type="tel"],
.mpc-field input[type="number"],
.mpc-field textarea,
.mpc-field select {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.9rem;
    color: #2A173F;
    background: #FBF8FF;
    border: 1.5px solid #DDD0EF;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    width: 100%;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.5;
}

.mpc-field input::placeholder,
.mpc-field textarea::placeholder {
    color: #9B8BB2;
}

.mpc-field input:focus,
.mpc-field textarea:focus,
.mpc-field select:focus {
    border-color: #6B35C7;
    box-shadow: 0 0 0 3px rgba(107, 53, 199, 0.14);
    background: #ffffff;
}

.mpc-field input.mpc-error,
.mpc-field textarea.mpc-error,
.mpc-field select.mpc-error {
    border-color: #e05252;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.1);
}

.mpc-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* Select - săgeată custom */
.mpc-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6B8E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.2rem;
}

/* ---- Checkbox / Radio ---------------------------------------- */
.mpc-checkbox-wrap,
.mpc-radio-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mpc-check-item,
.mpc-radio-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.87rem;
    color: #5C4A70;
    line-height: 1.4;
}

.mpc-check-item input[type="checkbox"],
.mpc-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid #DDD0EF;
    border-radius: 5px;
    background: #FBF8FF;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
}

.mpc-radio-item input[type="radio"] {
    border-radius: 50%;
}

.mpc-check-item input[type="checkbox"]:checked {
    background: #6B35C7;
    border-color: #6B35C7;
}

.mpc-check-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    width: 6px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(40deg);
    border-radius: 1px;
}

.mpc-radio-item input[type="radio"]:checked {
    background: #6B35C7;
    border-color: #6B35C7;
}

.mpc-radio-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.mpc-check-item input.mpc-error {
    border-color: #e05252;
}

/* ---- Erori câmpuri ------------------------------------------- */
.mpc-field-error {
    font-size: 0.73rem;
    color: #e05252;
    display: none;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.3;
}

.mpc-field-error.visible {
    display: flex;
}

/* ---- Honeypot ------------------------------------------------- */
.mpc-honeypot {
    display: none !important;
    visibility: hidden !important;
}

/* ---- reCAPTCHA ------------------------------------------------ */
.mpc-recaptcha-wrap {
    margin: 0.25rem 0;
}

/* ---- Buton submit --------------------------------------------- */
.mpc-submit-wrap {
    margin-top: 0.5rem;
}

.mpc-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    background: #6B35C7;
    border: none;
    border-radius: 100px;
    padding: 0.85rem 2rem;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 4px 18px rgba(107, 53, 199, 0.32);
    letter-spacing: 0.01em;
}

.mpc-btn-submit:hover:not(:disabled) {
    background: #4B1E8A;
    transform: translateY(-2px);
    box-shadow: 0 7px 24px rgba(107, 53, 199, 0.4);
}

.mpc-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.mpc-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mpcSpin 0.65s linear infinite;
    display: none;
    flex-shrink: 0;
}

.mpc-btn-submit.mpc-loading .mpc-spinner {
    display: block;
}

@keyframes mpcSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Alerte globale ------------------------------------------- */
.mpc-alert {
    display: none;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    font-size: 0.87rem;
    font-weight: 500;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    line-height: 1.5;
}

.mpc-alert.mpc-visible {
    display: flex;
}

.mpc-alert-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.mpc-alert-success {
    background: #ECF5EA;
    border: 1px solid #BFDDBA;
    color: #355D32;
}

.mpc-alert-error {
    background: #FDEDED;
    border: 1px solid #F5B8B8;
    color: #9B2020;
}

/* ================================================================
   FORMULAR ÎN SIDEBAR (single-cazuri.php — card lateral îngust)
   Selector: când e în .single-caz__donate-card
   ================================================================ */

.single-caz__donate-card .mpc-form-wrap {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

/* Toate câmpurile full-width în sidebar — nu merge grid 2 col la 300px */
.single-caz__donate-card .mpc-row-2 {
    grid-template-columns: 1fr;
}

/* Inputuri mai compacte */
.single-caz__donate-card .mpc-field input[type="text"],
.single-caz__donate-card .mpc-field input[type="email"],
.single-caz__donate-card .mpc-field input[type="tel"],
.single-caz__donate-card .mpc-field textarea,
.single-caz__donate-card .mpc-field select {
    font-size: 0.85rem;
    padding: 0.55rem 0.8rem;
}

/* Textarea mai mică în sidebar */
.single-caz__donate-card .mpc-field textarea {
    min-height: 80px;
}

/* Buton full-width în sidebar */
.single-caz__donate-card .mpc-btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 0.8rem 1rem;
}

/* Alerte mai compacte */
.single-caz__donate-card .mpc-alert {
    font-size: 0.82rem;
    padding: 0.75rem 0.9rem;
}

/* Gap mai mic între câmpuri */
.single-caz__donate-card .mpc-form-body {
    gap: 0.75rem;
}

/* Label mai mic */
.single-caz__donate-card .mpc-field label {
    font-size: 0.78rem;
}

/* reCAPTCHA — scalat pentru sidebar îngust */
.single-caz__donate-card .g-recaptcha {
    transform: scale(0.88);
    transform-origin: left top;
}