/* =========================================================
   PARTICIPANT EDIT
========================================================= */

.participant-edit-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 0 50px;
    box-sizing: border-box;
}


/* =========================================================
   BACK
========================================================= */

.participant-edit-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 0 20px 0 !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.participant-edit-back:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #60a5fa !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18) !important;
    transform: translateX(-4px) !important;
}


/* =========================================================
   HEADER
========================================================= */

.participant-edit-header {
    position: relative;

    width: 100%;
    min-height: 190px;

    display: flex;
    align-items: center;

    padding: 32px 40px;

    box-sizing: border-box;

    overflow: hidden;

    margin-bottom: 22px;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #07152f 0%,
            #0b2859 50%,
            #0d63d8 100%
        );

    border: 1px solid rgba(59, 130, 246, 0.20);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.13);
}

.participant-edit-header::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -100px;
    top: -120px;

    border-radius: 50%;

    background: rgba(59, 130, 246, 0.16);
}

.participant-edit-header::after {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    right: 190px;
    bottom: -110px;

    border-radius: 50%;

    background: rgba(96, 165, 250, 0.08);
}

.participant-edit-header-content {
    position: relative;
    z-index: 2;
}

.participant-edit-eyebrow {
    display: inline-flex;

    padding: 7px 12px;

    margin-bottom: 10px;

    border-radius: 7px;

    background: rgba(37, 99, 235, 0.20);

    border: 1px solid rgba(96, 165, 250, 0.28);

    color: #60a5fa;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.participant-edit-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 31px;
    font-weight: 800;

    letter-spacing: -0.5px;
}

.participant-edit-header p {
    margin: 8px 0 0;

    color: #93c5fd;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   ALERT
========================================================= */

.participant-edit-alert {
    width: 100%;

    box-sizing: border-box;

    margin-bottom: 20px;

    padding: 13px 17px;

    border-radius: 9px;

    background: #fff1f2;

    border: 1px solid #fecdd3;

    color: #be123c;

    font-size: 12px;
}


/* =========================================================
   CARD
========================================================= */

.participant-edit-card {
    width: 100%;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 7px 24px rgba(15, 23, 42, 0.055);
}


/* =========================================================
   CARD HEADER
========================================================= */

.participant-edit-card-heading {
    position: relative;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 23px 30px;

    border-bottom: 1px solid #edf1f5;
}

.participant-edit-card-heading::before {
    content: "";

    position: absolute;

    left: 0;
    top: 18px;
    bottom: 18px;

    width: 4px;

    border-radius: 0 5px 5px 0;

    background: #2563eb;
}

.participant-edit-icon {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eff6ff;

    border: 1px solid #dbeafe;

    color: #2563eb;

    font-size: 15px;
    font-weight: 800;
}

.participant-edit-card-heading span {
    display: block;

    margin-bottom: 3px;

    color: #2563eb;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.1px;
}

.participant-edit-card-heading h3 {
    margin: 0;

    color: #172033;

    font-size: 18px;
    font-weight: 800;
}

.participant-edit-card-heading p {
    margin: 4px 0 0;

    color: #8a94a6;

    font-size: 11px;
}


/* =========================================================
   FORM
========================================================= */

.participant-edit-form {
    width: 100%;

    box-sizing: border-box;

    padding: 30px;
}

.participant-edit-group {
    width: 100%;

    margin-bottom: 20px;
}

.participant-edit-group label {
    display: block;

    margin-bottom: 7px;

    color: #263248;

    font-size: 12px;
    font-weight: 700;
}

.participant-edit-group label span {
    color: #dc2626;

    margin-left: 2px;
}

.participant-edit-group input,
.participant-edit-group select {
    width: 100%;

    min-height: 45px;

    box-sizing: border-box;

    padding: 0 13px;

    border: 1px solid #d9e2ec;

    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.participant-edit-group input::placeholder {
    color: #a1adbd;
}

.participant-edit-group input:hover,
.participant-edit-group select:hover {
    border-color: #b8c7d9;
}

.participant-edit-group input:focus,
.participant-edit-group select:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.09);
}

