/* ==================================================================
   BDS Tanzania — /register/ area styles
   Inherits Mona Sans + theme palette from assets/css/main.css
================================================================== */

:root {
    --reg-primary: #1997C6;
    --reg-primary-dark: #1479a1;
    --reg-ink: #0c1e21;
    --reg-body: #364e52;
    --reg-muted: #67787a;
    --reg-line: #dbe6e8;
    --reg-bg-soft: #f2f7f8;
    --reg-radius: 10px;
}

/* ------------------------------------------------------------------
   Layout shell
------------------------------------------------------------------ */
.reg-section {
    padding: 48px 0 90px;
}

.reg-intro,
.reg-form {
    max-width: 960px;
    margin-inline: auto;
}

.reg-intro {
    text-align: left;
    margin-bottom: 34px;
}

.reg-intro h1 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    color: var(--reg-ink);
    line-height: 1.25;
    margin-bottom: 16px;
}

.reg-intro p {
    color: var(--reg-body);
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 12px;
}

.reg-intro p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Alerts
------------------------------------------------------------------ */
.reg-alert {
    max-width: 960px;
    margin: 0 auto 28px;
    padding: 18px 22px;
    border-radius: var(--reg-radius);
    font-size: 14.5px;
    line-height: 1.65;
    border: 1px solid transparent;
    text-align: left;
}

.reg-alert ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

.reg-alert li {
    margin-bottom: 4px;
}

.reg-alert-error {
    background: #fdf1f0;
    border-color: #f5c6c2;
    color: #a93226;
}

.reg-alert-success {
    background: #eef8f0;
    border-color: #bfe5c8;
    color: #1e7e34;
}

/* ------------------------------------------------------------------
   The single form card
------------------------------------------------------------------ */
.reg-form {
    background: #fff;
    border: 1px solid var(--reg-line);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(12, 30, 33, 0.07);
    padding: clamp(24px, 4vw, 48px);
    text-align: left;
}

.reg-hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

.reg-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--reg-line);
}

.reg-form-head h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--reg-ink);
    margin: 0 0 6px;
}

.reg-form-head p {
    margin: 0;
    color: var(--reg-muted);
    font-size: 13.5px;
}

.reg-head-status {
    padding: 9px 18px;
    font-size: 13px;
    flex: 0 0 auto;
}

.reg-req {
    color: #d64541;
    font-weight: 700;
}

.reg-opt {
    color: var(--reg-muted);
    font-weight: 500;
    font-size: 12.5px;
}

/* ------------------------------------------------------------------
   Section headings (inline, not boxed cards)
------------------------------------------------------------------ */
.reg-sec {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 38px 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--reg-line);
}

.reg-sec-num {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 151, 198, 0.12);
    color: var(--reg-primary-dark);
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: 0.04em;
}

.reg-sec-text h3 {
    font-size: 17.5px;
    font-weight: 800;
    color: var(--reg-ink);
    margin: 0 0 2px;
}

.reg-sec-text p {
    margin: 0;
    font-size: 13px;
    color: var(--reg-muted);
}

/* ------------------------------------------------------------------
   Fields
------------------------------------------------------------------ */
.reg-field {
    margin-bottom: 20px;
}

.row .reg-field {
    margin-bottom: 20px;
}

.reg-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--reg-ink);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.reg-label-main {
    flex: 1 1 auto;
    min-width: 180px;
}

.reg-control {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--reg-ink);
    background: #fff;
    border: 1px solid var(--reg-line);
    border-radius: var(--reg-radius);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
}

select.reg-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath d='M1 1l5 5 5-5' stroke='%2367787a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.reg-control::placeholder {
    color: #9fb0b2;
}

.reg-control:focus {
    border-color: var(--reg-primary);
    box-shadow: 0 0 0 3px rgba(25, 151, 198, 0.15);
}

/* ------------------------------------------------------------------
   Searchable select (custom combobox)
------------------------------------------------------------------ */
.reg-combo {
    position: relative;
}

.reg-combo-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: var(--reg-ink);
    background: #fff;
    border: 1px solid var(--reg-line);
    border-radius: var(--reg-radius);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reg-combo-toggle:hover {
    border-color: var(--reg-primary);
}

.reg-combo-toggle:focus-visible,
.reg-combo.is-open .reg-combo-toggle {
    border-color: var(--reg-primary);
    box-shadow: 0 0 0 3px rgba(25, 151, 198, 0.15);
    outline: none;
}

