/* =========================================================
   PARTICIPANT EDIT PAGE
   ========================================================= */

.participant-edit-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 40px;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.participant-edit-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #7b8798;
}

.participant-edit-breadcrumb a {
    color: #315efb;
    text-decoration: none;
    font-weight: 600;
}

.participant-edit-breadcrumb a:hover {
    text-decoration: underline;
}

.participant-edit-breadcrumb span {
    color: #a0a9b8;
}


/* =========================================================
   HERO
   ========================================================= */

.participant-edit-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    min-height: 190px;
    padding: 34px 38px;

    margin-bottom: 24px;

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(75, 128, 255, 0.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #071a3a 0%,
            #0c2855 55%,
            #123d7b 100%
        );

    box-shadow: 0 14px 35px rgba(9, 31, 72, 0.16);

    overflow: hidden;
}

.participant-edit-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;

    width: 300px;
    height: 300px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    pointer-events: none;
}

.participant-edit-hero-content {
    position: relative;
    z-index: 2;
}

.participant-edit-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 9px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;

    color: #91b7ff;
}

.participant-edit-hero h1 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.participant-edit-hero p {
    margin: 0;

    max-width: 650px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   HERO STATUS
   ========================================================= */

.participant-edit-hero-status {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 10px 15px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.participant-edit-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #5ee6a8;

    box-shadow: 0 0 0 4px rgba(94, 230, 168, 0.12);
}


/* =========================================================
   ALERT
   ========================================================= */

.participant-edit-alert {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-bottom: 22px;
    padding: 17px 18px;

    border: 1px solid #fecaca;
    border-radius: 14px;

    background: #fff7f7;
}

.participant-edit-alert-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #fee2e2;
    color: #dc2626;

    font-size: 14px;
    font-weight: 800;
}

.participant-edit-alert-content {
    min-width: 0;
}

.participant-edit-alert-content strong {
    display: block;

    margin-bottom: 5px;

    color: #991b1b;

    font-size: 13px;
}

.participant-edit-alert-content ul {
    margin: 0;
    padding-left: 18px;

    color: #b42318;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.participant-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;

    gap: 22px;

    align-items: start;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.participant-edit-form-card,
.participant-edit-side-card {
    background: #ffffff;

    border: 1px solid #e6eaf0;
    border-radius: 18px;

    box-shadow: 0 7px 25px rgba(15, 35, 70, 0.055);
}

.participant-edit-form-card {
    overflow: hidden;
}

.participant-edit-card-header {
    padding: 26px 28px 22px;

    border-bottom: 1px solid #edf0f4;
}

.participant-edit-section-label {
    display: block;

    margin-bottom: 7px;

    color: #315efb;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.25px;
}

.participant-edit-card-header h2,
.participant-edit-side-header h2 {
    margin: 0;

    color: #172033;

    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.2px;
}

.participant-edit-card-header p {
    margin: 7px 0 0;

    color: #7b8798;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.participant-edit-form {
    padding: 28px;
}

.participant-edit-field {
    margin-bottom: 23px;
}

.participant-edit-field label {
    display: block;

    margin-bottom: 8px;

    color: #273247;

    font-size: 13px;
    font-weight: 700;
}

.participant-edit-field label span {
    color: #ef4444;
    margin-left: 2px;
}

.participant-edit-field input {
    display: block;

    width: 100%;
    height: 48px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 1px solid #d9dee8;
    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: #172033;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.participant-edit-field input::placeholder {
    color: #a6afbd;
}

.participant-edit-field input:hover {
    border-color: #b9c2d0;
}

.participant-edit-field input:focus {
    border-color: #315efb;

    box-shadow:
        0 0 0 3px rgba(49, 94, 251, 0.10);
}

.participant-edit-field small {
    display: block;

    margin-top: 7px;

    color: #8a95a5;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   FORM ACTION
   ========================================================= */

.participant-edit-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid #edf0f4;
}

.participant-edit-cancel-button,
.participant-edit-submit-button,
.participant-edit-primary-button,
.participant-edit-secondary-button,
.participant-edit-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding: 0 17px;

    border-radius: 9px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease;
}

.participant-edit-cancel-button {
    border: 1px solid #dfe4ec;

    background: #ffffff;
    color: #536075;
}

.participant-edit-cancel-button:hover {
    background: #f7f9fc;
    border-color: #cbd2dd;
}

.participant-edit-submit-button {
    border: 1px solid #315efb;

    background: #315efb;
    color: #ffffff;

    box-shadow: 0 5px 13px rgba(49, 94, 251, 0.18);
}

.participant-edit-submit-button:hover {
    background: #244edc;

    transform: translateY(-1px);

    box-shadow: 0 7px 17px rgba(49, 94, 251, 0.23);
}

.participant-edit-submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   SIDE CARD
   ========================================================= */

.participant-edit-side-card {
    padding: 24px;
}

.participant-edit-side-header {
    padding-bottom: 20px;

    border-bottom: 1px solid #edf0f4;
}

.participant-edit-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 17px 0;

    border-bottom: 1px solid #f0f2f5;
}

.participant-edit-info-item:last-of-type {
    border-bottom: none;
}

.participant-edit-info-item span {
    color: #8a95a5;

    font-size: 11px;
    font-weight: 600;
}

.participant-edit-info-item strong {
    color: #263247;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.5;

    word-break: break-word;
}

