﻿/****************************************************
 * PARTICIPANT - RFE PAGE
 ****************************************************/

/* ===== Outer Card ===== */
.participant-card-outer {
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    background: #fff;
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 1.5rem;
}

.participant-card-outer-body {
    padding: 0;
}

/* ===== Header ===== */
.participant-card-head-blue {
    background-color: var(--std-background, #004aad);
    color: #fff;
    padding: 1rem;
    border-radius: 0.8rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

    .participant-card-head-blue .participant-card-title {
        font-weight: 800;
        text-transform: uppercase;
        font-size: 1.4rem;
        margin: 0;
    }

.participant-title-sub {
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0.9;
}

.participant-date {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ===== Layout ===== */
.rfe-layout {
    align-items: stretch;
}

.participant-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.participant-card-body {
    flex: 1;
    min-height: 0;
}

.participant-declarations-body {
    flex: 1;
    min-height: 0;
}

/* ===== Inner Cards ===== */
.participant-card-inner {
    background: #fff;
    border: 2px solid #eef1f4;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

    .participant-card-inner .participant-card-head-blue {
        border-radius: 12px 12px 0 0;
    }

/* ===== Card Body ===== */
.participant-card-body {
    padding: 1rem 1.2rem;
    flex: 1;
    min-height: 0;
}

/* ===== Declarations ===== */
.participant-declarations-body {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.consents-intro {
    margin-bottom: 1rem;
}

.participant-declarations-body .consents-list {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

    .participant-declarations-body .consents-list > li::marker {
        font-weight: 800;
    }

    .participant-declarations-body .consents-list > li .consents-checkline {
        align-items: flex-start;
        position: relative;
        top: 6px;
    }


.consents-checkline {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    transition: background 0.2s ease;
}

    .consents-checkline:hover {
        background-color: rgba(0, 86, 179, 0.06);
    }

.consents-check {
    width: 24px;
    height: 24px;
    accent-color: var(--std-background, #004aad);
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.consents-label {
    flex: 1;
    font-size: 1rem;
    color: #333;
}

.consents-req {
    color: #dc3545;
    font-size: 1.3rem;
    font-weight: 800;
    margin-left: 0.3rem;
    line-height: 1;
}

.minor-consent-details {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px dashed #d6e2f3;
}

/* ===== Buttons ===== */
.participant-btn-save {
    background-color: var(--std-background);
    color: #fff;
    text-transform: uppercase;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 0.7rem;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .participant-btn-save:hover {
        background-color: #6495ED;
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0, 86, 179, 0.25);
    }

    .participant-btn-save:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.participant-warning-card {
    border: 1px solid rgba(199,119,0,.45);
    border-radius: 14px;
    background: rgba(240,173,78,.06);
}

/* header: icona + titolo stessa linea e stessa size */
.warning-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
}

.warning-ico {
    font-size: 1.35rem;
    line-height: 1;
    color: #c77700; /* arancione scuro */
}

.warning-title {
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 900;
    color: #c77700;
    letter-spacing: .02em;
}

/* messaggi più visibili ma coerenti */
.warning-message {
    padding: .85rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.warning-message-danger {
    background: rgba(220,53,69,.08);
    border: 1px solid rgba(220,53,69,.35);
    color: #7f1d1d;
}

/* hint */
.warning-hint {
    font-size: .95rem;
    font-weight: 700;
    color: rgba(31,41,55,.85);
}

/* bottoni: niente blu */
.btn-outline-warning, .btn-outline-secondary {
    border-width: 2px;
    font-weight: 800;
}


.btn-ack {
    border-width: 2px;
    font-weight: 900;
    letter-spacing: .02em;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}

    .btn-ack:active {
        transform: translateY(1px);
    }

/* YES: amber */
.btn-ack-yes {
    background: #c77700; 
    border-color: #c77700;
    color: #fff; 
}

    .btn-ack-yes:hover,
    .btn-ack-yes:focus {
        background: #fff; 
        color: #c77700; 
        border-color: #c77700;
    }

/* NO */
.btn-ack-no {
    background: #4b5563; 
    border-color: #4b5563;
    color: #fff; 
}

    .btn-ack-no:hover,
    .btn-ack-no:focus {
        background: #fff; 
        color: #4b5563;
        border-color: #4b5563;
    }

.btn-ack:focus {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(199,119,0,.25);
}

.btn-ack-no:focus {
    box-shadow: 0 0 0 .2rem rgba(75,85,99,.25);
}

/* ===== Breakpoints ===== */
@media (max-width: 576px) {
    .rfe-layout {
        height: auto;
        min-height: unset;
        max-height: unset;
    }

    .participant-declarations-body {
        overflow: visible;
        max-height: none;
    }
}


@media (min-width: 577px) and (max-width: 991px) {
    .rfe-layout {
        height: 75vh;
        min-height: 650px;
    }

    .participant-declarations-body {
        overflow-y: auto;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .rfe-layout {
        height: 80vh;
        min-height: 720px;
    }

    .participant-declarations-body {
        overflow-y: auto;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .participant-declarations-body {
        max-height: 60vh;
    }
}

@media (min-width: 1400px) {
    .rfe-layout {
        height: 85vh;
        min-height: 800px;
    }

    .participant-declarations-body {
        overflow-y: auto;
    }
}


/****************************************************
 * PARTICIPANT CHANGE EMAIL FOR MINORS
 ****************************************************/
.participant-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
    background: #f7f9fc;
}


.participant-adult-shell {
    width: min(640px,100%);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(6,46,111,.18);
    overflow: hidden;
    width: min(940px, 100%);
    margin: 0 auto;
}

.participant-adult-header {
    padding: 22px 24px;
    background: var(--std-background);
    color: white;
}

.participant-adult-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: clamp(18px,3vw,22px)
}

.participant-adult-form {
    padding: 22px 24px;
    display: grid;
    gap: 18px;
}

/* message block */
.participant-adult-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f5fbff;
    border: 1px solid #e3f2ff;
    border-radius: 14px;
    padding: 14px;
}

    .participant-adult-message .fa-circle-info {
        color: var(--std-background);
        font-size: 20px;
        margin-top: 2px;
    }

    .participant-adult-message strong {
        display: block
    }

.participant-adult-boolean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e6eefb;
    border-radius: 14px;
}

.participant-adult-boolean-label {
    font-weight: 700
}

.form-switch .form-check-input:checked {
    background-color: var(--std-background);
    border-color: var(--std-hiliteback);
}

.form-check-input:focus {
    border-color: var(--std-hiliteback);
    box-shadow: 0 0 0 .25rem rgba(61,180,242,.25);
}

/* email */
.participant-adult-field {
    display: grid;
    gap: 8px;
}

.participant-adult-label {
    font-weight: 700;
}

#participant-adult-email {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #dbe4f6;
    font-size: 16px;
    transition: box-shadow .15s, border-color .15s, background-color .15s;
}

    #participant-adult-email:focus {
        outline: none;
        border-color: var(--std-hiliteback);
        box-shadow: 0 0 0 4px #cfeaff;
        background: #fcfeff;
    }

.participant-adult-hint {
    font-size: 13px;
    color: #4b5a6e;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    .participant-adult-hint .fa-circle-info {
        color: var(--std-background);
        font-size: 16px;
        margin-top: 2px;
    }

/* actions */
.participant-adult-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.participant-adult-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 0.375rem; /* stile Bootstrap */
    padding: 0.375rem 0.75rem;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    text-transform: uppercase;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* PRIMARY (con colore originale) */
.participant-adult-btn-primary {
    color: #fff;
    background-color: var(--std-background);
    border-color: var(--std-background);
    box-shadow: 0 8px 20px rgba(10,61,145,.28);
}

    .participant-adult-btn-primary:hover {
        background-color: var(--std-hiliteback);
        border-color: var(--std-hiliteback);
    }

    .participant-adult-btn-primary:active {
        background-color: shade(var(--std-background), 15%);
        border-color: shade(var(--std-background), 18%);
        box-shadow: 0 0 0 0.25rem rgba(10,61,145,.25);
    }

/* OUTLINE */
.participant-adult-btn-outline {
    background-color: #fff;
    color: var(--std-background);
    border: 2px solid #bfe2ff;
}

    .participant-adult-btn-outline:hover {
        background-color: var(--std-hiliteback);
        border-color: var(--std-hiliteback);
        color: white;
    }

    .participant-adult-btn-outline:active {
        background-color: #e6f2ff;
        border-color: var(--std-background);
        box-shadow: 0 0 0 0.25rem rgba(10,61,145,.25);
    }


/* status */
#participant-adult-status {
    display: none;
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid
}

    #participant-adult-status.ok {
        display: block;
        background: #effaf3;
        border-color: #c9efd8;
        color: #064e2e;
    }

    #participant-adult-status.err {
        display: block;
        background: #fff2f2;
        border-color: #ffd8d8;
        color: #7f1d1d;
    }

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important
    }
}

