/*--------------------------------------------------------------
# Create / Edit Layout
--------------------------------------------------------------*/

.create-layout {
    align-items: stretch;
}

.create-layout>[class*="col-"] {
    display: flex;
    flex-direction: column;
}


/*--------------------------------------------------------------
# Left Guide Panel
--------------------------------------------------------------*/

.create-side {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 36px 32px;
    border-radius: 26px;
    background: linear-gradient(135deg, #163a5c 0%, #22283a 55%, #3f3f46 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.create-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 38%);
    pointer-events: none;
}

.create-side::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -70px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(80, 197, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.create-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
}

.create-badge i {
    color: #9adfff;
}

.create-side h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    font-family: var(--heading-font);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    max-width: 520px;
}

.create-side-text {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 500px;
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
}


/*--------------------------------------------------------------
# Feature List
--------------------------------------------------------------*/

.create-feature-list {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.create-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.create-feature-item i {
    margin-top: 3px;
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
}


/*--------------------------------------------------------------
# Info Grid
--------------------------------------------------------------*/

.create-info-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.create-info-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.create-info-card>div:last-child {
    flex: 1;
    min-width: 0;
}

.create-info-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.16);
    color: #8edfff;
    font-size: 18px;
    flex-shrink: 0;
}

.create-info-card h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.create-info-card p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}


/*--------------------------------------------------------------
# Notes
--------------------------------------------------------------*/

.create-side .create-note {
    position: relative;
    z-index: 1;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.create-form-card .create-note {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(80, 197, 255, 0.16);
    border-left: 4px solid var(--accent-color);
    background: #f8fbff;
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
}


/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/

.create-topbar {
    display: flex;
    justify-content: flex-end;
}

.create-top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    width: 100%;
}


/*--------------------------------------------------------------
# Form Card
--------------------------------------------------------------*/

.create-form-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    padding: 30px;
}

.create-form-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-extra-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.14);
    color: var(--accent-color);
    font-size: 20px;
    flex-shrink: 0;
}

.create-form-content h4 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
}

.create-form-content p {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
}


/*--------------------------------------------------------------
# Labels
--------------------------------------------------------------*/

.form-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.soft-muted {
    color: #64748b !important;
}


/*--------------------------------------------------------------
# Inputs
--------------------------------------------------------------*/

.input-group {
    border-radius: 14px;
}

.input-icon {
    background: #f8fbff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #64748b;
    border-radius: 12px 0 0 12px;
}

.form-control,
.form-select {
    min-height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: none;
}

.form-control::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus,
.textarea-round:focus,
.multi-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.18rem rgba(80, 197, 255, 0.16);
}

.input-round {
    border-radius: 0 12px 12px 0;
}

.textarea-round {
    min-height: 120px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    resize: vertical;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: none;
}

.password-toggle-btn {
    background: #f8fbff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 0;
    color: #64748b;
    border-radius: 0 12px 12px 0;
    min-width: 48px;
}

.password-toggle-btn:hover {
    color: var(--accent-color);
    background: #eef8ff;
}

.password-toggle-btn:focus {
    box-shadow: none;
}

.multi-select {
    min-height: 140px;
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
}


/*--------------------------------------------------------------
# Validation
--------------------------------------------------------------*/

.invalid-feedback {
    font-size: 13px;
}

.is-invalid {
    border-color: #dc3545 !important;
}


/*--------------------------------------------------------------
# Bottom Actions
--------------------------------------------------------------*/

.create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}


/*--------------------------------------------------------------
# Helpers
--------------------------------------------------------------*/

.input-help {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748b;
}

.paid-box {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #f8fbff;
    display: flex;
    align-items: center;
}

.paid-box .form-check {
    margin: 0;
    width: 100%;
}

.paid-box .form-check-input {
    margin-top: 0;
}

.paid-box .form-check-label {
    font-weight: 600;
    color: #0f172a;
}

.banner-preview-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    padding: 10px;
}

.banner-preview-card img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}


/*--------------------------------------------------------------
# Event / Panelist Special Cards
--------------------------------------------------------------*/

.create-map-card,
.create-panelists-card {
    align-items: flex-start;
}

.create-map-card-content,
.create-panelists-content {
    flex: 1;
    min-width: 0;
}

.create-map-embed {
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.create-map-link {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #9adfff;
    text-decoration: none;
}

.create-map-link:hover {
    color: #ffffff;
}

.panelist-count {
    display: inline-flex;
    margin-top: 6px;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(80, 197, 255, 0.16);
    color: #d9f4ff;
    font-size: 12px;
    font-weight: 700;
}

.panelist-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panelist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.6;
}

