.smgt-recruit-shell {
    max-width: 980px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.smgt-recruit-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf0f5;
}

.smgt-recruit-header h3 {
    margin: 0 0 .35rem;
    font-size: 1.5rem;
    color: #111827;
}

.smgt-recruit-header p {
    margin: 0;
    color: #4b5563;
    font-size: .95rem;
}

.recruit-form-modern h4 {
    margin-top: 1.5rem;
    margin-bottom: .8rem;
    font-size: 1.05rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    clear: both;
    padding-left: 0;
}

.recruit-form-modern h4::before {
    content: "";
    width: 4px;
    height: 1.1em;
    border-radius: 3px;
    background: #8c0700;
}

.recruit-form-modern label,
.recruit-form-modern p,
.recruit-form-modern span {
    color: #1f2937;
}

.smgt-dynamic-section {
    display: grid;
    gap: .75rem;
    margin-bottom: .5rem;
}

.smgt-field-label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
    color: #111827;
}

.recruit-form-modern input[type="text"],
.recruit-form-modern input[type="email"],
.recruit-form-modern input[type="date"],
.recruit-form-modern input[type="number"],
.recruit-form-modern input[type="file"],
.recruit-form-modern select,
.recruit-form-modern textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: .62rem .7rem;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.recruit-form-modern input:focus,
.recruit-form-modern select:focus,
.recruit-form-modern textarea:focus {
    border-color: #8c0700;
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 7, 0, 0.16);
}

.smgt-choice-group {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: .65rem .75rem;
    background: #fafafa;
}

.smgt-choice-group .smgt-field-label {
    margin-bottom: .45rem;
    padding: 0;
}

.smgt-choice-option {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-right: .85rem;
    margin-bottom: .35rem;
    font-weight: 400;
}

.smgt-choice-option input[type="checkbox"],
.smgt-choice-option input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Student profile: keep checkbox/radio controls vertically centered with labels */
.smgt-profile-section label.d-inline-flex {
    align-items: center !important;
}

.smgt-profile-section label.d-inline-flex input[type="checkbox"],
.smgt-profile-section label.d-inline-flex input[type="radio"] {
    margin: 0;
    vertical-align: middle;
    align-self: center;
}

label#checkbox-rgpd-recruit {
    display: flex;
    gap: .5rem;
    margin: 1rem 0 1.5rem;
    padding: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

label#checkbox-rgpd-recruit input {
    flex: none;
    width: auto !important;
    margin-top: 4px;
}

.recruit-submit-wrap {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.styled-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 10px;
    border: 1px solid #8c0700;
    box-shadow: 0 8px 16px rgba(140, 7, 0, 0.18);
    background-color: #8c0700 !important;
    color: #ffffff !important;
    padding: .7rem 1.2rem;
    min-height: 44px;
    font-weight: 600;
}

.styled-button:hover {
    color: #8c0700 !important;
    background-color: #fff !important;
}

#recruit-submit-button:hover span,
#recruit-submit-button:focus-visible span {
    color: #8c0700 !important;
}

#recruit-submit-button span {
    color: #ffffff !important;
}

.styled-button:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.recruit-loader {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: recruit-spin .7s linear infinite;
}

@keyframes recruit-spin {
    to {
        transform: rotate(360deg);
    }
}

.recruit-submit-feedback {
    margin: 0;
    font-size: .92rem;
    padding: .58rem .75rem;
    border-radius: 8px;
}

.recruit-submit-feedback.info {
    background: #eff6ff;
    color: #1d4ed8;
}

.recruit-submit-feedback.success {
    background: #ecfdf3;
    color: #047857;
}

.recruit-submit-feedback.error {
    background: #fef2f2;
    color: #b91c1c;
}

.recruit-form-modern.is-submitting {
    opacity: .88;
}

.smgt-recruit-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(17, 24, 39, 0.45);
}

.smgt-recruit-modal-content {
    margin: 12% auto;
    padding: 1rem;
    border: 1px solid #fca5a5;
    background: #fff;
    border-radius: 10px;
    width: min(520px, 92%);
}

/* Keep clothing image modal hidden until opened */
#imagemodal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    overflow-y: auto;
}

#imagemodal.show {
    display: block;
}

#imagemodal .modal-dialog {
    margin: 3rem auto;
    width: min(960px, 94%);
}

#imagemodal .modal-content {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

#imagemodal .modal-body {
    background: #ffffff;
}

#imagemodal .modal-body .btn.btn-danger {
    margin-bottom: .75rem;
    background: #8c0700;
    color: #ffffff !important;
    border: 1px solid #8c0700;
    border-radius: 8px;
    padding: .45rem .8rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(140, 7, 0, 0.2);
}

#imagemodal .modal-body .btn.btn-danger,
#imagemodal .modal-body .btn.btn-danger *,
#imagemodal .modal-body .btn.btn-danger span {
    color: #ffffff !important;
}

#imagemodal .modal-body .btn.btn-danger:hover {
    background: #fff;
    color: #8c0700 !important;
}

#imagemodal .modal-body .btn.btn-danger:hover,
#imagemodal .modal-body .btn.btn-danger:hover *,
#imagemodal .modal-body .btn.btn-danger:hover span,
#imagemodal .modal-body .btn.btn-danger:focus-visible,
#imagemodal .modal-body .btn.btn-danger:focus-visible *,
#imagemodal .modal-body .btn.btn-danger:focus-visible span {
    color: #8c0700 !important;
}

#imagemodal .modal-body .btn.btn-danger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 7, 0, 0.22);
}

.close {
    color: #6b7280;
    float: right;
    font-size: 24px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #111827;
    text-decoration: none;
    cursor: pointer;
}