/* ====== MINOR SECTION (stile coerente con adult) ====== */

.participant-minor {
    margin-top: 1rem;
    border-top: 1px dashed #e6e9ef;
    padding-top: 1rem;
    display: grid;
    gap: 18px;
}

.participant-minor-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.5rem;
    color: #002c5c;
}

.participant-minor-subtitle {
    font-weight: 600;
    text-transform: uppercase;
    color: #337ab7;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.participant-minor input[type="text"],
.participant-minor input[type="file"],
.participant-minor input[type="email"] {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #dbe4f6;
    font-size: 16px;
    transition: box-shadow .15s, border-color .15s, background-color .15s !important;
}

.participant-minor input:focus {
    outline: none;
    border-color: var(--std-hiliteback);
    box-shadow: 0 0 0 4px #cfeaff;
    background: #fcfeff;
}

.participant-minor .participant-adult-hint {
    font-size: 13px;
    color: #4b5a6e;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    .participant-minor .participant-adult-hint .fa-circle-info {
        color: var(--std-background);
        font-size: 16px;
        margin-top: 2px;
    }

/****************************************************
 * ACCOUNT PROFILE 
 ****************************************************/

/* ===== CARD LAYOUT ===== */
.account-profile-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    margin-block: 3rem;
    overflow: hidden;
    background-color: #fff;
}

