/*--------------------------------------------------------------
# Ask / Private Access Pages
--------------------------------------------------------------*/

.ask-question-page {
    background: #f8fafc;
}

.ask-page-section {
    padding: 70px 0;
}

.ask-layout {
    align-items: flex-start;
}


/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

.ask-page-header h1,
.ask-page-badge,
.ask-page-header p,
.ask-page-user strong,
.ask-page-user span,
.ask-mini-badge,
.ask-mini-chip,
.ask-side-badge,
.ask-side-card h3,
.ask-side-text,
.ask-feature-item span,
.ask-info-box h4,
.ask-info-box p,
.ask-form-head h3,
.ask-form-head p,
.ask-head-meta-line,
.ask-label,
.ask-optional,
.ask-helper,
.ask-input,
.ask-select,
.ask-textarea,
.ask-visibility-copy strong,
.ask-visibility-copy small,
.ask-note,
.ask-char-count,
.ask-mini-card h4,
.ask-mini-card p,
.ask-btn {
    font-family: "Poppins", "Roboto", sans-serif;
}


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

.ask-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.ask-page-header-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.ask-page-badge,
.ask-mini-badge,
.ask-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(80, 197, 255, 0.12);
    border: 1px solid rgba(80, 197, 255, 0.18);
    color: #1d4f6b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ask-page-badge {
    margin-bottom: 16px;
}

.ask-mini-badge,
.ask-side-badge {
    min-height: 32px;
    padding: 6px 12px;
    margin-bottom: 12px;
    font-size: 0.74rem;
}

.ask-page-header h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--heading-color);
}

.ask-page-header p {
    margin: 0;
    max-width: 860px;
    color: var(--default-color);
    font-size: 0.95rem;
    line-height: 1.75;
}

.ask-page-header-side {
    flex: 0 0 auto;
}

.ask-page-user {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.ask-page-user-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    font-size: 1.15rem;
}

.ask-page-user strong {
    display: block;
    margin-bottom: 3px;
    color: var(--heading-color);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.3;
}

.ask-page-user span {
    display: block;
    color: var(--default-color);
    font-size: 0.88rem;
    line-height: 1.45;
}


/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/

.ask-side-card,
.ask-form-card,
.ask-mini-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ask-side-card:hover,
.ask-form-card:hover,
.ask-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.10);
    border-color: rgba(80, 197, 255, 0.20);
}

.ask-form-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 197, 255, 0.10), transparent 70%);
    pointer-events: none;
}

.ask-side-card,
.ask-form-card {
    padding: 28px;
}

.ask-mini-card {
    height: 100%;
    padding: 22px;
}


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

.ask-form-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}


/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/

.ask-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
}

.ask-btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
    box-shadow: 0 10px 24px rgba(80, 197, 255, 0.18);
}

.ask-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--contrast-color);
    transform: translateY(-1px);
}

.ask-btn-light {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--heading-color);
}

.ask-btn-light:hover {
    background: var(--surface-muted);
    border-color: rgba(80, 197, 255, 0.20);
    color: var(--heading-color);
    transform: translateY(-1px);
}

.ask-btn-dark {
    background: #414042;
    border-color: #414042;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(65, 64, 66, 0.18);
}

.ask-btn-dark:hover {
    background: #2e2d2f;
    border-color: #2e2d2f;
    color: #ffffff;
    transform: translateY(-1px);
}


/*--------------------------------------------------------------
# Side Card
--------------------------------------------------------------*/

.ask-side-card h3,
.ask-form-head h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--heading-color);
}

.ask-side-text,
.ask-form-head p,
.ask-head-meta-line {
    color: var(--default-color);
    font-size: 0.95rem;
    line-height: 1.75;
}

.ask-head-meta-line {
    margin: 0 0 6px;
}

.ask-head-meta-line strong {
    color: var(--heading-color);
}

.ask-feature-list {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.ask-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ask-feature-item i {
    color: var(--accent-color);
    margin-top: 2px;
    font-size: 1rem;
    flex: 0 0 auto;
}

.ask-feature-item span {
    color: var(--heading-color);
    font-size: 0.94rem;
    line-height: 1.65;
}


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

.ask-info-grid {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.ask-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--surface-muted);
    transition: all 0.25s ease;
}

.ask-info-box:hover {
    background: #ffffff;
    border-color: rgba(80, 197, 255, 0.20);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ask-info-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    font-size: 0.95rem;
}

