﻿/* =========================================
   REQUEST-NEW – TẠO YÊU CẦU MỚI
========================================= */

.page-request-new {
    background: #18191a;
    color: var(--text-main);
}

/* Entrance animation */
@keyframes formEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(5deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.create-form-entrance {
    animation: formEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Step switch */
@keyframes stepSwitch {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.step-transition {
    animation: stepSwitch 0.4s ease-out;
}

/* Input focus glow */
@keyframes inputFocus {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }

    50% {
        transform: scale(1.01);
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }
}

.input-focused {
    animation: inputFocus 0.4s ease;
}

/* Shake error */
@keyframes shakeX {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

.field-error.shake {
    animation: shakeX 0.35s ease;
}

/* -----------------------------------------
   HEADER
----------------------------------------- */
.request-new-page {
    padding: 24px 0 80px;
}

.request-new-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.breadcrumb a {
    color: var(--text-soft);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #e5e7eb;
}

.breadcrumb-current {
    color: #e5e7eb;
    font-weight: 500;
}

/* Step progress */
.request-new-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.step-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-soft);
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.9);
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    border-color: transparent;
    color: #fff;
}

.step-item.completed .step-circle {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
}

.step-item.active span {
    color: #e5e7eb;
    font-weight: 500;
}

.step-line {
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: rgba(55, 65, 81, 0.9);
    overflow: hidden;
    position: relative;
}

.step-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
}

.step-line.completed::after {
    transform: translateX(0);
}

/* Draft save */
.draft-save-btn {
    padding-inline: 10px;
    font-size: 0.84rem;
    gap: 6px;
}

.draft-save-icon {
    display: inline-block;
    transform-origin: center;
}

.draft-status {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* -----------------------------------------
   LAYOUT CHÍNH
----------------------------------------- */

.request-new-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: flex-start;
}

/* Cột form */
.request-form-column {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: 20px 18px;
    box-shadow: var(--shadow-soft);
}

/* Cột preview */
.request-preview-column {
    position: sticky;
    top: 88px;
    align-self: flex-start;
    background: radial-gradient(circle at top, rgba(30, 64, 175, 0.4), rgba(15, 23, 42, 0.98));
    border-radius: var(--radius-xl);
    padding: 18px 16px 18px;
    box-shadow: var(--shadow-soft-lg);
}

/* -----------------------------------------
   FORM STEPS
----------------------------------------- */

.form-step {
    display: none;
}

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

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 16px;
}

/* Group / Label / Error */

.form-group {
    margin-bottom: 16px;
}

.form-group:last-of-type {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.required {
    color: #f97373;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Input meta */

.input-with-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.field-status {
    font-size: 0.78rem;
}

.char-counter {
    font-variant-numeric: tabular-nums;
}

/* Error */

.field-error {
    font-size: 0.78rem;
    color: #fb7185;
    min-height: 16px;
    margin-top: 4px;
}

/* -----------------------------------------
   SUMMARY / PREVIEW
----------------------------------------- */

.summary-toggle {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    padding: 2px;
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.summary-mode-btn {
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
}

.summary-mode-btn.active {
    background: rgba(37, 99, 235, 0.25);
    color: #e5e7eb;
}

.summary-wrapper {
    position: relative;
}

.summary-input {
    min-height: 110px;
}

.summary-preview {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    padding: 8px 10px;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.summary-preview-inner {
    color: var(--text-main);
    max-height: 150px;
    overflow: auto;
}

.summary-wrapper.show-preview .summary-preview {
    opacity: 1;
    pointer-events: auto;
}

.summary-wrapper.show-preview .summary-input {
    opacity: 0;
}

/* -----------------------------------------
   CATEGORY DROPDOWN
----------------------------------------- */

.category-select {
    position: relative;
}

.category-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.category-caret {
    font-size: 0.8rem;
    opacity: 0.75;
}

.category-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: rgba(12, 10, 26, 0.98);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
    padding: 6px 0 8px;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
    z-index: 20;
}

.category-select[data-open="true"] .category-dropdown {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

.category-search {
    width: calc(100% - 16px);
    margin: 0 8px 6px;
    border-radius: var(--radius-md);
    padding: 6px 8px;
    background: #242526;
    border: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 0.8rem;
    color: var(--text-main);
}

.category-list {
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
}

.category-list li {
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-soft);
}

.category-list li:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #e5e7eb;
}

/* -----------------------------------------
   TAGS
----------------------------------------- */

.tags-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 38px;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

.tag-chip-remove {
    cursor: pointer;
    opacity: 0.8;
}

.tags-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    min-width: 90px;
    color: var(--text-main);
}

.tags-suggestions {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag-suggest {
    border: none;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.78rem;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-soft);
    cursor: pointer;
}

.tag-suggest:hover {
    background: rgba(37, 99, 235, 0.3);
    color: #e5e7eb;
}

/* -----------------------------------------
   BUDGET
----------------------------------------- */

.budget-slider-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.budget-range {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.budget-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 6px;
}

.budget-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.budget-input {
    font-size: 0.9rem;
}

.budget-sliders {
    position: relative;
    margin: 6px 0 4px;
}

.budget-sliders input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
    position: relative;
}