.account-profile-header {
    background-color: var(--std-background);
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}

    .account-profile-header h3 {
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 0.3rem;
    }

    .account-profile-header small {
        opacity: 0.85;
    }

/* ===== SECTION HEADINGS ===== */
.account-profile-section {
    margin-bottom: 3rem;
}

.account-profile-section-title {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--std-background);
    border-bottom: 2px solid var(--std-background);
    padding-bottom: 0.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .account-profile-section-title i {
        font-size: 1.1rem;
    }

/* ===== AVATAR / PHOTO ===== */
.account-profile-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

    .account-profile-photo img {
        max-height: 160px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease-in-out;
    }

        .account-profile-photo img:hover {
            transform: scale(1.03);
        }

    .account-profile-photo button {
        margin-top: 0.75rem;
    }

/* ===== DOCUMENT / IMAGE CONTAINERS ===== */
.account-profile-image-box {
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    text-align: center;
}

    .account-profile-image-box img {
        max-height: 200px;
        border-radius: 0.5rem;
        object-fit: cover;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    }

/* ===== FORM INPUTS ===== */
.account-profile-input label {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.account-profile-input input,
.account-profile-input select {
    border-radius: 0.5rem;
}

/* ===== YBQ FILE UPLOAD STYLING (custom photo boxes) ===== */
.ybq-inputfile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px dashed #d0d0d0;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
}

    .ybq-inputfile:hover {
        background-color: #f0f4ff;
        border-color: var(--std-background);
    }

    .ybq-inputfile input[type="file"] {
        margin-bottom: 0.5rem;
        max-width: 250px;
    }

    /* Centra il contenuto immagine e toolbar */
    .ybq-inputfile .d-flex {
        justify-content: center !important;
        align-items: center;
        gap: 0.75rem;
    }

    /* Immagine anteprima */
    .ybq-inputfile img {
        display: block;
        max-height: 120px;
        width: auto;
        border-radius: 0.5rem;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease-in-out;
    }

        .ybq-inputfile img:hover {
            transform: scale(1.05);
        }

/* Placeholder testuale */
.ybq-inputfile-placeholder {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.3rem;
}

/* Toolbar (trash button) */
.ybq-inputfile-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ybq-inputfile-toolbar .btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Rimuovi allineamento forzato Bootstrap vecchio */
.pull-left {
    float: none !important;
}

/* === PASSWORD DROPDOWN === */
.account-profile-password-menu {
    position: relative;
    min-width: 280px;
    background-color: #fff;
}

/* Bottone X per chiudere */
.account-profile-password-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    font-size: 1.1rem;
    color: var(--std-background);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .account-profile-password-close:hover {
        opacity: 1;
    }

/* Bottone occhio */
.account-profile-password-menu .btn-square {
    width: 42px;
    border-radius: 0 0.5rem 0.5rem 0;
    background-color: var(--std-background);
    color: #fff;
    transition: background-color 0.2s ease;
}

    .account-profile-password-menu .btn-square:hover {
        background-color: white;
        color: var(--std-background);
        border-color: var(--std-background);
    }

    .account-profile-password-menu .btn-square i {
        pointer-events: none;
    }



/* ===== FOTO CENTRATE GLOBALI ===== */
.account-profile-input .ybq-inputfile,
.account-profile-section .ybq-inputfile {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .ybq-inputfile img {
        max-height: 100px;
    }
}

/* ===== SAVE BUTTON AREA ===== */
.account-profile-save {
    text-align: center;
    margin-top: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile first (default) */
.account-profile-card {
    padding: 1.5rem;
}

.account-profile-header h3 {
    font-size: 1.3rem;
}

/* Tablets (≥768px) */
@media (min-width: 768px) {
    .account-profile-card {
        padding: 2rem;
    }

    .account-profile-header h3 {
        font-size: 1.6rem;
    }

    .account-profile-section {
        margin-bottom: 3.5rem;
    }
}

/* Desktop / Laptop (≥992px) */
@media (min-width: 992px) {
    .account-profile-card {
        padding: 3rem 3.5rem;
    }

    .account-profile-header {
        padding: 2.5rem 1rem;
    }

        .account-profile-header h3 {
            font-size: 1.8rem;
        }

    .account-profile-section-title {
        font-size: 1.2rem;
        border-width: 3px;
    }

    .account-profile-photo img {
        max-height: 200px;
    }
}

/* Large monitor (≥1400px) */
@media (min-width: 1400px) {
    .account-profile-card {
        max-width: 1100px;
        margin-inline: auto;
    }

    .account-profile-header h3 {
        font-size: 2rem;
    }

    .account-profile-photo img {
        max-height: 220px;
    }
}

/****************************************************
 * MANAGEACCOUNT_TOAPPROVE 
 ****************************************************/

.manageaccount-toapprove .manageaccount-toledo .account-profile-input {
    align-items: flex-start !important;
}

.manageaccount-toapprove .manageaccount-toledo label {
    margin-bottom: .35rem;
}


.manageaccount-toapprove .manageaccount-toledo .col-12.col-lg-6.d-flex.flex-column.align-items-lg-end {
    align-items: flex-start !important;
}
/****************************************************
 * MANAGEACCOUNT_TOAPPROVE - MOBILE responsiveness
 ****************************************************/

.approve-btn:hover {
    background-color: #6495ED;
    box-shadow: 0 8px 18px rgba(0,86,179,.25);
}

.manageaccount-toapprove #createontoledo + .toggle {
    width: auto !important;
    min-width: 170px;
}

    .manageaccount-toapprove #createontoledo + .toggle .toggle-group .toggle-on,
    .manageaccount-toapprove #createontoledo + .toggle .toggle-group .toggle-off,
    .manageaccount-toapprove #createontoledo + .toggle .toggle-group .toggle-handle {
        width: 50% !important;
    }

    .manageaccount-toapprove #createontoledo + .toggle .toggle-group .toggle-on,
    .manageaccount-toapprove #createontoledo + .toggle .toggle-group .toggle-off {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        font-weight: 800;
    }

    .manageaccount-toapprove #createontoledo + .toggle .btn-success,
    .manageaccount-toapprove #createontoledo + .toggle .btn-danger {
        width: 50% !important;
        margin-top: 0 !important;
    }