.panelist-item i {
    margin-top: 2px;
    color: #9adfff;
    flex-shrink: 0;
}

.panelist-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12.5px;
}


/*--------------------------------------------------------------
# Dark Card Payment Display
--------------------------------------------------------------*/

.create-side .paid-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.create-side .paid-box .form-check-label {
    color: rgba(255, 255, 255, 0.9);
}

.create-side .paid-box .form-check-input[disabled] {
    opacity: 1;
    cursor: default;
}


/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width: 991.98px) {
    .create-side {
        padding: 30px 24px;
        margin-bottom: 4px;
    }
    .create-side h3 {
        font-size: 25px;
        max-width: 100%;
    }
    .create-side-text,
    .create-feature-item {
        font-size: 14px;
    }
    .create-topbar {
        justify-content: flex-start;
    }
    .create-top-actions {
        justify-content: flex-start;
    }
    .create-form-card {
        padding: 24px;
    }
    .create-form-content h4 {
        font-size: 19px;
    }
}

@media (max-width: 767.98px) {
    .create-side {
        padding: 24px 20px;
        border-radius: 20px;
    }
    .create-side::after {
        width: 150px;
        height: 150px;
        top: -45px;
        right: -45px;
    }
    .create-badge {
        font-size: 12px;
        padding: 8px 12px;
    }
    .create-side h3 {
        font-size: 22px;
    }
    .create-side-text {
        font-size: 14px;
        line-height: 1.7;
    }
    .create-feature-list {
        margin-top: 22px;
        gap: 14px;
    }
    .create-feature-item {
        font-size: 14px;
        line-height: 1.65;
    }
    .create-info-card {
        padding: 14px;
        border-radius: 14px;
    }
    .create-info-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 16px;
    }
    .create-info-card h4 {
        font-size: 13.5px;
    }
    .create-info-card p {
        font-size: 12.5px;
    }
    .create-side .create-note,
    .create-form-card .create-note {
        font-size: 12.5px;
        padding: 12px 14px;
        border-radius: 12px;
    }
    .create-top-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    .create-form-card {
        padding: 22px 18px;
        border-radius: 18px;
    }
    .create-form-head {
        gap: 12px;
    }
    .contact-extra-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
        font-size: 18px;
    }
    .create-form-content h4 {
        font-size: 18px;
    }
    .create-form-content p {
        font-size: 13px;
    }
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 13px;
    }
    .textarea-round {
        font-size: 13px;
    }
    .create-actions {
        flex-direction: column;
        align-items: stretch;
    }
}


/*--------------------------------------------------------------
# Visibility Card Upgrade
--------------------------------------------------------------*/

.visibility-card {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(80, 197, 255, 0.18);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}


/* options grid */

.visibility-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}


/* each option */

.visibility-option {
    position: relative;
    border-radius: 18px;
    padding: 16px 16px 16px 42px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
}


/* hide default radio */

.visibility-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}


/* hover */

.visibility-option:hover {
    border-color: rgba(80, 197, 255, 0.35);
    box-shadow: 0 12px 24px rgba(80, 197, 255, 0.08);
    transform: translateY(-2px);
}


/* active state */

.visibility-option input[type="radio"]:checked+label {
    color: #0f172a;
}

.visibility-option input[type="radio"]:checked~* {
    color: #0f172a;
}