.ask-info-box h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.35;
}

.ask-info-box p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--default-color);
    line-height: 1.6;
}


/*--------------------------------------------------------------
# Form Head
--------------------------------------------------------------*/

.ask-form-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.ask-form-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    font-size: 1.15rem;
}

.ask-form-head-content {
    flex: 1;
    min-width: 0;
}


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

.ask-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
    display: inline-block;
    line-height: 1.4;
}

.ask-optional {
    color: var(--default-color);
    font-size: 0.82rem;
    font-weight: 500;
}

.ask-helper {
    margin-top: 8px;
    font-size: 0.84rem;
    color: var(--default-color);
    line-height: 1.6;
}


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

.ask-input-wrap,
.ask-textarea-wrap {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ask-input-wrap {
    min-height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ask-input-wrap i {
    width: 46px;
    flex: 0 0 46px;
    text-align: center;
    color: #98a2b3;
    font-size: 0.95rem;
}

.ask-input,
.ask-select,
.ask-textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--heading-color);
    font-size: 0.95rem;
}

.ask-input,
.ask-select {
    min-height: 50px;
    padding: 0 14px 0 0;
}

.ask-select {
    appearance: none;
    cursor: pointer;
}

.ask-textarea-wrap {
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.ask-textarea-icon {
    width: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15px;
    color: #98a2b3;
    font-size: 1rem;
}

.ask-textarea {
    min-height: 160px;
    resize: vertical;
    padding: 14px 16px 14px 0;
    line-height: 1.75;
}

.ask-input::placeholder,
.ask-textarea::placeholder {
    color: #98a2b3;
}

.ask-input-wrap:focus-within,
.ask-textarea-wrap:focus-within {
    border-color: rgba(80, 197, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(80, 197, 255, 0.10);
}

.ask-input-wrap.is-invalid,
.ask-textarea-wrap.is-invalid {
    border-color: #dc3545;
}

.ask-input-wrap.is-invalid:focus-within,
.ask-textarea-wrap.is-invalid:focus-within {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.10);
}


/*--------------------------------------------------------------
# Visibility
--------------------------------------------------------------*/

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

.ask-visibility-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ask-visibility-option:hover {
    border-color: rgba(80, 197, 255, 0.40);
    background: var(--surface-muted);
}

.ask-visibility-option.active {
    background: rgba(80, 197, 255, 0.10);
    border-color: rgba(80, 197, 255, 0.28);
    box-shadow: 0 8px 20px rgba(80, 197, 255, 0.08);
}

.ask-radio {
    margin-top: 3px;
    flex-shrink: 0;
}

.ask-visibility-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ask-visibility-copy strong {
    font-size: 0.96rem;
    color: var(--heading-color);
}

.ask-visibility-copy small {
    color: var(--default-color);
    line-height: 1.6;
    font-size: 0.86rem;
}


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

.ask-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(80, 197, 255, 0.08);
    border: 1px solid rgba(80, 197, 255, 0.12);
    color: var(--heading-color);
    font-size: 0.92rem;
    line-height: 1.6;
}

.ask-note i {
    color: var(--accent-color);
    margin-top: 2px;
    flex: 0 0 auto;
}

#privateNote {
    display: none;
}


/*--------------------------------------------------------------
# Character Row
--------------------------------------------------------------*/

.ask-char-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.ask-char-count {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--heading-color);
}


/*--------------------------------------------------------------
# Submit Row
--------------------------------------------------------------*/

.ask-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}


/*--------------------------------------------------------------
# Mini Cards
--------------------------------------------------------------*/

.ask-mini-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ask-mini-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    font-size: 1.15rem;
}

.ask-mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--heading-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ask-mini-card h4 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--heading-color);
}

.ask-mini-card p {
    margin: 0;
    color: var(--default-color);
    font-size: 0.94rem;
    line-height: 1.72;
}


/*--------------------------------------------------------------
# Private Access Additions
--------------------------------------------------------------*/

.ask-input-wrap-action {
    padding-right: 0;
}

.ask-input-wrap-action .ask-input {
    padding-right: 12px;
}

.ask-input-action {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border: 0;
    border-left: 1px solid var(--border-color);
    background: #ffffff;
    color: #98a2b3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.ask-input-action:hover {
    background: var(--surface-muted);
    color: var(--heading-color);
}

.ask-input-action:focus {
    outline: none;
    box-shadow: none;
}

.masked {
    -webkit-text-security: disc;
    text-security: disc;
}