@media (max-width:768px) {
    .manageaccount-toapprove #createontoledo + .toggle {
        min-width: 180px;
    }
}

@media (max-width:768px) {
    .manageaccount-toapprove .manageaccount-actions-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: .6rem;
    }

        .manageaccount-toapprove .manageaccount-actions-row > .col-6 {
            flex: 1 1 0 !important;
        }

        .manageaccount-toapprove .manageaccount-actions-row .btn {
            width: 100% !important;
        }
}
/****************************************************
 * DENY MODAL - manageaccount
 ****************************************************/


.manageaccount-deny-modal .modal-title,
.manageaccount-deny-modal .manageaccount-emailcard-title,
.manageaccount-deny-modal .manageaccount-emailcard-body,
.manageaccount-deny-modal .btn {
    text-transform: none !important;
    letter-spacing: normal !important;
}

.manageaccount-deny-modal .manageaccount-email-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* CARD stacked */
.manageaccount-deny-modal .manageaccount-emailcard-horizontal {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: .9rem;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    .manageaccount-deny-modal .manageaccount-emailcard-horizontal:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0,0,0,.08);
    }

/* Icon box */
.manageaccount-deny-modal .manageaccount-emailcard-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: .9rem;
    background: rgba(13,110,253,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 2px;
}

/* Titolo card */
.manageaccount-deny-modal .manageaccount-emailcard-title {
    font-weight: 900;
    font-size: .95rem;
}

/* Testo email più piccolo */
.manageaccount-deny-modal .manageaccount-emailcard-body {
    font-size: .82rem;
    line-height: 1.35;
}

.manageaccount-deny-modal .manageaccount-email-content p {
    margin: 0 0 .45rem;
}

    .manageaccount-deny-modal .manageaccount-email-content p:last-child {
        margin-bottom: 0;
    }

.manageaccount-deny-modal .manageaccount-email-note {
    color: rgba(0,0,0,.65);
}

.manageaccount-deny-modal .manageaccount-reason-inline {
    font-weight: 900;
    padding: 0 .35rem;
    border-radius: .4rem;
    background: rgba(13,110,253,.10);
}

/* Selezione card (ring) */
#email_denied_without_reason:checked ~ .modal-body label[for="email_denied_without_reason"],
#email_denied_with_reason:checked ~ .modal-body label[for="email_denied_with_reason"] {
    border-color: rgba(13,110,253,.55);
    box-shadow: 0 0 0 .22rem rgba(13,110,253,.12);
}

/* Reason textarea: solo se selezionata la card "with reason" */
.manageaccount-deny-modal .manageaccount-reason-wrap {
    display: none;
}

#email_denied_with_reason:checked ~ .modal-body .manageaccount-reason-wrap {
    display: block;
}

/* FOOTER: 2 bottoni sempre vicini anche su mobile */
.manageaccount-deny-modal .modal-footer {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem;
}

    /* Override di regole globali mobile (es. .btn-danger width:100%) */
    .manageaccount-deny-modal .modal-footer .btn {
        width: auto !important;
        flex: 0 0 auto !important;
        white-space: nowrap;
        margin-top: 0 !important;
    }

@media (max-width: 380px) {
    .manageaccount-deny-modal .modal-footer {
        gap: .4rem;
    }

        .manageaccount-deny-modal .modal-footer .btn {
            padding-left: .8rem;
            padding-right: .8rem;
            font-size: .9rem;
        }
}
/****************************************************
 * PARTNERS PAGE 
 ****************************************************/
.partners-container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

.partners-card {
    background: #fff;
    border-radius: 1.2rem;
    padding: 2rem 2.2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
    margin-bottom: 30px;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}


