/* Step indicator container */
.steps-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 35px;
    width: 100%;
}

.step-progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step-progress-item.active {
    opacity: 1;
}

.step-progress-item.completed {
    opacity: 0.9;
}

.step-progress-item.completed .step-num {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Unbounded', sans-serif;
    background: var(--stats-card-bg, #0D0D0F);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-progress-item.active .step-num {
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Unbounded', sans-serif;
    color: var(--text-muted);
}

.step-progress-item.active .step-label {
    color: var(--text-main);
}

.step-progress-line {
    flex: 0 1 60px;
    height: 2px;
    background: var(--border-highlight);
    border-radius: 2px;
}

/* Step panels switcher */
.step-panel {
    display: none;
    animation: stepFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.step-panel.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inputs, Textareas, and Selects */
.form-input,
.form-textarea,
.custom-select-trigger {
    width: 100%;
    box-sizing: border-box;
    background: var(--stats-card-bg, #0D0D0F) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
    font-family: 'Onest', sans-serif !important;
    font-weight: 500 !important;
    transition: border-color 0.2s, background-color 0.2s;
    height: 44px;
}

.form-textarea {
    height: auto !important;
    resize: vertical;
    min-height: 120px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

.light-theme .form-input::placeholder,
.light-theme .form-textarea::placeholder {
    color: rgba(0, 0, 0, 0.25) !important;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #3b82f6 !important;
    background: var(--card-bg) !important;
}

/* Row wrapper for name/discord columns */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Elegant Callout Widget */
.callout-info {
    background: rgba(59, 130, 246, 0.04) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.callout-warning {
    background: rgba(251, 191, 36, 0.04) !important;
    border: 1px solid rgba(251, 191, 36, 0.25) !important;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.callout-title {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.callout-warning .callout-title {
    color: #fbbf24;
}

.callout-info .callout-title {
    color: #3b82f6;
}

.callout-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Monospace code formatting */
.code-command {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

/* visual dropzone upload banner styling */
.flag-upload-zone {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.01);
    border: 1px dashed var(--border-highlight);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

.flag-upload-zone:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer buttons row */
.form-buttons-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    border-top: 1px solid var(--border-highlight);
    padding-top: 25px;
}

/* Button styles */
.btn-submit {
    height: 44px !important;
    padding: 0 28px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: opacity 0.2s !important;
    cursor: pointer !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.btn-primary {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-secondary {
    background: var(--stats-card-bg, #0D0D0F) !important;
    color: var(--text-main, #F2EBDD) !important;
    border: 1px solid var(--border-highlight) !important;
}

.btn-submit:hover {
    opacity: 0.85 !important;
}

.btn-submit:active {
    opacity: 0.7 !important;
}

/* Custom Select styling inside creation form */
.modal-container .custom-select-container,
.form-card .custom-select-container {
    position: relative;
    z-index: 100000;
}

.modal-container .custom-select-container.open,
.form-card .custom-select-container.open {
    z-index: 100010 !important;
}

.modal-container .custom-select-trigger,
.form-card .custom-select-trigger {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-container .chevron-icon,
.form-card .chevron-icon {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.modal-container .custom-select-container.open .chevron-icon,
.form-card .custom-select-container.open .chevron-icon {
    transform: rotate(180deg);
}

.modal-container .custom-select-options,
.form-card .custom-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: var(--stats-card-bg, #0D0D0F) !important;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    z-index: 100002;
    box-sizing: border-box;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    flex-direction: column;
    gap: 4px;
}

.light-theme .modal-container .custom-select-options,
.light-theme .form-card .custom-select-options {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.modal-container .custom-select-container.open .custom-select-options,
.form-card .custom-select-container.open .custom-select-options {
    display: flex;
}

.modal-container .custom-select-option,
.form-card .custom-select-option {
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-container .custom-select-option:hover,
.form-card .custom-select-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.light-theme .modal-container .custom-select-option:hover,
.light-theme .form-card .custom-select-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal-container .custom-select-option.selected,
.form-card .custom-select-option.selected {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-weight: 600;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Modal Layouts for step-by-step form --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.is-active {
    display: flex !important;
}

.modal-container {
    background: var(--card-bg, #0A0A0A) !important;
    border: 1px solid var(--border-highlight) !important;
    border-radius: 20px !important;
    width: 100%;
    max-width: 680px;
    padding: 35px;
    box-sizing: border-box;
    position: relative;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-body-scrollable {
    overflow-y: auto !important;
    flex-grow: 1;
    padding-right: 8px;
    margin-right: -8px;
    box-sizing: border-box;
}

/* Scrollbar styling for modal body */
.modal-body-scrollable::-webkit-scrollbar {
    width: 6px;
}

.modal-body-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body-scrollable::-webkit-scrollbar-thumb {
    background: var(--border-highlight, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
}

.modal-body-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-highlight);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