/*--------------------------------------------------------------
# Error Note
--------------------------------------------------------------*/

.ask-note-danger {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.18);
    color: #842029;
}

.ask-note-danger i {
    color: #dc3545;
}


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

@media (min-width: 992px) {
    .ask-side-card {
        position: sticky;
        top: 110px;
    }
}

@media (max-width: 1199.98px) {
    .ask-page-header h1 {
        font-size: clamp(1.9rem, 4vw, 2.5rem);
    }
}

@media (max-width: 991.98px) {
    .ask-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ask-page-header-side,
    .ask-page-user {
        width: 100%;
    }

    .ask-side-card,
    .ask-form-card,
    .ask-mini-card {
        border-radius: 20px;
    }

    .ask-side-card,
    .ask-form-card {
        padding: 24px;
    }

    .ask-page-header h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 767.98px) {

    .ask-side-card,
    .ask-form-card,
    .ask-mini-card {
        border-radius: 18px;
    }

    .ask-side-card,
    .ask-form-card,
    .ask-mini-card {
        padding: 18px;
    }

    .ask-form-head {
        flex-direction: column;
        gap: 12px;
    }

    .ask-form-bottom-actions,
    .ask-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ask-btn {
        width: 100%;
        min-height: 48px;
    }

    .ask-side-card h3,
    .ask-form-head h3 {
        font-size: 1.12rem;
    }

    .ask-side-text,
    .ask-form-head p,
    .ask-mini-card p,
    .ask-note {
        font-size: 0.92rem;
    }

    .ask-visibility-grid {
        grid-template-columns: 1fr;
    }

    .ask-input-action {
        height: 50px;
    }
}

@media (max-width: 575.98px) {
    .ask-info-box {
        padding: 12px;
        border-radius: 14px;
    }

    .ask-page-section {
        padding: 55px 0;
    }

    .ask-page-badge,
    .ask-mini-badge,
    .ask-side-badge,
    .ask-mini-chip {
        min-height: 32px;
        padding: 6px 11px;
        font-size: 0.72rem;
    }

    .ask-page-header h1 {
        font-size: 1.72rem;
    }

    .ask-page-header p,
    .ask-side-text,
    .ask-form-head p,
    .ask-mini-card p,
    .ask-note,
    .ask-btn {
        font-size: 0.9rem;
    }
}

.ask-btn {
    position: relative;
}

.ask-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: askBtnSpin .7s linear infinite;
    flex-shrink: 0;
}

.ask-btn.is-loading {
    pointer-events: none;
    opacity: .9;
}

.ask-btn.is-loading .ask-btn-spinner {
    display: inline-block;
}

.ask-btn.is-loading .ask-btn-icon {
    display: none;
}

.ask-security-state {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 600;
    margin-bottom: 18px;
}

.ask-security-state.is-verified {
    background: rgba(25, 135, 84, 0.10);
    border: 1px solid rgba(25, 135, 84, 0.18);
    color: #146c43;
}

.ask-security-state.is-pending {
    background: rgba(80, 197, 255, 0.10);
    border: 1px solid rgba(80, 197, 255, 0.18);
    color: #0f172a;
}

.ask-identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ask-identity-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(80, 197, 255, 0.16);
}

.ask-identity-pill i {
    color: #27b1f2;
    font-size: 1rem;
}

.ask-identity-pill strong {
    display: block;
    color: #0f172a;
    font-size: .92rem;
}

.ask-identity-pill span {
    display: block;
    color: #475569;
    font-size: .85rem;
    word-break: break-word;
}

.ask-otp-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border-color, rgba(15, 23, 42, 0.08));
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    padding: 22px;
    height: 100%;
}

.ask-otp-card h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.ask-otp-card p {
    margin: 0 0 16px;
    color: #475569;
    font-size: .95rem;
}

.ask-lock-card {
    text-align: center;
    padding: 28px 24px;
}

.ask-lock-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(80, 197, 255, 0.12);
    color: #27b1f2;
    font-size: 1.5rem;
}

.ask-otp-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(80, 197, 255, 0.08);
    border: 1px solid rgba(80, 197, 255, 0.14);
    color: #334155;
    font-size: .92rem;
    margin-top: 14px;
}

.ask-section-separator {
    margin-top: 14px;
}

@keyframes askBtnSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767.98px) {
    .ask-identity-grid {
        grid-template-columns: 1fr;
    }
}