/* Wrapper che contiene titolo + tools e gestisce la linea */
.partners-section-header {
    width: 100%;
    border-bottom: 3px solid var(--std-background);
    margin-bottom: 1rem;
    padding-bottom: .4rem;
}

/* Titolo dentro la card */
.partners-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--std-background);
    margin: 0;
}

/* Area badge + icona info */
.partners-section-tools {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

    .partners-section-tools .text-grey {
        margin: 0;
        line-height: 1;
        white-space: nowrap;
    }
    .partners-section-tools .partners-info-icon {
        line-height: 1;
    }
@media (max-width: 575.98px) {
    .partners-section-tools .text-grey {
        font-size: .8rem;
    }
}


/* ===== PARTNERS HEADER: NEED HELP as pill ===== */
.partners-header {
    padding: clamp(.9rem, 2vw, 1.25rem);
    border-radius: 1rem;
}

.partners-needhelp {
    margin-bottom: .65rem !important; /* stacca dal titolo (mobile) */
}

.partners-needhelp-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(0,0,0,.04);
    text-decoration: none;
    color: inherit;
}

    .partners-needhelp-link:hover {
        background: rgba(0,0,0,.07);
        text-decoration: underline;
    }

.partners-needhelp-sub {
    opacity: .75;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .8em;
}

@media (max-width: 575.98px) {
    .partners-needhelp {
        text-align: center !important;
    }

    .partners-needhelp-link {
        margin: 0 auto;
    }
}


.partners-page-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.partners-page-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #777;
}

.partners-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--std-background);
    width: 100%;
    padding-bottom: .4rem;
    margin-bottom: 1rem;
    display: block;
}

.partners-table th {
    font-size: .85rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.partners-table thead th {
    color: #fff !important;
}

.partners-table td {
    vertical-align: middle;
    font-size: .95rem;
}

.partners-btn {
    background-color: var(--std-background);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 8px 12px;
    border-radius: .6rem;
}

    .partners-btn:hover {
        background-color: #5a8be7;
    }

/* Action buttons */
.btn-square {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: .4rem;
}

.partners-btn-danger {
    background-color: #dc3545;
}

.partners-btn-success {
    background-color: #198754;
}

.partners-info-icon {
    font-size: 1.3rem;
    color: var(--std-background);
    cursor: pointer;
    animation: partnersPulse 2s infinite;
}

@keyframes partnersPulse {
    0%, 100% {
        transform: scale(1);
        opacity: .9;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Popover */
.popover {
    border: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border-radius: .7rem;
}

.popover-header {
    background: var(--std-background) !important;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: none !important;
    border-radius: .7rem .7rem 0 0;
}

.popover-body {
    font-size: .9rem;
    font-weight: 500;
    padding: 1rem 1.2rem;
    color: #333;
}


/* ============ MOBILE (<576px) ============ */
@media (max-width: 575.98px) {

    .partners-card {
        padding: 1.4rem;
    }

    .partners-page-title {
        font-size: 1.7rem;
    }

    .partners-page-subtitle {
        font-size: .85rem;
    }

    .partners-section-title {
        font-size: 1.1rem;
        border-bottom-width: 2px;
    }

    .partners-info-icon {
        font-size: 1.1rem;
    }

    .partners-table th,
    .partners-table td {
        font-size: .80rem;
    }

    /* Buttons full-width */
    .partners-btn,
    .btn-danger,
    .btn-success {
        width: 100%;
        margin-top: 6px;
    }

    td.text-end {
        text-align: center !important;
    }
}

/* ============ TABLET (576px - 768px) ============ */
@media (min-width: 576px) and (max-width: 767.98px) {

    .partners-card {
        padding: 1.6rem;
    }

    .partners-page-title {
        font-size: 1.9rem;
    }

    .partners-section-title {
        font-size: 1.2rem;
    }

    .partners-info-icon {
        font-size: 1.2rem;
    }

    .partners-table td {
        font-size: .88rem;
    }
}

/* ============ MEDIUM DEVICES (768px - 992px) ============ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .partners-card {
        padding: 1.8rem;
    }

    .partners-page-title {
        font-size: 2rem;
    }

    .partners-table td {
        font-size: .9rem;
    }
}

/* ============ LARGE SCREENS (>992px) ============ */
@media (min-width: 992px) {

    .partners-card {
        padding: 2rem 2.2rem;
    }

    .partners-page-title {
        font-size: 2.2rem;
    }

    .partners-section-title {
        font-size: 1.3rem;
    }
}
/****************************************************
 * MANAGE + MANAGE ENTRIES
 ****************************************************/
/* ===== PARTICIPANT ENTRIES HEADER (white card + no overlap) ===== */
.participant-entries-header {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.08);
    padding: 1.25rem;
    padding-top: 3.1rem; /* spazio per la pill in alto */
}

/* Need help pill (desktop/tablet) */
.participant-entries-needhelp {
    position: absolute;
    top: .75rem;
    left: .75rem;
}

.participant-entries-needhelp-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    font-weight: 900;
}

    .participant-entries-needhelp-link:hover {
        background: rgba(0,0,0,.10);
        text-decoration: underline;
    }

.participant-entries-needhelp-sub {
    opacity: .75;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .78em;
}

.participant-entries-subtitle {
    color: rgba(0,0,0,.55);
    letter-spacing: .08em;
}

.participant-entries-badge {
    background: rgba(13,110,253,.08);
}

@media (max-width: 575.98px) {
    .participant-entries-header {
        padding-top: 1rem; 
    }

    .participant-entries-needhelp {
        position: static; 
        margin-bottom: .6rem;
        text-align: left;
    }

    .participant-entries-needhelp-link {
        padding: .28rem .5rem;
        gap: .25rem;
        font-size: .85rem;
    }
}

/* ============================================
   uno-manage-entries (partial)
   ============================================ */

/* Testi e allineamenti */
.uno-manage-entries .text-sm {
    font-size: 0.875rem;
}

.uno-manage-entries .text-end,
.uno-manage-entries .pull-right {
    text-align: start !important;
}

/* ============================================
   Bottoni NEW e ENTRY REQUEST con hover personalizzato
   ============================================ */

/* NEW button */
.uno-manage-entries .btn-new {
    background-color: #0d6efd;
    color: #ffffff !important;
    border-color: #0d6efd;
    transition: all 0.2s ease-in-out;
}

    .uno-manage-entries .btn-new:hover,
    .uno-manage-entries .btn-new:focus,
    .uno-manage-entries .btn-new:active {
        background-color: #ffffff !important;
        color: #0d6efd !important;
        border-color: #0d6efd !important;
    }


/* ENTRY REQUEST button */
.uno-manage-entries .btn-entry-request {
    background-color: #0d6efd;
    color: #ffffff !important;
    border-color: #0d6efd;
}

    .uno-manage-entries .btn-entry-request:hover,
    .uno-manage-entries .btn-entry-request:focus,
    .uno-manage-entries .btn-entry-request:active {
        background-color: #002c5c !important;
        color: #ffffff !important;
        border-color: #002c5c !important;
    }


/* ============================================
   Bottoni e select uniformi
   ============================================ */

/* Mobile-first: colonne */
.uno-manage-entries .btn-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
}

    /* Bottoni e select con stile coerente */
    .uno-manage-entries .btn-group .btn,
    .uno-manage-entries .btn-group select {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        text-align: center;
        vertical-align: middle;
        line-height: 1.5;
    }

    /* Select appearance */
    .uno-manage-entries .btn-group select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: #f8f9fa;
        border: 1px solid #ced4da;
        border-radius: 0.375rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        /* Select option readability */
        .uno-manage-entries .btn-group select option {
            font-size: 1rem;
        }




