/* Quotation System Styles */

html, body { 
    min-height: 100vh; 
    margin: 0;
    font-family: var(--font-main);
}

/* Override any other fonts to use Be Vietnam Pro consistently */
* {
    font-family: var(--font-main) !important;
}

/* Replace font-mono with regular font */
.font-mono {
    font-family: var(--font-main) !important;
}

.step { 
    display: none; 
    opacity: 0; 
    transition: all var(--transition-normal); 
}

.step.active { 
    display: flex; 
    opacity: 1; 
    flex-direction: column; 
    min-height: 0;
    gap: 1rem;
}

/* Quotation specific container */
.quotation-container {
    min-height: calc(100vh - 200px);
    padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.quotation-container > .container {
    width: 100%;
    padding-left: clamp(0.75rem, 2vw, 1.5rem);
    padding-right: clamp(0.75rem, 2vw, 1.5rem);
}

.quotation-container main {
    gap: 1rem;
}

.quotation-progress {
    margin-bottom: 0;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.875rem, 2vw, 1.5rem);
}

.tech-card {
    width: 100%;
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.step > :first-child {
    flex-shrink: 0;
}

.step h2 {
    margin-bottom: 0.35rem;
}

.step p {
    margin-bottom: 0;
}

.step > .flex:last-child {
    margin-top: auto;
    padding-top: 1rem;
}

.quotation-detail-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.quotation-note-field,
.quotation-summary-field {
    min-width: 0;
    height: 100%;
}

.quotation-note-field {
    display: flex;
    flex-direction: column;
}

.quotation-note-field textarea {
    flex: 1;
    min-height: 9rem;
    height: 100%;
    box-sizing: border-box;
}

.quotation-summary-field {
    display: flex;
    flex-direction: column;
}

.quotation-summary {
    flex: 1;
}

.quotation-summary p {
    overflow-wrap: anywhere;
}

.quotation-progress,
.quotation-progress * {
    font-family: var(--font-main) !important;
    letter-spacing: normal;
}

.quotation-progress-labels {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
}

.quotation-progress-labels span {
    min-width: 0;
    overflow: hidden;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quotation-progress-labels span:not(:first-child) {
    text-align: center;
}

.quotation-progress-labels span:last-child {
    text-align: right;
}

@media (max-width: 768px) {
    .quotation-container {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .quotation-container main {
        gap: 0.75rem;
    }

    .tech-card {
        padding: 1rem;
    }

    .step {
        gap: 0.75rem;
    }

    .step h2 {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    #step3 > :first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    #step3 > :first-child > :last-child {
        width: 100%;
    }

    .quotation-detail-grid {
        grid-template-columns: 1fr;
    }

    .quotation-note-field textarea {
        min-height: 7rem;
    }

    .step > .flex:last-child {
        gap: 0.75rem;
    }

    .quotation-progress-labels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
        font-size: 11px;
    }

    .quotation-progress-labels span,
    .quotation-progress-labels span:not(:first-child),
    .quotation-progress-labels span:last-child {
        text-align: left;
    }

    .quotation-progress-track {
        height: 10px !important;
    }

    .step > .flex:last-child button {
        min-height: 2.75rem;
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
}

@media (max-width: 480px) {
    .quotation-progress-labels {
        font-size: 10px;
        gap: 6px 8px;
    }

    .step > .flex:last-child {
        align-items: stretch;
        flex-direction: column;
    }

    .step > .flex:last-child button {
        width: 100%;
    }

    .quotation-space-grid > div {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .quotation-container main {
        min-height: 0;
    }

    .quotation-progress {
        position: sticky;
        top: 70px;
        z-index: 30;
        background: rgba(5, 8, 22, 0.96);
        backdrop-filter: blur(14px);
    }

    .quotation-progress-labels span {
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        text-overflow: clip;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .quotation-container .tech-card {
        min-height: auto;
        flex: 0 0 auto;
        justify-content: flex-start;
        overflow: visible;
    }

    .quotation-container .step.active {
        min-height: auto;
    }

    .quotation-space-grid {
        width: calc(100% + 1rem);
        margin-inline: -0.5rem;
    }

    .step > .flex:last-child {
        position: sticky;
        bottom: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 0.625rem;
        margin: 0 -1rem -1rem;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(5, 8, 22, 0.96);
        backdrop-filter: blur(14px);
    }

    #step1 > .flex:last-child {
        grid-template-columns: minmax(0, 1fr);
    }

    .step > .flex:last-child button {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 0.75rem;
        font-size: 11px;
        line-height: 1.3;
        white-space: normal;
        text-align: center;
    }

    .quotation-container .event-box {
        min-height: 112px;
        touch-action: manipulation;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quotation-container *,
    .quotation-container *::before,
    .quotation-container *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tech 3D Glassmorphism & Neon Glow */
.tech-card {
    background: var(--glass-bg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(56, 189, 248, 0.15);
    border: var(--glass-border);
}

.glow-btn {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-neon);
    transition: all var(--transition-normal);
}

.glow-btn:hover {
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* 3D Event Type Card */
.event-box {
    border: var(--border-light);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.event-box:hover, .event-box.selected {
    border-color: var(--border-brand);
    background: var(--package-feature);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Equipment 3D Card Checkbox Switch */
input.eq-check:checked ~ .equipment-card-inner {
    border-color: var(--border-brand);
    background: var(--package-feature);
    box-shadow: var(--shadow-neon);
}

input.eq-check:checked ~ .equipment-card-inner .check-icon {
    background-color: var(--brand-cyan);
    border-color: var(--brand-cyan);
    color: var(--brand-white);
}