.participant-edit-group input[readonly] {
    background: #f7f9fc;

    color: #718096;

    cursor: default;
}

.participant-edit-group small {
    display: block;

    margin-top: 6px;

    color: #96a1b0;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   ACTION
========================================================= */

.participant-edit-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    margin-top: 25px;

    padding-top: 21px;

    border-top: 1px solid #edf1f5;
}

.participant-edit-secondary,
.participant-edit-primary {
    min-height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 0 18px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition: 0.2s ease;
}

.participant-edit-secondary {
    background: #ffffff;

    border: 1px solid #dce3ec;

    color: #64748b;
}

.participant-edit-secondary:hover {
    background: #f8fafc;

    border-color: #cbd5e1;

    color: #334155;
}

.participant-edit-primary {
    border: 1px solid #2563eb;

    background: #2563eb;

    color: #ffffff;

    box-shadow:
        0 5px 13px rgba(37, 99, 235, 0.17);
}

.participant-edit-primary:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 7px 17px rgba(37, 99, 235, 0.22);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 650px) {

    .participant-edit-header {
        min-height: 170px;

        padding: 27px 23px;

        border-radius: 14px;
    }

    .participant-edit-header h2 {
        font-size: 26px;
    }

    .participant-edit-form {
        padding: 23px;
    }

    .participant-edit-card-heading {
        padding: 21px 23px;
    }

    .participant-edit-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .participant-edit-primary,
    .participant-edit-secondary {
        width: 100%;
    }

}


@media (max-width: 420px) {

    .participant-edit-header {
        padding: 24px 19px;
    }

    .participant-edit-header h2 {
        font-size: 23px;
    }

    .participant-edit-form {
        padding: 19px;
    }

    .participant-edit-card-heading {
        padding: 19px;
    }

}


/* =========================================================
   DARK MODE OVERRIDES FOR PARTICIPANT EDIT PAGE
   ========================================================= */

html.theme-dark .participant-edit-back {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #a5b4fc !important;
}

html.theme-dark .participant-edit-back:hover {
    background: rgba(51, 65, 85, 0.9) !important;
    border-color: rgba(165, 180, 252, 0.4) !important;
    color: #ffffff !important;
}

html.theme-dark .participant-edit-header {
    background: linear-gradient(135deg, #0b1329 0%, #151d38 50%, #1c284e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .participant-edit-card {
    background: #11192e !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

html.theme-dark .participant-edit-card-heading {
    background: #16213a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .participant-edit-icon {
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
}

html.theme-dark .participant-edit-card-heading span {
    color: #38bdf8 !important;
}

html.theme-dark .participant-edit-card-heading h3 {
    color: #ffffff !important;
}

html.theme-dark .participant-edit-card-heading p {
    color: #cbd5e1 !important;
}

html.theme-dark .participant-edit-group label {
    color: #f8fafc !important;
    font-weight: 700 !important;
}

html.theme-dark .participant-edit-group input,
html.theme-dark .participant-edit-group select {
    background: #090e1a !important;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
    color: #ffffff !important;
    font-size: 13px !important;
}

html.theme-dark .participant-edit-group input::placeholder,
html.theme-dark .participant-edit-group select::placeholder {
    color: #94a3b8 !important;
}

html.theme-dark .participant-edit-group input:hover,
html.theme-dark .participant-edit-group select:hover {
    border-color: #60a5fa !important;
    background: #0d1527 !important;
}

html.theme-dark .participant-edit-group input:focus,
html.theme-dark .participant-edit-group select:focus {
    background: #0d1527 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25) !important;
}

html.theme-dark .participant-edit-group input[readonly] {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #64748b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-dark .participant-edit-group small {
    color: #cbd5e1 !important;
}

html.theme-dark .participant-edit-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .participant-edit-secondary {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #f1f5f9 !important;
}

html.theme-dark .participant-edit-secondary:hover {
    background: rgba(51, 65, 85, 0.9) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

html.theme-dark .participant-edit-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border: 1px solid #3b82f6 !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
}

html.theme-dark .participant-edit-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45) !important;
}
