/* ==========================================================================
   Visszahívás form – frontend stílus
   ========================================================================== */

.visszahivas-wrap {
    --v-radius: 14px;
    --v-input-bg: #f1f2fb;
    --v-input-border: transparent;
    --v-input-border-focus: #3f4c9e;
    --v-text: #1a1e3a;
    --v-muted: #a5aac4;
    --v-primary: #3f4c9e;
    --v-primary-hover: #35408a;
    --v-error: #c0392b;
    --v-success: #1e8449;

    box-sizing: border-box;
    max-width: 520px;
    margin: 0 auto;
    font-family: inherit;
    color: var(--v-text);
}

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

.visszahivas-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--v-text);
}

.visszahivas-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* --- Mezők --------------------------------------------------------------- */

.visszahivas-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visszahivas-field label {
    font-size: 16px;
    font-weight: 700;
    color: var(--v-text);
    letter-spacing: 0.01em;
}

.visszahivas-input {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--v-input-bg);
    border: 2px solid var(--v-input-border);
    border-radius: var(--v-radius);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.visszahivas-input:focus-within {
    border-color: var(--v-input-border-focus);
    background: #fff;
}

.visszahivas-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    color: var(--v-muted);
    pointer-events: none;
}

.visszahivas-icon svg {
    width: 22px;
    height: 22px;
}

.visszahivas-input input {
    flex: 1 1 auto;
    width: 100%;
    height: 54px;
    padding: 0 16px 0 4px;
    border: 0;
    background: transparent;
    font-size: 18px;
    font-family: inherit;
    color: var(--v-text);
    outline: none;
    line-height: 1.2;
}

.visszahivas-input input::placeholder {
    color: var(--v-muted);
    opacity: 1;
}

.visszahivas-input.is-invalid {
    border-color: var(--v-error);
    background: #fdecea;
}

/* --- Honeypot (rejtett) -------------------------------------------------- */

.visszahivas-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Submit gomb --------------------------------------------------------- */

.visszahivas-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 62px;
    padding: 16px 24px;
    background: var(--v-primary);
    color: #fff;
    border: 0;
    border-radius: var(--v-radius);
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
    -webkit-appearance: none;
    appearance: none;
}

.visszahivas-submit:hover:not(:disabled) {
    background: var(--v-primary-hover);
}

.visszahivas-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.visszahivas-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.visszahivas-submit.is-loading .visszahivas-submit-label {
    visibility: hidden;
}

.visszahivas-submit.is-loading .visszahivas-spinner {
    display: block;
}

.visszahivas-spinner {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: visszahivas-spin 0.7s linear infinite;
}

@keyframes visszahivas-spin {
    to { transform: rotate(360deg); }
}

/* --- Üzenetek ------------------------------------------------------------ */

.visszahivas-msg {
    margin: 0;
    min-height: 1.4em;
    font-size: 15px;
    line-height: 1.4;
}

.visszahivas-msg.is-error {
    color: var(--v-error);
}

.visszahivas-msg.is-success {
    color: var(--v-success);
}

/* --- Sikeres beküldés utáni állapot ------------------------------------- */

.visszahivas-wrap.is-sent .visszahivas-form {
    display: none;
}

.visszahivas-done {
    padding: 24px;
    background: #eaf7ee;
    border: 2px solid #b7dfc4;
    border-radius: var(--v-radius);
    color: var(--v-success);
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

/* --- GDPR / hozzájárulás ------------------------------------------------- */

.visszahivas-gdpr {
    background: var(--v-input-bg);
    border: 2px solid transparent;
    border-radius: var(--v-radius);
    padding: 12px 14px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.visszahivas-gdpr.is-invalid {
    border-color: var(--v-error);
    background: #fdecea;
}

.visszahivas-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: var(--v-text);
}

.visszahivas-gdpr-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--v-primary);
    cursor: pointer;
}

.visszahivas-gdpr-text {
    flex: 1 1 auto;
}

.visszahivas-gdpr-text p {
    margin: 0;
}

.visszahivas-gdpr-text a {
    color: var(--v-primary);
    text-decoration: underline;
}

/* --- Reszponzív ---------------------------------------------------------- */

@media (max-width: 480px) {
    .visszahivas-title {
        font-size: 20px;
    }
    .visszahivas-input input {
        font-size: 16px;
        height: 50px;
    }
    .visszahivas-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
    .visszahivas-submit {
        font-size: 17px;
        min-height: 56px;
    }
}
