/* فرم استخدام — نسخه مدرن */
.hrhs-employment {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 85% 50% at 100% 0%, rgba(var(--brand-primary-rgb, 251, 82, 13), 0.09), transparent 55%),
        radial-gradient(ellipse 70% 45% at 0% 100%, rgba(var(--brand-primary-rgb, 251, 82, 13), 0.06), transparent 50%),
        linear-gradient(180deg, #f9f9f9 0%, #ffffff 42%, #f6f6f6 100%);
}

.hrhs-employment::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(68, 68, 68, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
    pointer-events: none;
}

.hrhs-employment .container {
    position: relative;
    z-index: 1;
}

.hrhs-employment__intro {
    max-width: 640px;
    margin: 0 auto clamp(32px, 5vw, 48px);
    text-align: center;
}

.hrhs-employment__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-primary, #fb520d);
    background: rgba(var(--brand-primary-rgb, 251, 82, 13), 0.1);
    border: 1px solid rgba(var(--brand-primary-rgb, 251, 82, 13), 0.16);
}

.hrhs-employment__title {
    margin: 0 0 10px;
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 800;
    line-height: 1.35;
    color: #2a2a2a;
}

.hrhs-employment__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: #484848;
}

.hrhs-emp-form {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 28px);
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.hrhs-emp-section {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(68, 68, 68, 0.08);
    border-radius: 24px;
    background: linear-gradient(165deg, #ffffff 0%, #fffdfb 48%, #ffffff 100%);
    box-shadow:
        0 20px 48px rgba(68, 68, 68, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.hrhs-emp-section:hover {
    box-shadow:
        0 26px 56px rgba(68, 68, 68, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hrhs-emp-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary, #fb520d), #ff9a5c, transparent);
    opacity: 0.85;
}

.hrhs-emp-section__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: clamp(18px, 2.5vw, 22px) clamp(20px, 3vw, 28px);
    font-size: clamp(17px, 2vw, 19px);
    font-weight: 800;
    color: #2a2a2a;
    background: transparent;
    border-bottom: 1px solid rgba(68, 68, 68, 0.06);
}

.hrhs-emp-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
    color: var(--brand-primary, #fb520d);
    background: rgba(var(--brand-primary-rgb, 251, 82, 13), 0.1);
    border: 1px solid rgba(var(--brand-primary-rgb, 251, 82, 13), 0.14);
}

.hrhs-emp-section__body {
    padding: clamp(16px, 2.5vw, 24px) clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
}

.hrhs-emp-section__body:empty {
    display: none;
}

.hrhs-emp-section > .hrhs-emp-row,
.hrhs-emp-section > .hrhs-emp-note,
.hrhs-emp-section > .hrhs-emp-subhead,
.hrhs-emp-section > .hrhs-emp-edu-toolbar,
.hrhs-emp-section > .hrhs-emp-edu-list,
.hrhs-emp-section > .hrhs-emp-ref-block {
    margin-left: clamp(20px, 3vw, 28px);
    margin-right: clamp(20px, 3vw, 28px);
}

.hrhs-emp-section > .hrhs-emp-section__body + .hrhs-emp-row,
.hrhs-emp-section > .hrhs-emp-section__body ~ .hrhs-emp-row {
    margin-top: 0;
}

.hrhs-emp-section > .hrhs-emp-note:first-of-type,
.hrhs-emp-section > .hrhs-emp-section__title + .hrhs-emp-note {
    margin-top: clamp(16px, 2.5vw, 20px);
}

.hrhs-emp-section > .hrhs-emp-row:last-child,
.hrhs-emp-section > .hrhs-emp-ref-block:last-child {
    margin-bottom: clamp(20px, 3vw, 28px);
}

.hrhs-emp-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
    border: none;
    margin-bottom: clamp(14px, 2vw, 20px);
}

.hrhs-emp-row:last-child {
    margin-bottom: 0;
}

.hrhs-emp-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.hrhs-emp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    border: none;
}

.hrhs-emp-field__label {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    color: #3d3d3d;
    text-align: right;
    background: transparent;
    border: none;
}

.hrhs-emp-req {
    color: #e53935;
    font-weight: 800;
}

.hrhs-emp-field__control {
    display: block;
    padding: 0;
    min-width: 0;
}

.hrhs-emp-field__control--top {
    padding: 0;
}

.hrhs-emp-field__control input[type="text"],
.hrhs-emp-field__control input[type="tel"],
.hrhs-emp-field__control input[type="number"],
.hrhs-emp-field__control input[type="email"],
.hrhs-emp-field__control select,
.hrhs-emp-field__control textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(68, 68, 68, 0.12);
    border-radius: 14px;
    background: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #2f2f2f;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.hrhs-emp-field__control select {
    appearance: none;
    padding-left: 36px;
    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 fill='%23666' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    cursor: pointer;
}

.hrhs-emp-field__control textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.75;
}

.hrhs-emp-field__control textarea.hrhs-emp-textarea--lg {
    min-height: 130px;
}

.hrhs-emp-field__control input:hover,
.hrhs-emp-field__control select:hover,
.hrhs-emp-field__control textarea:hover {
    border-color: rgba(68, 68, 68, 0.2);
}

.hrhs-emp-field__control input:focus,
.hrhs-emp-field__control select:focus,
.hrhs-emp-field__control textarea:focus {
    outline: none;
    border-color: rgba(var(--brand-primary-rgb, 251, 82, 13), 0.45);
    box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb, 251, 82, 13), 0.1);
}