.visibility-option:has(input:checked) {
    border-color: #50c5ff;
    background: linear-gradient(180deg, #eefaff 0%, #f8fcff 100%);
    box-shadow: 0 16px 30px rgba(80, 197, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


/* custom radio indicator */

.visibility-option::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 18px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5f5;
    background: #fff;
    transition: all 0.25s ease;
}

.visibility-option:has(input:checked)::before {
    border-color: #50c5ff;
    background: #50c5ff;
    box-shadow: 0 0 0 4px rgba(80, 197, 255, 0.18);
}


/* label */

.visibility-option label {
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* private note */

.private-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(80, 197, 255, 0.08);
    border: 1px solid rgba(80, 197, 255, 0.18);
    font-size: 0.9rem;
    color: #334155;
}


/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/

@media (max-width: 767.98px) {
    .visibility-options {
        grid-template-columns: 1fr;
    }
    .visibility-option {
        padding: 14px 14px 14px 40px;
    }
}

.ask-create-side .create-actions .btn-2,
.ask-create-side .create-actions .btn-3 {
    flex: 1 1 calc(50% - 12px);
    justify-content: center;
}

.ask-create-side .create-actions .btn-3:last-child {
    flex: 1 1 100%;
}

@media (max-width: 575.98px) {
    .ask-create-side .create-actions .btn-2,
    .ask-create-side .create-actions .btn-3,
    .ask-create-side .create-actions .btn-3:last-child {
        flex: 1 1 100%;
    }
}


/*--------------------------------------------------------------
# Question Cards (Public Threads)
--------------------------------------------------------------*/

.question-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 18px;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}


/* hover effect */

.question-card:hover {
    transform: translateY(-4px);
    border-color: rgba(80, 197, 255, 0.35);
    box-shadow: 0 18px 35px rgba(80, 197, 255, 0.12);
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.question-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.question-user {
    display: flex;
    gap: 10px;
}


/* avatar */

.question-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(80, 197, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #50c5ff;
}


/* user meta */

.question-user-meta {
    line-height: 1.3;
}

.question-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
}

.question-meta {
    font-size: 0.75rem;
    color: #64748b;
}


/*--------------------------------------------------------------
# Status Badge
--------------------------------------------------------------*/

.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-completed {
    background: rgba(80, 197, 255, 0.12);
    color: #50c5ff;
}


/*--------------------------------------------------------------
# Body
--------------------------------------------------------------*/

.question-body {
    margin-bottom: 14px;
}

.question-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.question-preview {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
}


/* clamp text */

.truncate-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/*--------------------------------------------------------------
# Actions
--------------------------------------------------------------*/

.question-actions {
    margin-top: auto;
}


/*--------------------------------------------------------------
# Empty State
--------------------------------------------------------------*/

.questions-empty-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px dashed rgba(80, 197, 255, 0.3);
}

.questions-empty-icon {
    font-size: 42px;
    color: #50c5ff;
    opacity: 0.7;
}


/*--------------------------------------------------------------
# Search + No Results
--------------------------------------------------------------*/

.search-note {
    font-size: 0.75rem;
    color: #64748b;
}

#noResults .alert {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}


/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width: 767.98px) {
    .question-card {
        padding: 16px;
    }
    .question-title {
        font-size: 0.9rem;
    }
    .question-preview {
        font-size: 0.85rem;
    }
}


/*--------------------------------------------------------------
# Create Side Action Layout (Global)
--------------------------------------------------------------*/

.create-side .create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.create-side .create-actions .btn-1,
.create-side .create-actions .btn-2,
.create-side .create-actions .btn-3 {
    min-width: 0;
}

.create-side .create-actions .btn-1 {
    flex: 1 1 100%;
}

.create-side .create-actions .btn-2,
.create-side .create-actions .btn-3 {
    flex: 1 1 calc(50% - 6px);
}


/* Mobile */

@media (max-width: 575.98px) {
    .create-side .create-actions .btn-1,
    .create-side .create-actions .btn-2,
    .create-side .create-actions .btn-3 {
        flex: 1 1 100%;
    }
}


/*--------------------------------------------------------------
# Event Chip Row
--------------------------------------------------------------*/

.event-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    position: relative;
}


/*--------------------------------------------------------------
# Chip Base
--------------------------------------------------------------*/

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(80, 197, 255, 0.08);
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(80, 197, 255, 0.18);
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.chip i {
    font-size: 14px;
    color: #50c5ff;
}

.chip:hover {
    background: rgba(80, 197, 255, 0.16);
    transform: translateY(-1px);
}


/*--------------------------------------------------------------
# Phone Chip Special
--------------------------------------------------------------*/

.private-phone-chip {
    padding-right: 6px;
    gap: 8px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px dashed rgba(80, 197, 255, 0.3);
}


/*-----------------------------------------------------------------------------------------------------------------------------------
# Start Copy Button
-----------------------------------------------------------------------------------------------------------------------------------*/

.phone-chip-btn {
    border: none;
    background: rgba(80, 197, 255, 0.12);
    color: #0f172a;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.phone-chip-btn i {
    font-size: 13px;
}

.phone-chip-btn:hover {
    background: #50c5ff;
    color: #ffffff;
    transform: scale(1.08);
}


/*--------------------------------------------------------------
# Copy Toast
--------------------------------------------------------------*/

.copy-toast {
    position: absolute;
    top: 120%;
    right: 0;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}


/*-----------------------------------------------------------------------------------------------------------------------------------
# End Copy Button
-----------------------------------------------------------------------------------------------------------------------------------*/