/* =============================================================
   Nejat Typeform — shared card styles
   Used by: nejat-hero widget and nejat-typeform widget
   ============================================================= */

/* ── Standalone wrapper ─────────────────────────────────────── */
.nejat-typeform {
    width: 100%;
}

.nejat-typeform__inner {
    max-width: var(--nejat-max-width);
    margin: 0 auto;
    padding: var(--nejat-section-pad-v) var(--nejat-gutter);
}

/* ── Card ───────────────────────────────────────────────────── */
.nejat-tf__wrap {
    width: 100%;
}

.nejat-tf__card {
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

/* ── Progress bar ───────────────────────────────────────────── */
.nejat-tf__progress-bar {
    height: 4px;
    background: #f0f0f0;
    width: 100%;
}

.nejat-tf__progress {
    height: 100%;
    background: #4ab3c8;
    width: 0%;
    transition: width 0.4s ease;
}

/* ── Steps ──────────────────────────────────────────────────── */
.nejat-tf__step {
    display: none;
    flex-direction: column;
    padding: 24px 28px 22px;
}

.nejat-tf__step.active {
    display: flex;
}

.nejat-tf__step-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nejat-tf__step-num {
    font-size: 12px;
    font-weight: 700;
    color: #4ab3c8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.nejat-tf__step-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.nejat-tf__step-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #666666;
}

/* ── Step actions ───────────────────────────────────────────── */
.nejat-tf__step-actions {
    margin-top: 18px;
}

.nejat-tf__btn-group {
    display: flex;
    gap: 10px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.nejat-tf__btn {
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.nejat-tf__btn:hover {
    opacity: 0.88;
}

.nejat-tf__btn--primary {
    background: #1a1a1a;
    color: #ffffff;
    flex: 1;
}

.nejat-tf__btn--secondary {
    background: #f0f0f0;
    color: #555555;
}

/* ── Form inputs (generated by JS) ─────────────────────────── */
.nejat-tf__card .form-field {
    margin-top: 14px;
}

.nejat-tf__card .form-input,
.nejat-tf__card .form-textarea,
.nejat-tf__card .form-select {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 8px 0;
    font-size: 15px;
    color: #1a1a1a;
    background: transparent;
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: none;
    border-radius: 0;
}

.nejat-tf__card .form-input:focus,
.nejat-tf__card .form-textarea:focus,
.nejat-tf__card .form-select:focus {
    border-bottom-color: #4ab3c8;
}

.nejat-tf__card .form-input::placeholder,
.nejat-tf__card .form-textarea::placeholder {
    color: #b0b0b0;
}

.nejat-tf__card .form-textarea {
    resize: vertical;
    min-height: 76px;
}

/* ── Success state ──────────────────────────────────────────── */
.nejat-tf__success {
    text-align: center;
    align-items: center;
    padding: 8px 0 4px;
    gap: 10px;
}

.nejat-tf__success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e8f8f5;
    color: #4ab3c8;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

/* ── Validation error ───────────────────────────────────────── */
.nejat-tf__error {
    background: #fff5f5;
    border: 1px solid #ffc0c0;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
    font-size: 13px;
    color: #c0392b;
    line-height: 1.4;
}

/* ── No-form notice ─────────────────────────────────────────── */
.nejat-tf__notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    color: #795548;
}

/* ── Standalone max-width on mobile ─────────────────────────── */
@media (max-width: 768px) {
    .nejat-typeform__inner {
        padding: 40px var(--nejat-gutter);
    }
}