.reg-combo-label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-combo-label.is-placeholder {
    color: #9fb0b2;
    font-weight: 400;
}

.reg-combo-toggle > i {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--reg-muted);
    transition: transform 0.18s ease;
}

.reg-combo.is-open .reg-combo-toggle > i {
    transform: rotate(180deg);
}

.reg-combo-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--reg-line);
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(12, 30, 33, 0.16);
    overflow: hidden;
}

.reg-combo.is-open .reg-combo-panel {
    display: block;
    animation: regSlideDown 0.15s ease;
}

.reg-combo-search {
    position: relative;
    border-bottom: 1px solid var(--reg-line);
}

.reg-combo-search input {
    width: 100%;
    padding: 11px 40px 11px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--reg-ink);
    border: none;
    outline: none;
    background: transparent;
}

.reg-combo-search input::placeholder {
    color: #9fb0b2;
}

.reg-combo-search > i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--reg-muted);
    pointer-events: none;
}

.reg-combo-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 236px;
    overflow-y: auto;
}

.reg-combo-list li {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--reg-body);
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
}

.reg-combo-list li:hover {
    background: var(--reg-bg-soft);
    color: var(--reg-ink);
}

.reg-combo-list li.is-selected {
    background: rgba(25, 151, 198, 0.12);
    color: var(--reg-primary-dark);
    font-weight: 700;
}

.reg-combo-list li.is-hidden {
    display: none;
}

.reg-combo-list .reg-combo-empty {
    padding: 14px 12px;
    text-align: center;
    color: var(--reg-muted);
    font-size: 13px;
    cursor: default;
}

.reg-combo-list .reg-combo-empty:hover {
    background: none;
}

.reg-hint {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--reg-muted);
}

/* ------------------------------------------------------------------
   Validation states
------------------------------------------------------------------ */
.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #c0392b;
}

.reg-control.has-error,
.reg-combo .has-error {
    border-color: #d64541 !important;
}

.reg-control.has-error:focus {
    box-shadow: 0 0 0 3px rgba(214, 69, 65, 0.15);
}

.reg-field.has-error > .reg-chip-grid .reg-chip span:not(:hover),
.reg-field.has-error > .reg-chip-row .reg-chip span {
    border-color: rgba(214, 69, 65, 0.55);
    background: #fdf7f6;
}

.reg-field.has-error .reg-declare {
    border-color: rgba(214, 69, 65, 0.55);
    background: #fdf7f6;
}

.reg-file-box.has-error {
    border-color: #d64541;
}

/* ------------------------------------------------------------------
   Reference-number input (Check Status)
------------------------------------------------------------------ */
.ref-input-group {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 340px;
    margin: 0 auto;
}

.ref-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #ecf0f0;
    border: 1px solid var(--reg-line);
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #364e52;
    white-space: nowrap;
}

.ref-input-group .ref-num {
    border-radius: 0 10px 10px 0;
    max-width: 140px;
    font-weight: 700;
    font-size: 16px;
}

/* ------------------------------------------------------------------
   Membership documents (approved members)
------------------------------------------------------------------ */
.doc-section {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid var(--reg-line);
    border-radius: 14px;
    padding: 24px 26px;
    text-align: left;
}

.doc-section-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--reg-ink);
}

.doc-section-title i {
    color: #1e7e34;
    margin-right: 4px;
}

.doc-section-sub {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--reg-muted);
}

.doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px dashed var(--reg-line);
}

.doc-item:first-child {
    border-top: none;
}

.doc-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf2f2;
    color: #c0392b;
    border-radius: 10px;
    font-size: 19px;
}

.doc-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.doc-meta strong {
    font-size: 14.5px;
    color: var(--reg-ink);
}

.doc-meta small {
    font-size: 12.5px;
    color: var(--reg-muted);
    margin-top: 2px;
}

.doc-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 50px;
    background: var(--reg-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

.doc-btn:hover {
    background: #1283ab;
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------
   Chips (multi-select) & choice pills (single-select)
------------------------------------------------------------------ */
.reg-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reg-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 10px;
}

.reg-chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.reg-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.reg-chip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 13px;
    background: #fff;
    border: 1px solid var(--reg-line);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--reg-body);
    transition: all 0.15s ease;
    line-height: 1.35;
}

.reg-chip span:hover {
    border-color: var(--reg-primary);
    background: rgba(25, 151, 198, 0.06);
    color: var(--reg-primary-dark);
}

