/* =========================================================
   PARTICIPANT CREATE
   MASTER DATA STYLE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.participant-create-page {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 0 0 50px;

    box-sizing: border-box;
}


/* =========================================================
   BACK LINK
   DI LUAR CARD
========================================================= */

.participant-back-link {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin: 0 0 14px 2px;

    color: #2563eb;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.participant-back-link:hover {
    color: #1d4ed8;

    transform: translateX(-2px);
}


/* =========================================================
   HEADER
========================================================= */

.participant-create-header {
    position: relative;

    width: 100%;

    min-height: 210px;

    display: flex;

    align-items: center;

    padding: 35px 40px;

    margin-bottom: 24px;

    box-sizing: border-box;

    overflow: hidden;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #07152f 0%,
            #0b2859 48%,
            #0d63d8 100%
        );

    border: 1px solid rgba(59, 130, 246, 0.20);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.14);
}


/* =========================================================
   HEADER DECORATION
========================================================= */

.participant-create-header::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -100px;
    top: -115px;

    border-radius: 50%;

    background:
        rgba(59, 130, 246, 0.18);

    pointer-events: none;
}


.participant-create-header::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: 150px;
    bottom: -95px;

    border-radius: 50%;

    background:
        rgba(96, 165, 250, 0.08);

    pointer-events: none;
}


/* =========================================================
   HEADER CONTENT
========================================================= */

.participant-create-header-content {
    position: relative;

    z-index: 5;

    max-width: 800px;
}


/* =========================================================
   EYEBROW
========================================================= */

.participant-create-eyebrow {
    display: inline-flex;

    align-items: center;

    padding: 7px 12px;

    margin-bottom: 11px;

    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;

    line-height: 1;
}


/* =========================================================
   TITLE
========================================================= */

.participant-create-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 32px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.5px;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.participant-create-header p {
    margin: 9px 0 0;

    color: #93c5fd;

    font-size: 13px;

    line-height: 1.6;

    max-width: 700px;
}


/* =========================================================
   DECORATION RIGHT
========================================================= */

.participant-header-decoration {
    position: absolute;

    right: 45px;
    top: 50%;

    width: 180px;
    height: 180px;

    transform: translateY(-50%);

    pointer-events: none;

    z-index: 2;
}


.participant-decoration-circle {
    position: absolute;

    width: 175px;
    height: 175px;

    right: 0;
    top: 0;

    border-radius: 50%;

    background:
        rgba(37, 99, 235, 0.12);

    border:
        1px solid rgba(96, 165, 250, 0.10);
}


.participant-decoration-circle.small {
    width: 105px;
    height: 105px;

    right: 35px;
    top: 35px;

    background:
        rgba(37, 99, 235, 0.18);
}


.participant-decoration-card {
    position: absolute;

    right: 55px;
    top: 67px;

    padding: 9px 13px;

    border-radius: 7px;

    background:
        rgba(15, 53, 112, 0.95);

    border:
        1px solid rgba(147, 197, 253, 0.22);

    color: #dbeafe;

    font-size: 10px;

    font-weight: 700;

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   ERROR
========================================================= */

.participant-alert {
    width: 100%;

    box-sizing: border-box;

    margin-bottom: 20px;

    padding: 13px 17px;

    border-radius: 10px;

    font-size: 12px;

    line-height: 1.5;
}


.participant-alert-error {
    background: #fff1f2;

    border: 1px solid #fecdd3;

    color: #be123c;
}


/* =========================================================
   FORM CARD
========================================================= */

.participant-form-card {
    width: 100%;

    box-sizing: border-box;

    background: #ffffff;

    border:
        1px solid #e2e8f0;

    border-radius: 17px;

    overflow: hidden;

    box-shadow:
        0 7px 24px rgba(15, 23, 42, 0.055);
}


/* =========================================================
   FORM CARD HEADER
========================================================= */

.participant-form-heading {
    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 24px 30px;

    border-bottom:
        1px solid #edf1f5;
}


.participant-form-heading::before {
    content: "";

    position: absolute;

    left: 0;
    top: 19px;
    bottom: 19px;

    width: 4px;

    border-radius: 0 5px 5px 0;

    background: #2563eb;
}


/* =========================================================
   ICON
========================================================= */

.participant-form-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background:
        #eff6ff;

    border:
        1px solid #dbeafe;

    color: #2563eb;

    font-size: 16px;

    font-weight: 800;
}


/* =========================================================
   FORM HEADER TEXT
========================================================= */

.participant-form-heading span {
    display: block;

    margin-bottom: 3px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.1px;
}


.participant-form-heading h3 {
    margin: 0;

    color: #172033;

    font-size: 18px;

    font-weight: 800;
}


.participant-form-heading p {
    margin: 4px 0 0;

    color: #8a94a6;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.participant-form {
    width: 100%;

    box-sizing: border-box;

    padding: 30px;
}


/* =========================================================
   FORM GROUP
========================================================= */