/* Tablet (≥768px) */
@media (min-width: 768px) {
    .uno-manage-entries .btn-group {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
    }

        .uno-manage-entries .btn-group .btn,
        .uno-manage-entries .btn-group select {
            width: auto;
            min-width: 180px;
            height: 48px;
        }

    .uno-manage-entries .text-end {
        text-align: end !important;
    }
}

/* Desktop (≥992px) */
@media (min-width: 992px) {
    .uno-manage-entries .btn-group .btn {
        font-size: 1.05rem;
        padding: 0.75rem 1.25rem;
    }

    .uno-manage-entries .btn-group select {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Large screen (≥1200px) */
@media (min-width: 1200px) {
    .uno-manage-entries .btn-group .btn {
        font-size: 1.1rem;
    }

    .uno-manage-entries .btn-group select {
        font-size: 1rem;
    }

    .uno-manage-entries .btn-lg {
        padding: 0.75rem 1.5rem;
        height: 48px;
    }

    .uno-manage-entries .form-select-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}
/* ============================================
   PARTIAL: pv_list_entries (uno-manage-entries)
   ============================================ */

/* ---------- TABLE GENERAL ---------- */
.list-entries-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem; /* margine dai bottoni */
}

    .list-entries-table-wrapper table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
    }

    .list-entries-table-wrapper th,
    .list-entries-table-wrapper td {
        vertical-align: middle;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .list-entries-table-wrapper thead th {
        background-color: #002c5c;
        color: #fff;
        font-weight: bold;
        text-align: center;
    }

/* ---------- PLAYER NAME DISPLAY ---------- */
.player-full {
    display: none;
}

.player-short {
    display: inline-block;
}

@media (min-width: 576px) {
    .player-full {
        display: inline-block !important;
    }

    .player-short {
        display: none !important;
    }
}

/* ---------- NATIONALITY FLAG ---------- */
.list-entries-flag {
    font-size: 0.75rem;
    color: #6c757d;
}

/* ---------- POPOVER (ATTENTION) ---------- */
.popover.list-entries-popover {
    border-color: rgba(220, 53, 69, 0.45);
    max-width: 90vw;
}

    .popover.list-entries-popover .popover-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 2rem 0.5rem 0.75rem;
        background: #dc3545;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
        font-weight: bold;
    }

        .popover.list-entries-popover .popover-header,
        .popover.list-entries-popover .popover-header * {
            color: #fff !important;
        }

    .popover.list-entries-popover .popover-close {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
        font-size: 1.5rem;
        line-height: 1;
        background: none;
        border: none;
        color: #fff !important;
        cursor: pointer;
        z-index: 10;
        padding: 0;
    }

    .popover.list-entries-popover .popover-body {
        font-weight: 600;
    }