.reg-chip input:checked + span {
    background: var(--reg-primary);
    border-color: var(--reg-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(25, 151, 198, 0.35);
}

.reg-chip input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(25, 151, 198, 0.25);
}

/* ------------------------------------------------------------------
   "Other" reveals
------------------------------------------------------------------ */
.reg-other-wrap {
    display: none;
    margin-top: 12px;
}

.reg-other-wrap.is-visible {
    display: block;
    animation: regSlideDown 0.2s ease;
}

@keyframes regSlideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

#wrap-professional_status_other,
#wrap-education_other {
    margin-top: 0;
}

/* ------------------------------------------------------------------
   Certifications toggle block
------------------------------------------------------------------ */
.reg-cert-block {
    display: none;
    margin: 4px 0 8px;
    padding: 18px;
    background: var(--reg-bg-soft);
    border: 1px dashed var(--reg-line);
    border-radius: var(--reg-radius);
}

.reg-cert-block.is-visible {
    display: block;
    animation: regSlideDown 0.2s ease;
}

/* ------------------------------------------------------------------
   Declaration
------------------------------------------------------------------ */
.reg-declare {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--reg-bg-soft);
    border: 1px solid var(--reg-line);
    border-radius: var(--reg-radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--reg-body);
    line-height: 1.65;
    margin: 0;
}

.reg-declare input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--reg-primary);
    cursor: pointer;
}

/* ------------------------------------------------------------------
   CV upload dropzone
------------------------------------------------------------------ */
.reg-file-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 34px 20px;
    text-align: center;
    background: var(--reg-bg-soft);
    border: 2px dashed #c3d5d8;
    border-radius: var(--reg-radius);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    position: relative;
}

.reg-file-box:hover,
.reg-file-box.dragover {
    border-color: var(--reg-primary);
    background: rgba(25, 151, 198, 0.06);
}

.reg-file-box.has-file {
    border-style: solid;
    border-color: var(--reg-primary);
}

.reg-file-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.reg-file-box i {
    font-size: 30px;
    color: var(--reg-primary);
}

.reg-file-box strong {
    color: var(--reg-ink);
    font-size: 14.5px;
    font-weight: 700;
}

.reg-file-box small {
    color: var(--reg-muted);
    font-size: 12.5px;
}

.reg-file-name {
    color: var(--reg-primary-dark);
    font-weight: 600;
    font-size: 13.5px;
    min-height: 18px;
}

/* ------------------------------------------------------------------
   Submit row
------------------------------------------------------------------ */
.reg-submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--reg-line);
    text-align: center;
}

.reg-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 42px;
    background: var(--reg-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 22px rgba(25, 151, 198, 0.35);
}

.reg-submit-btn:hover:not(:disabled) {
    background: var(--reg-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(25, 151, 198, 0.4);
}

.reg-submit-btn:disabled,
.reg-submit-btn.is-loading {
    opacity: 0.75;
    cursor: progress;
    transform: none;
}

.reg-note {
    max-width: 520px;
    margin: 0;
    font-size: 13px;
    color: var(--reg-muted);
    line-height: 1.6;
}

/* ------------------------------------------------------------------
   Confirmation panels (success.php) & status checker (check.php)
------------------------------------------------------------------ */
.reg-panel {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--reg-line);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(12, 30, 33, 0.07);
    padding: clamp(28px, 5vw, 48px);
    text-align: center;
}

.reg-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 26px;
    margin-bottom: 18px;
}

.reg-panel-icon.ok {
    background: #e6f6ea;
    color: #1e7e34;
}

.reg-panel-icon.info {
    background: rgba(25, 151, 198, 0.12);
    color: var(--reg-primary-dark);
}

.reg-panel h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--reg-ink);
    margin-bottom: 12px;
}

.reg-panel > p {
    color: var(--reg-body);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.reg-ref-box {
    display: inline-block;
    background: var(--reg-bg-soft);
    border: 1px dashed #b9ced2;
    border-radius: 12px;
    padding: 16px 34px;
    margin-bottom: 24px;
}

.reg-ref-box small {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--reg-muted);
    margin-bottom: 4px;
}

.reg-ref-box strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--reg-primary-dark);
    letter-spacing: 0.03em;
}

.reg-steps {
    list-style: none;
    margin: 0 auto 26px;
    padding: 0;
    max-width: 480px;
    text-align: left;
}

.reg-steps li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    color: var(--reg-body);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.reg-steps li i {
    color: var(--reg-primary);
    margin-top: 4px;
    flex: 0 0 auto;
}