.budget-sliders input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.9);
}

.budget-sliders input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #60a5fa;
    border: 2px solid #1d4ed8;
    margin-top: -5px;
}

.budget-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
}

.budget-convert {
    color: var(--text-soft);
}

/* Preset */
.budget-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    margin-top: 4px;
}

.preset-label {
    color: var(--text-soft);
}

.budget-preset {
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 2px 8px;
    font-size: 0.78rem;
    background: rgba(15, 23, 42, 0.9);
    cursor: pointer;
    color: var(--text-soft);
}

.budget-preset:hover {
    border-color: rgba(56, 189, 248, 0.8);
}

/* -----------------------------------------
   DEADLINE
----------------------------------------- */

.deadline-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.deadline-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
}

.deadline-countdown {
    font-variant-numeric: tabular-nums;
}

.deadline-urgency {
    color: var(--text-soft);
}

.deadline-timeline {
    margin-top: 8px;
}

.timeline-bar {
    position: relative;
    height: 4px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.9);
    overflow: hidden;
}

.timeline-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
    transition: width 0.25s ease-out;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-soft);
    margin-top: 4px;
}

/* -----------------------------------------
   OS OPTIONS
----------------------------------------- */

.os-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.os-option {
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.96);
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.os-option span {
    font-size: 0.85rem;
}

.os-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

.os-option.selected {
    border-color: #38bdf8;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.96));
}

/* -----------------------------------------
   STACK CHIPS
----------------------------------------- */

.stack-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stack-column {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(55, 65, 81, 0.95);
    padding: 8px 10px;
}

.stack-column-header {
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.stack-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stack-chip {
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.8rem;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: rgba(17, 24, 39, 0.96);
    color: #e5e7eb;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.stack-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.9);
}

.stack-chip-selected {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.9);
}

/* -----------------------------------------
   UPLOAD ZONE
----------------------------------------- */

.upload-zone {
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    padding: 12px;
    cursor: pointer;
}

.upload-zone-inner {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.upload-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-top: 2px;
}

.link-button {
    border: none;
    background: none;
    color: #38bdf8;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.upload-file-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-file-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.95);
}

.upload-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upload-file-name {
    color: #e5e7eb;
}

.upload-file-size {
    color: var(--text-soft);
}

.upload-file-progress {
    flex: 1;
    max-width: 120px;
}

.upload-progress-bar {
    height: 3px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.95);
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    transition: width 0.3s ease-out;
}

.upload-file-remove {
    border: none;
    background: none;
    color: #fca5a5;
    cursor: pointer;
}

/* -----------------------------------------
   REQUIREMENTS
----------------------------------------- */

.requirements-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.requirements-hint {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.requirement-row {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 0.8fr) auto;
    gap: 6px;
    align-items: center;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-md);
    padding: 5px 6px;
}

.requirement-row input[type="text"] {
    font-size: 0.8rem;
}

.requirement-priority {
    display: inline-flex;
    gap: 2px;
}

.priority-star {
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
}

.priority-star.active {
    color: #fbbf24;
}

.requirement-time-input {
    font-size: 0.78rem;
}

.requirement-remove {
    border: none;
    background: none;
    color: #fca5a5;
    cursor: pointer;
}

/* -----------------------------------------
   COLLAB
----------------------------------------- */

