.cieb-wrap {
    direction: rtl;
    text-align: right;
    max-width: 920px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    color: #1f2937;
}

.cieb-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.cieb-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
}

.cieb-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.5;
    font-weight: 800;
    color: #0f172a;
}

.cieb-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 2;
    color: #475569;
}

.cieb-alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 2;
    border: 1px solid transparent;
}

.cieb-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.cieb-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.cieb-form {
    display: grid;
    gap: 24px;
}

.cieb-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.cieb-col-4 {
    grid-column: span 4;
}

.cieb-col-6 {
    grid-column: span 6;
}

.cieb-col-12 {
    grid-column: span 12;
}

.cieb-section {
    background: #f8fafc;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    padding: 20px;
}

.cieb-section-title {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 800;
    color: #0f766e;
}

.cieb-field {
    display: flex;
    flex-direction: column;
}

.cieb-field label,
.cieb-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 700;
    color: #0f172a;
}

.cieb-field input[type="text"],
.cieb-field input[type="number"],
.cieb-field input[type="tel"],
.cieb-field select,
.cieb-field textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid #d6dde6;
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    line-height: 1.8;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cieb-field textarea {
    min-height: 130px;
    resize: vertical;
}

.cieb-field input::placeholder,
.cieb-field textarea::placeholder {
    color: #94a3b8;
}

.cieb-field input:focus,
.cieb-field select:focus,
.cieb-field textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
    background: #fff;
}

.cieb-choices {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.cieb-choices.is-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cieb-choices.is-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cieb-choice {
    position: relative;
    margin: 0;
}

.cieb-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cieb-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid #d6dde6;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.cieb-choice span:hover {
    border-color: #14b8a6;
    background: #f0fdfa;
    color: #0f766e;
}

.cieb-choice input[type="radio"]:checked + span {
    border-color: #14b8a6;
    background: #ecfeff;
    color: #0f766e;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.10);
}

.cieb-submit-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.cieb-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.22);
}

.cieb-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(20, 184, 166, 0.28);
}

.cieb-submit:active {
    transform: translateY(0);
}

.cieb-note {
    margin: 0;
    font-size: 14px;
    line-height: 2;
    color: #64748b;
}

.cieb-helper {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.9;
    color: #64748b;
}

@media (max-width: 900px) {
    .cieb-col-4,
    .cieb-col-6 {
        grid-column: span 12;
    }

    .cieb-choices.is-3,
    .cieb-choices.is-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cieb-wrap {
        margin: 24px auto;
        padding: 0 12px;
    }

    .cieb-card {
        padding: 18px;
        border-radius: 14px;
    }

    .cieb-title {
        font-size: 24px;
    }

    .cieb-subtitle {
        font-size: 14px;
    }

    .cieb-section {
        padding: 16px;
    }

    .cieb-submit {
        width: 100%;
    }
}