.hrhs-emp-date {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.hrhs-emp-date select {
    min-width: 0;
}

.hrhs-emp-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.hrhs-emp-radios label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #444444;
    cursor: pointer;
    background: #f7f7f7;
    border: 1px solid rgba(68, 68, 68, 0.1);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.hrhs-emp-radios label:hover {
    border-color: rgba(var(--brand-primary-rgb, 251, 82, 13), 0.25);
    background: rgba(var(--brand-primary-rgb, 251, 82, 13), 0.06);
}

.hrhs-emp-radios label:has(input:checked) {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-primary, #fb520d), #e04a0c);
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(var(--brand-primary-rgb, 251, 82, 13), 0.28);
}

.hrhs-emp-radios input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.hrhs-emp-subhead {
    margin: 0 clamp(20px, 3vw, 28px) 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #555555;
    background: rgba(var(--brand-primary-rgb, 251, 82, 13), 0.06);
    border: 1px dashed rgba(var(--brand-primary-rgb, 251, 82, 13), 0.22);
}

.hrhs-emp-note {
    margin: 0 clamp(20px, 3vw, 28px) 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.85;
    color: #555555;
    background: rgba(var(--brand-primary-rgb, 251, 82, 13), 0.05);
    border: 1px solid rgba(var(--brand-primary-rgb, 251, 82, 13), 0.1);
}

.hrhs-emp-section > .hrhs-emp-edu-toolbar {
    margin-top: clamp(16px, 2.5vw, 20px);
}

.hrhs-emp-edu-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
    padding: 0;
    border: none;
    background: transparent;
}

.hrhs-emp-edu-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand-primary, #fb520d), #e04a0c);
    box-shadow: 0 10px 26px rgba(var(--brand-primary-rgb, 251, 82, 13), 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hrhs-emp-edu-add i {
    font-size: 12px;
}

.hrhs-emp-edu-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(var(--brand-primary-rgb, 251, 82, 13), 0.38);
}

.hrhs-emp-edu-list {
    margin-bottom: 16px;
    padding: clamp(14px, 2vw, 18px);
    border-radius: 18px;
    background: rgba(68, 68, 68, 0.03);
    border: 1px solid rgba(68, 68, 68, 0.06);
}

.hrhs-emp-edu-list .hrhs-emp-edu-item {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed rgba(68, 68, 68, 0.12);
}

.hrhs-emp-edu-list .hrhs-emp-edu-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.hrhs-emp-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px dashed rgba(var(--brand-primary-rgb, 251, 82, 13), 0.35);
    background: rgba(var(--brand-primary-rgb, 251, 82, 13), 0.04);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.hrhs-emp-file:hover {
    border-color: rgba(var(--brand-primary-rgb, 251, 82, 13), 0.55);
    background: rgba(var(--brand-primary-rgb, 251, 82, 13), 0.07);
}

.hrhs-emp-file input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hrhs-emp-file__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand-primary, #fb520d), #e04a0c);
    box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb, 251, 82, 13), 0.25);
    transition: transform 0.25s ease;
}

.hrhs-emp-file__btn:hover {
    transform: translateY(-1px);
}

.hrhs-emp-file__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
}

.hrhs-emp-section__body .hrhs-emp-conditional {
    margin-left: 0;
    margin-right: 0;
}

.hrhs-emp-conditional {
    display: none;
    margin-bottom: 16px;
    padding: clamp(14px, 2vw, 18px);
    border-radius: 18px;
    background: rgba(68, 68, 68, 0.025);
    border: 1px solid rgba(68, 68, 68, 0.06);
}

.hrhs-emp-conditional.is-visible {
    display: block;
}

.hrhs-emp-conditional .hrhs-emp-subhead {
    margin: 0 0 12px;
}

.hrhs-emp-conditional .hrhs-emp-row {
    margin-bottom: 0;
}

.hrhs-emp-ref-block {
    padding: clamp(14px, 2vw, 18px);
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(68, 68, 68, 0.03);
    border: 1px solid rgba(68, 68, 68, 0.06);
}

.hrhs-emp-ref-block:last-child {
    margin-bottom: clamp(20px, 3vw, 28px);
}

.hrhs-emp-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(22px, 3vw, 28px);
    border: 1px solid rgba(68, 68, 68, 0.08);
    border-radius: 24px;
    background: linear-gradient(165deg, #ffffff 0%, #fffdfb 50%, #ffffff 100%);
    box-shadow: 0 20px 48px rgba(68, 68, 68, 0.08);
}

.hrhs-emp-form__footer-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #666666;
}

.hrhs-emp-form__footer-note i {
    color: var(--brand-primary, #fb520d);
}

.hrhs-emp-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand-primary, #fb520d), #e04a0c);
    box-shadow: 0 16px 36px rgba(var(--brand-primary-rgb, 251, 82, 13), 0.32);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hrhs-emp-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(var(--brand-primary-rgb, 251, 82, 13), 0.38);
}

/* بخش‌هایی که بدنه مستقیم دارند */
.hrhs-emp-section:not(:has(.hrhs-emp-section__body)) > .hrhs-emp-row:first-of-type {
    margin-top: clamp(16px, 2.5vw, 20px);
}

@media (max-width: 991px) {
    .hrhs-emp-row--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hrhs-emp-row,
    .hrhs-emp-row--3 {
        grid-template-columns: 1fr;
    }

    .hrhs-emp-date {
        grid-template-columns: 1fr;
    }

    .hrhs-emp-form__footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .hrhs-emp-form__submit {
        width: 100%;
    }

    .hrhs-emp-section > .hrhs-emp-row,
    .hrhs-emp-section > .hrhs-emp-note,
    .hrhs-emp-section > .hrhs-emp-subhead,
    .hrhs-emp-section > .hrhs-emp-edu-toolbar,
    .hrhs-emp-section > .hrhs-emp-edu-list,
    .hrhs-emp-section > .hrhs-emp-ref-block {
        margin-left: 16px;
        margin-right: 16px;
    }
}
