:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #ede9fe;
    --text: #111827;
    --muted: #6b7280;
    --border: #dbe1ea;
    --bg: #f6f7fb;
    --card: #ffffff;
}

body {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    color: var(--text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.app-content {
    max-width: 1180px;
    margin: 36px auto;
    padding: 0 18px;
}

.esAdvFormnumber-tab-steps {
    background: var(--card);
    border: 1px solid rgba(124, 58, 237, .12);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.steps ul {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    margin: 0 0 38px;
    list-style: none;
    position: relative;
}

.steps ul::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 6%;
    right: 6%;
    height: 3px;
    background: #e5e7eb;
    border-radius: 99px;
}

.steps li {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}

.steps a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.steps .step {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #f3f4f6;
    color: #9ca3af;
    border: 2px solid transparent;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.steps li.current .step,
.steps li.done .step {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.steps li.current a {
    color: var(--text);
}

.steps li.done .step {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.content .title {
    display: none;
}

fieldset.body {
    border: 0;
    padding: 0;
    margin: 0;
}

#ctext_1,
#ctext_3,
#ctext_4 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--primary);
}

#ctext_2 {
    background: linear-gradient(135deg, #ede9fe, #eff6ff);
    border: 1px solid #ddd6fe;
    border-left: 5px solid var(--primary);
    border-radius: 18px;
    padding: 20px 22px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.9;
    font-weight: 600;
}

.es-form-group {
    margin-bottom: 24px;
}

.es-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.es-form-label {
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.form-control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.es-form-control,
input[type="textbox"],
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 11px 14px;
    font-size: 15px;
    outline: none;
    transition: .2s ease;
}

textarea.es-form-control {
    min-height: 120px;
    resize: vertical;
}

.es-form-control:focus,
input[type="textbox"]:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .13);
}

.custom-control {
    display: inline-flex;
    align-items: center;
    margin: 6px 12px 6px 0;
}

.custom-control-input {
    accent-color: var(--primary);
    width: 17px;
    height: 17px;
    margin-right: 7px;
}

.custom-control-label {
    cursor: pointer;
    font-weight: 700;
    color: #374151;
}

.captcha-image {
    min-height: 54px;
    max-width: 180px;
    object-fit: contain;
    background: #f9fafb;
    border: 1px dashed #c4b5fd;
    border-radius: 12px;
    padding: 8px;
}

.es-input-group {
    display: flex;
    width: 100%;
}

.es-input-group .es-form-control {
    border-radius: 0 12px 12px 0;
}

.refreshCaptcha,
.es-btn-primary {
    border: 0;
    min-width: 50px;
    border-radius: 12px 0 0 12px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.refreshCaptcha:hover,
.es-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.actions,
.wizard > .actions {
    margin-top: 32px;
}

.actions ul {
    display: flex;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.actions a,
button,
input[type="button"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 13px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}

.actions a[href="#previous"],
.actions .disabled a {
    background: #fff;
    color: #374151 !important;
    border-color: var(--border);
}

.actions a:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(124, 58, 237, .22);
}

.es-invalid-feedback,
.error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

.es-is-valid {
    border-color: #c7d2fe;
}

@media (max-width: 768px) {
    .esAdvFormnumber-tab-steps {
        padding: 22px;
        border-radius: 18px;
    }

    .steps ul {
        gap: 6px;
    }

    .steps .step {
        width: 42px;
        height: 42px;
        font-size: 17px;
        border-radius: 13px;
    }

    #ctext_1,
    #ctext_3,
    #ctext_4 {
        font-size: 20px;
    }

    .es-form-item-col,
    .form-control-row,
    .es-form-label {
        width: 100%;
    }

    .form-control-row {
        margin-top: 6px;
    }
}