.participant-form-group {
    width: 100%;

    margin-bottom: 20px;
}


/* =========================================================
   LABEL
========================================================= */

.participant-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #263248;

    font-size: 12px;

    font-weight: 700;
}


.participant-form-group label span {
    margin-left: 2px;

    color: #dc2626;
}


/* =========================================================
   INPUT
========================================================= */

.participant-form-group input,
.participant-form-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,
        background 0.2s ease;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.participant-form-group input::placeholder {
    color: #a1adbd;
}


/* =========================================================
   HOVER
========================================================= */

.participant-form-group input:hover,
.participant-form-group select:hover {
    border-color: #b8c7d9;
}


/* =========================================================
   FOCUS
========================================================= */

.participant-form-group input:focus,
.participant-form-group select:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.09);
}


/* =========================================================
   DISABLED
========================================================= */

.participant-form-group select:disabled {
    background: #f6f8fb;

    color: #9aa6b6;

    cursor: not-allowed;
}


/* =========================================================
   READONLY
========================================================= */

.participant-form-group input[readonly] {
    background: #f7f9fc;

    color: #718096;

    cursor: default;
}


/* =========================================================
   HELP TEXT
========================================================= */

.participant-form-group small {
    display: block;

    margin-top: 6px;

    color: #96a1b0;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   ACTION
========================================================= */

.participant-form-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 9px;

    margin-top: 25px;

    padding-top: 21px;

    border-top:
        1px solid #edf1f5;
}


/* =========================================================
   SECONDARY
========================================================= */

.participant-secondary-button {
    min-height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    padding: 0 17px;

    border-radius: 8px;

    background: #ffffff;

    border:
        1px solid #dce3ec;

    color: #64748b;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition: 0.2s ease;
}


.participant-secondary-button:hover {
    background: #f8fafc;

    border-color: #cbd5e1;

    color: #334155;
}


/* =========================================================
   PRIMARY
========================================================= */

.participant-primary-button {
    min-height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    padding: 0 18px;

    border: 1px solid #2563eb;

    border-radius: 8px;

    background: #2563eb;

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 13px rgba(37, 99, 235, 0.17);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.participant-primary-button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 7px 17px rgba(37, 99, 235, 0.22);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .participant-create-header {
        padding: 32px;
    }

    .participant-header-decoration {
        right: 15px;

        opacity: 0.5;
    }

    .participant-create-header h2 {
        font-size: 29px;
    }

    .participant-form {
        padding: 26px;
    }

}


@media (max-width: 650px) {

    .participant-create-header {
        min-height: 185px;

        padding: 27px 23px;

        border-radius: 14px;
    }

    .participant-create-header h2 {
        font-size: 25px;
    }

    .participant-create-header p {
        font-size: 12px;
    }

    .participant-header-decoration {
        display: none;
    }

    .participant-form-heading {
        padding: 21px 23px;
    }

    .participant-form {
        padding: 23px;
    }

    .participant-form-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .participant-primary-button,
    .participant-secondary-button {
        width: 100%;
    }

}


@media (max-width: 420px) {

    .participant-create-page {
        padding-bottom: 30px;
    }

    .participant-create-header {
        padding: 24px 19px;
    }

    .participant-create-header h2 {
        font-size: 23px;
    }

    .participant-form-heading {
        gap: 11px;

        padding: 19px;
    }

    .participant-form-icon {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .participant-form {
        padding: 19px;
    }

}


/* =========================================================
   DARK MODE OVERRIDES FOR PARTICIPANT CREATE PAGE
   ========================================================= */

html.theme-dark .participant-back-link {
    color: #38bdf8 !important;
}

html.theme-dark .participant-back-link:hover {
    color: #7dd3fc !important;
}

html.theme-dark .participant-create-header {
    background: linear-gradient(135deg, #0b152c 0%, #132347 48%, #1d4ed8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .participant-form-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-form-heading {
    background: #16213a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .participant-form-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-form-heading span {
    color: #38bdf8 !important;
}

html.theme-dark .participant-form-heading h3 {
    color: #ffffff !important;
}

html.theme-dark .participant-form-heading p {
    color: #cbd5e1 !important;
}

html.theme-dark .participant-form-group label {
    color: #f8fafc !important;
    font-weight: 700 !important;
}

html.theme-dark .participant-form-group input,
html.theme-dark .participant-form-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-form-group input::placeholder,
html.theme-dark .participant-form-group select::placeholder {
    color: #94a3b8 !important;
}

html.theme-dark .participant-form-group input:hover,
html.theme-dark .participant-form-group select:hover {
    border-color: #60a5fa !important;
    background: #0d1527 !important;
}

html.theme-dark .participant-form-group input:focus,
html.theme-dark .participant-form-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-form-group select:disabled,
html.theme-dark .participant-form-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-form-group small {
    color: #cbd5e1 !important;
}

html.theme-dark .participant-form-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .participant-secondary-button {
    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-secondary-button: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-primary-button {
    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-primary-button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45) !important;
}