.list-entries-popover-cell .popover-trigger-attention {
    font-size: 1.15rem;
    line-height: 1;
    color: var(--bs-warning) !important;
    filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 6px rgba(255,255,255,.25));
}

/* ---------- BUTTONS ---------- */
.btn-square {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    border-radius: 0.375rem;
}

/* Uniform button spacing inside table */
.list-entries-table-wrapper td .btn {
    margin: 0 0.25rem 0.25rem 0;
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */

/* Smartphone */
@media (max-width: 576px) {
    .btn-square {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 0.5rem;
    }

    .list-entries-table-wrapper td,
    .list-entries-table-wrapper th {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .list-entries-flag {
        font-size: 0.8rem;
    }

    .list-entries-popover-cell small.bold {
        display: block !important;
        font-size: 0.85rem;
        margin-top: 0.25rem;
    }

    .list-entries-table-wrapper td.text-right {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .btn-square {
        font-size: 0.95rem;
        padding: 0.5rem 0.5rem;
    }
}

/* Desktop */
@media (max-width: 992px) {
    .list-entries-table-wrapper td,
    .list-entries-table-wrapper th {
        padding: 0.45rem;
    }
}


/* ============================================
    PARTICIPANT - REGISTER 
   ============================================ */

.register-hidden {
    display: none !important;
}

.register-page {
    background: transparent;
}

.register-wrapper {
    background: transparent;
    padding: 0;
}

/* Title bar */
.register-titlebar {
    background: var(--std-background);
    border-radius: 14px;
    padding: 12px 12px;
    margin-bottom: 12px;
}

.register-titlebar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.register-titlebar-spacer {
    width: 40px;
}

.register-titlebar-title {
    margin: 0;
    flex: 1;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    font-size: clamp(18px, 3vw, 26px);
}

.register-titlebar-guide {
    color: #fff !important;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.register-titlebar-guidewrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .15rem;
}

.register-titlebar-guide-pulse {
    position: relative;
    font-weight: 800;
    text-decoration: none;
    animation: register-guide-pulse 1.35s ease-in-out infinite;
    transform-origin: center;
}

@keyframes register-guide-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.07);
        opacity: .95;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.register-titlebar-guide-pulse::after {
    content: "";
    position: absolute;
    inset: -6px -10px;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(255,255,255,.35);
    animation: register-guide-ring 1.35s ease-in-out infinite;
    pointer-events: none;
}

@keyframes register-guide-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255,255,255,.35);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255,255,255,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}

.register-titlebar-click {
    font-weight: 700;
    opacity: .9;
    animation: register-click-fade 1.35s ease-in-out infinite;
}

@keyframes register-click-fade {
    0% {
        opacity: .65;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .65;
    }
}


.register-stepper {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0 14px;
}

.register-stepper-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--std-background);
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background-color .15s ease;
}

    /* Only the CURRENT step is active */
    .register-stepper-item.is-active {
        background: var(--std-background);
        border-color: var(--std-background);
        box-shadow: 0 6px 18px rgba(0,0,0,.12);
    }

        .register-stepper-item.is-active .register-stepper-label {
            color: #fff;
        }

        .register-stepper-item.is-active .register-stepper-dot {
            background: #fff;
            color: var(--std-background);
        }

    /* All the other pills look “inactive” (but can still be clickable if available) */
    .register-stepper-item.is-inactive {
        opacity: .78;
    }

    /* Available steps: hover/focus makes it clear they are clickable */
    .register-stepper-item.is-available:hover,
    .register-stepper-item.is-available:focus {
        opacity: 1;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,.10);
    }

    /* Disabled (future) steps */
    .register-stepper-item.is-disabled {
        opacity: .45;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

    /* Tutor “required” glow (only when visible) */
    .register-stepper-item.is-required {
        box-shadow: 0 0 0 3px rgba(255,193,7,.25);
    }

.register-stepper-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: #e8effb;
    color: var(--std-background);
}

.register-stepper-item.is-disabled .register-stepper-dot {
    background: #e9ecef;
    color: #7a7a7a;
}

.register-stepper-label {
    font-size: .88rem;
    white-space: nowrap;
    font-weight: 900;
    color: var(--std-background);
}

.register-stepper-item.is-disabled .register-stepper-label {
    color: #7a7a7a;
}

/* Small hint below stepper */
.register-stepper-hint {
    font-size: .85rem;
}

/* Pulse hint for a few seconds */
body.register-hint-on #register-stepper .register-stepper-item.is-available,
body.register-hint-on .register-info-badge {
    animation: register-click-fade 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    body.register-hint-on #register-stepper .register-stepper-item.is-available,
    body.register-hint-on .register-info-badge {
        animation: none !important;
    }

    .register-stepper-item {
        transition: none !important;
    }
}