.collab-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) auto;
    gap: 6px;
    margin-bottom: 6px;
}

.collab-role-select {
    font-size: 0.85rem;
}

.collab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
}

.collab-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(37, 99, 235, 0.24);
    border: 1px solid rgba(37, 99, 235, 0.7);
}

.collab-role-label {
    font-size: 0.75rem;
    color: #bfdbfe;
}

.collab-remove {
    cursor: pointer;
    opacity: 0.8;
}

/* -----------------------------------------
   FORM NAVIGATION
----------------------------------------- */

.form-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.nav-prev {
    min-width: 110px;
}

.nav-next,
.nav-submit {
    min-width: 130px;
}

.nav-spacer {
    flex: 1;
}

.nav-submit {
    display: none;
}

/* Form note */
.form-note {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* -----------------------------------------
   PREVIEW COLUMN
----------------------------------------- */

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.preview-header h3 {
    font-size: 0.95rem;
}

.preview-mode-toggle {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    padding: 2px;
    border: 1px solid rgba(55, 65, 81, 0.95);
}

.preview-mode-btn {
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
}

.preview-mode-btn.active {
    background: rgba(37, 99, 235, 0.4);
    color: #e5e7eb;
}

.preview-card-wrapper {
    padding: 10px 4px 8px;
    display: flex;
    justify-content: center;
}

.request-preview-card {
    width: 100%;
    max-width: 430px;
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.95);
    padding: 12px 12px 10px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    transform-origin: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.request-preview-card.preview-mobile {
    max-width: 340px;
    transform: scale(0.95);
}

.request-preview-header {
    margin-bottom: 8px;
}

.preview-status-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(37, 99, 235, 0.24);
    color: #bfdbfe;
    border: 1px solid rgba(37, 99, 235, 0.7);
}

.preview-title {
    font-size: 0.98rem;
    margin-top: 6px;
    margin-bottom: 3px;
}

.preview-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.preview-body {
    border-top: 1px solid rgba(31, 41, 55, 0.95);
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
    padding: 8px 0;
    margin: 6px 0;
}

.preview-summary {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.preview-tags-row,
.preview-os-row,
.preview-stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.preview-tag-chip {
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.75rem;
    background: rgba(37, 99, 235, 0.24);
    color: #bfdbfe;
}

.preview-os-pill {
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.74rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.95);
}

.preview-stack-pill {
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.74rem;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.7);
    color: #e0f2fe;
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.preview-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-soft);
}

.preview-footer-actions {
    display: flex;
}

/* Helper text */
.preview-helper {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-top: 8px;
}

/* -----------------------------------------
   SUBMIT OVERLAY
----------------------------------------- */

.request-submit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.request-submit-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.request-submit-dialog {
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.3), #242526);
    border-radius: var(--radius-xl);
    padding: 20px 28px;
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.95);
    text-align: center;
    max-width: 360px;
}

.submit-spinner {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.35);
    border-top-color: #38bdf8;
    margin: 0 auto 10px;
    animation: spin 0.7s linear infinite;
}

.submit-text-main {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.submit-text-sub {
    font-size: 0.8rem;
    color: var(--text-soft);
}

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

/* Checkbox inline */
.checkbox-inline {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    font-size: 0.84rem;
}

/* -----------------------------------------
   RESPONSIVE NHẸ (phần còn lại dùng responsive.css chung)
----------------------------------------- */

@media (max-width: 1024px) {
    .request-new-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .request-preview-column {
        position: static;
    }
}

@media (max-width: 640px) {
    .request-new-page {
        padding-top: 18px;
    }

    .request-form-column {
        padding-inline: 14px;
    }

    .request-new-header {
        align-items: flex-start;
    }

    .request-new-header-right {
        justify-content: flex-start;
    }

    .collab-row {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) auto;
    }

    .requirement-row {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
        grid-auto-flow: row;
        grid-template-rows: auto auto;
    }
}

@media (max-width: 480px) {
    .request-form-column {
        padding-inline: 10px;
    }

    .collab-row {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }

    .requirement-row {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: unset;
    }

    .request-new-header {
        flex-direction: column;
        gap: 10px;
    }

    .request-new-header-right {
        width: 100%;
    }
}