/* Additional CSS for team registration */
.personal-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.events-section {
    margin-bottom: 20px;
}

.personal-section h3,
.team-info h3 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-members-container {
    margin-top: 20px;
    border-top: 2px solid var(--primary);
    padding-top: 20px;
    background: color-mix(in oklab, var(--panel), transparent 10%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.team-info {
    text-align: center;
    margin-bottom: 20px;
}

.team-size-info {
    color: var(--muted);
    font-style: italic;
    margin-top: 5px;
}

.team-members-section {
    margin-bottom: 15px;
}

.team-member-section {
    background: var(--card);
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    position: relative;
}

.team-member-section[data-member="1"] {
    border-left-color: var(--success);
    background: color-mix(in oklab, var(--success), transparent 95%);
}

.member-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text);
    font-size: 1em;
    font-weight: 600;
}

.remove-member-btn {
    background: var(--error);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background 0.3s;
}

.remove-member-btn:hover {
    background: color-mix(in oklab, var(--error), black 20%);
}

.add-member-btn {
    margin: 15px 0;
    width: 100%;
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.add-member-btn:hover {
    background: color-mix(in oklab, var(--success), black 20%);
    border-color: color-mix(in oklab, var(--success), black 20%);
}

/* Modal specific styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.modal-backdrop.show {
    display: flex;
    opacity: 1;
}

.modal {
    width: min(600px, 95vw);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-backdrop.show .modal {
    transform: scale(1);
}

.modal header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal header i {
    color: var(--primary);
}

.modal .content {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-desc {
    color: var(--muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Form elements */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field label {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
}

.field label i {
    color: var(--primary);
    width: 14px;
}

.input,
.eve {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel), transparent 30%);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.input:focus,
.eve:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 95%;
    }

    .actions {
        flex-direction: column;
    }

}

.modal .content::-webkit-scrollbar {
    width: 12px;
    /* width of the scrollbar */
}

.modal .content::-webkit-scrollbar-track {
    background: color-mix(in oklab, var(--panel), transparent 50%);
    /* track background */
    border-radius: 10px;
}

.modal .content::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    /* scrollbar color */
    border-radius: 10px;
    border: 3px solid color-mix(in oklab, var(--panel), transparent 50%);
    /* space around thumb */
}

.modal .content::-webkit-scrollbar-thumb:hover {
    background-color: color-mix(in oklab, var(--primary), black 20%);
    /* hover effect */
}

/* Firefox */
.modal .content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) color-mix(in oklab, var(--panel), transparent 50%);
}