.register-step {
    display: block;
}

    .register-step.is-hidden {
        position: absolute !important;
        left: -99999px !important;
        top: 0 !important;
        width: min(980px, calc(100% - 2rem)) !important;
        max-width: 100% !important;
        height: auto !important;
    }

.register-step-actions {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.register-step-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
}

    .register-step-actions .btn {
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        gap: .5rem;
    }

@media (max-width: 575.98px) {
    .register-step-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: .5rem;
    }
}


/* Card */
.register-card {
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Section title */
.register-section-title {
    font-weight: 900;
    text-transform: uppercase;
    color: var(--std-background);
    border-bottom: 2px solid var(--std-background);
    padding-bottom: .35rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .register-section-title .register-lock-hint {
        margin-left: auto; 
        text-transform: none; 
        font-weight: 800;
        overflow: hidden;
        text-overflow: ellipsis; 
        text-transform:uppercase;
        max-width: 55%; 
    }

@media (max-width: 576px) {
    .register-section-title .register-lock-hint {
        font-size: .78rem;
        max-width: 60%;
    }
}

/* Labels and info badge */
.register-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
}

.register-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--std-background);
    color: var(--std-background);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

    .register-info-badge:hover,
    .register-info-badge:focus {
        background: var(--std-background);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,.10);
    }

    .register-info-badge:focus {
        outline: 2px solid rgba(100,149,237,.55);
        outline-offset: 2px;
    }

/* Notes */
.register-note {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    padding: .75rem .9rem;
    font-size: .95rem;
}

/* Submit row */
.register-submit-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}


#minor-section {
    display: none;
}

.register-preview-small {
    max-height: 100px;
}

/* Popover */
.register-popover {
    position: fixed;
    z-index: 2050;
    width: min(420px, calc(100vw - 24px));
    max-width: min(420px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,.20);
}

.register-popover-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.register-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,.10);
}

.register-popover-title {
    font-weight: 900;
    color: var(--std-background);
    text-transform: uppercase;
    font-size: .9rem;
}

.register-popover-close {
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    color: rgba(0,0,0,.55);
    cursor: pointer;
}

.register-popover-body {
    padding: 10px 12px 12px;
    font-size: .92rem;
    color: #222;
}

.register-pop-detail {
    margin-bottom: 8px;
}

.register-pop-example {
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,.10);
}

.register-popover-arrow {
    position: absolute;
    left: 26px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,.14);
    border-top: 1px solid rgba(0,0,0,.14);
    transform: rotate(45deg);
}

/* Tour overlay uses popover styling */
.register-tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 2055;
}

.register-tour-card {
    display: block;
}

.register-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px 12px 12px;
}

.register-tour-actions-right {
    display: flex;
    gap: 8px;
}

/* Highlight */
.register-tour-highlight {
    outline: 3px solid rgba(255,193,7,.95) !important;
    outline-offset: 3px !important;
    border-radius: 10px;
}

/* Select2 basic height alignment */
.select2-container {
    width: 100% !important;
}

    .select2-container .select2-selection--single {
        height: calc(1.5em + 1rem + 2px) !important;
        padding: .5rem .75rem !important;
        border-radius: 12px !important;
    }

.select2-selection__rendered {
    line-height: 1.7 !important;
}

.select2-selection__arrow {
    height: calc(1.5em + 1rem + 2px) !important;
}


/* hidden attribute */
[hidden] {
    display: none !important;
}

/* Overlay guida: sopra a tutto (anche axis) */
#register-tour-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important; /* max safe */
}

/* Card guida: sopra l'overlay */
#register-tour-card {
    position: fixed !important;
    z-index: 2147483647 !important;
}

/* Se hai un backdrop interno */
#register-tour-overlay .register-tour-backdrop {
    position: absolute;
    inset: 0;
}

/* ===== Register-only portal ===== */


    #register-form .select2-dropdown,
    #register-form .datepicker {
        pointer-events: auto;
        z-index: 2147483001 !important;
        max-width: 95vw;
    }

/* Mobile usability for native selects/inputs */
#register-form .form-select,
#register-form .form-control {
    font-size: 16px; /* prevents iOS zoom */
}

#register-form .form-select {
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
    PARTICIPANT TOURNAMENTS
   ============================================ */
.participant-tournaments-helpcol {
    display: flex;
    justify-content: flex-start;
}


.participant-tournaments-needhelp {
    margin-right: 1.25rem; 
}
.participant-tournaments-needhelp-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(0,0,0,.04);
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

    .participant-tournaments-needhelp-link:hover {
        background: rgba(0,0,0,.07);
        text-decoration: underline;
    }

.participant-tournaments-needhelp-sub {
    opacity: .75;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .8em;
}

@media (max-width: 575.98px) {
    .participant-tournaments-helpcol {
        justify-content: flex-start;
        margin-bottom: .5rem;
    }
    .participant-tournaments-needhelp-link {
        padding: .30rem .55rem;
        gap: .25rem;
        font-size: .85rem;
    }

    .participant-tournaments-needhelp-sub {
        font-size: .78em;
    }

    .participant-tournaments-needhelp-link.mx-3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}