.participant-edit-info-status {
    display: inline-flex;

    width: fit-content;

    padding: 5px 9px;

    border-radius: 6px;

    background: #ecfdf3;
    color: #15803d !important;

    font-size: 11px !important;
}


/* =========================================================
   SIDE DIVIDER
   ========================================================= */

.participant-edit-side-divider {
    height: 1px;

    margin: 5px 0 20px;

    background: #edf0f4;
}


/* =========================================================
   NOTICE
   ========================================================= */

.participant-edit-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    padding: 14px;

    border: 1px solid #dbeafe;
    border-radius: 11px;

    background: #f5f9ff;
}

.participant-edit-notice-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    border-radius: 7px;

    background: #dbeafe;
    color: #2563eb;

    font-size: 12px;
    font-weight: 800;
}

.participant-edit-notice strong {
    display: block;

    margin-bottom: 4px;

    color: #1e3a8a;

    font-size: 12px;
}

.participant-edit-notice p {
    margin: 0;

    color: #58708f;

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   ERROR PAGE
   ========================================================= */

.participant-edit-error-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 22px;

    margin-bottom: 18px;

    border: 1px solid #e6eaf0;
    border-radius: 16px;

    background: #ffffff;

    box-shadow: 0 7px 25px rgba(15, 35, 70, 0.055);
}

.participant-edit-error-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 10px;

    background: #fee2e2;
    color: #dc2626;

    font-size: 17px;
    font-weight: 800;
}

.participant-edit-error-card h3 {
    margin: 1px 0 5px;

    color: #202b3c;

    font-size: 15px;
}

.participant-edit-error-card p {
    margin: 0;

    color: #7b8798;

    font-size: 13px;
    line-height: 1.6;
}

.participant-edit-back-button {
    border: 1px solid #dfe4ec;

    background: #ffffff;
    color: #445168;
}

.participant-edit-back-button:hover {
    background: #f7f9fc;
}


/* =========================================================
   LOCKED / CANNOT EDIT
   ========================================================= */

.participant-edit-locked-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;

    padding: 30px;

    border: 1px solid #e6eaf0;
    border-radius: 18px;

    background: #ffffff;

    box-shadow: 0 7px 25px rgba(15, 35, 70, 0.055);
}

.participant-edit-locked-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 14px;

    background: #f1f5f9;

    font-size: 21px;
}

.participant-edit-locked-content {
    min-width: 0;
}

.participant-edit-locked-content h1 {
    margin: 0 0 9px;

    color: #172033;

    font-size: 23px;
    line-height: 1.25;
}

.participant-edit-locked-content > p {
    max-width: 760px;

    margin: 0;

    color: #697589;

    font-size: 13px;
    line-height: 1.65;
}

.participant-edit-locked-content > p strong {
    color: #263247;
}

.participant-edit-locked-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-top: 24px;
}

.participant-edit-locked-info > div {
    padding: 14px;

    border: 1px solid #edf0f4;
    border-radius: 10px;

    background: #f9fafc;
}

.participant-edit-locked-info span {
    display: block;

    margin-bottom: 5px;

    color: #8a95a5;

    font-size: 10px;
    font-weight: 700;
}

.participant-edit-locked-info strong {
    display: block;

    color: #29354a;

    font-size: 13px;

    word-break: break-word;
}

.participant-edit-locked-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 24px;
}

.participant-edit-primary-button {
    border: 1px solid #315efb;

    background: #315efb;
    color: #ffffff;

    box-shadow: 0 5px 13px rgba(49, 94, 251, 0.16);
}

.participant-edit-primary-button:hover {
    background: #244edc;
    transform: translateY(-1px);
}

.participant-edit-secondary-button {
    border: 1px solid #dfe4ec;

    background: #ffffff;
    color: #536075;
}

.participant-edit-secondary-button:hover {
    background: #f7f9fc;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .participant-edit-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .participant-edit-hero {
        padding: 30px;
    }

}


@media (max-width: 900px) {

    .participant-edit-layout {
        grid-template-columns: 1fr;
    }

    .participant-edit-side-card {
        order: 2;
    }

    .participant-edit-form-card {
        order: 1;
    }

}


@media (max-width: 700px) {

    .participant-edit-page {
        padding-bottom: 25px;
    }

    .participant-edit-hero {
        flex-direction: column;
        align-items: flex-start;

        min-height: auto;

        padding: 26px 24px;
    }

    .participant-edit-hero h1 {
        font-size: 24px;
    }

    .participant-edit-hero-status {
        align-self: flex-start;
    }

    .participant-edit-form {
        padding: 22px;
    }

    .participant-edit-card-header {
        padding: 22px;
    }

    .participant-edit-side-card {
        padding: 22px;
    }

    .participant-edit-locked-card {
        flex-direction: column;

        padding: 24px;
    }

    .participant-edit-locked-info {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 520px) {

    .participant-edit-breadcrumb {
        flex-wrap: wrap;

        font-size: 12px;
    }

    .participant-edit-hero {
        border-radius: 15px;
    }

    .participant-edit-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .participant-edit-cancel-button,
    .participant-edit-submit-button {
        width: 100%;
    }

    .participant-edit-locked-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .participant-edit-primary-button,
    .participant-edit-secondary-button {
        width: 100%;
    }

}