.reg-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.reg-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.reg-btn-primary {
    background: var(--reg-primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(25, 151, 198, 0.35);
}

.reg-btn-primary:hover {
    background: var(--reg-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.reg-btn-outline {
    border: 1.5px solid var(--reg-line);
    color: var(--reg-body);
    background: #fff;
}

.reg-btn-outline:hover {
    border-color: var(--reg-primary);
    color: var(--reg-primary-dark);
}

.reg-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    vertical-align: middle;
}

.reg-badge-pending  { background: #fef4e6; color: #b45309; }
.reg-badge-reviewed { background: #e8f1fd; color: #175cd3; }
.reg-badge-approved { background: #e6f6ea; color: #1e7e34; }
.reg-badge-rejected { background: #fdf1f0; color: #a93226; }

/* ------------------------------------------------------------------
   Member directory (members.php)
------------------------------------------------------------------ */
.reg-toolbar {
    max-width: 960px;
    margin: 0 auto 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--reg-line);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 6px 24px rgba(12, 30, 33, 0.05);
}

.reg-toolbar .search-box {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
}

.reg-toolbar input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--reg-line);
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.reg-toolbar input[type="text"]:focus {
    border-color: var(--reg-primary);
    box-shadow: 0 0 0 3px rgba(25, 151, 198, 0.15);
}

.reg-toolbar select {
    padding: 10px 14px;
    border: 1px solid var(--reg-line);
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    background: #fff;
    min-width: 170px;
    outline: none;
}

.member-empty {
    max-width: 640px;
    margin: 40px auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--reg-line);
    border-radius: 16px;
    padding: 54px 30px;
}

.member-empty i {
    font-size: 40px;
    color: #b9ced2;
    margin-bottom: 16px;
}

.member-empty h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--reg-ink);
    margin-bottom: 8px;
}

.member-empty p {
    color: var(--reg-muted);
    font-size: 14.5px;
    margin: 0;
}

.member-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.member-card {
    background: #fff;
    border: 1px solid var(--reg-line);
    border-radius: 14px;
    padding: 26px 24px;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(12, 30, 33, 0.09);
}

.member-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(25, 151, 198, 0.16), rgba(25, 151, 198, 0.32));
    color: var(--reg-primary-dark);
    font-size: 18px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.member-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--reg-ink);
    margin: 0 0 4px;
}

.member-role {
    color: var(--reg-primary-dark);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.45;
}

.member-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: var(--reg-muted);
    margin-bottom: 14px;
}

.member-meta i {
    color: var(--reg-primary);
    width: 16px;
    text-align: center;
}

.member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.member-tag {
    padding: 4px 11px;
    background: var(--reg-bg-soft);
    border: 1px solid var(--reg-line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--reg-body);
}

/* ------------------------------------------------------------------
   Confirmation popup (success.php)
------------------------------------------------------------------ */
.reg-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: 440px;
    width: calc(100% - 32px);
    box-shadow: 0 24px 70px rgba(12, 30, 33, 0.35);
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
}

.reg-modal::backdrop {
    background: rgba(12, 30, 33, 0.55);
}

.reg-modal-box {
    position: relative;
    padding: 38px 30px 30px;
    text-align: center;
    font-family: inherit;
}

.reg-modal-box h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--reg-ink);
    margin: 0 0 10px;
}

.reg-modal-box p {
    color: var(--reg-body);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 18px;
}

.reg-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--reg-muted);
    cursor: pointer;
    padding: 4px;
}

.reg-modal-close:hover {
    color: var(--reg-ink);
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 991px) {
    .reg-section {
        padding: 34px 0 70px;
    }

    .reg-chip-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 575px) {
    .reg-section {
        padding: 24px 0 56px;
    }

    .reg-intro h1 {
        font-size: 24px;
    }

    .reg-form {
        border-radius: 14px;
    }

    .reg-sec {
        margin: 30px 0 18px;
        gap: 11px;
    }

    .reg-sec-num {
        width: 34px;
        height: 34px;
        font-size: 12px;
        border-radius: 8px;
    }

    .reg-chip-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .reg-chip span {
        padding: 9px 12px;
        font-size: 12.5px;
    }

    .reg-toolbar select {
        min-width: 0;
        flex: 1 1 140px;
    }

    .reg-ref-box {
        padding: 13px 24px;
    }

    .reg-ref-box strong {
        font-size: 19px;
    }

    .reg-submit-btn {
        width: 100%;
    }
}
