/* =================================
   QUOTE GENERATOR & RECEIPT (ON-SCREEN)
   ================================= */
.quote-generator-container {
    margin-top: 5rem;
    /* *** START OF DEFINITIVE FIX *** */
    /* This rule creates a new "block formatting context", forcing the container
       to correctly calculate its height and contain the sticky receipt,
       which prevents it from overlapping and hiding the footer. */
    overflow: hidden;
    /* *** END OF DEFINITIVE FIX *** */
}

.quote-generator-container .text-content {
    text-align: center;
    margin-bottom: 2.5rem; /* Add space below progress bar */
}

.gradient-text {
    background: linear-gradient(90deg, var(--dramatic-red), var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color);
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
    margin-top: 3rem;
    align-items: flex-start;
}

.quote-controls {
    position: relative; 
}

.quote-controls .form-group {
    margin-bottom: 2rem;
}

.quote-controls .form-group label {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

.quote-controls select,
.quote-controls input[type="number"],
.customer-info-group input,
.event-info-group input, 
.event-info-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
}

.customer-info-group input,
.event-info-group input,
.event-info-group select {
    margin-bottom: 1rem;
}
.customer-info-group input:last-child,
.event-info-group input:last-child,
.event-info-group select:last-child {
    margin-bottom: 0;
}

.quote-controls select:focus,
.quote-controls input[type="number"]:focus,
.customer-info-group input:focus,
.event-info-group input:focus,
.event-info-group select:focus {
    outline: 0;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, .2);
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background-color: var(--card-bg-color);
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.radio-option input, .checkbox-option input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    margin-right: 12px;
    accent-color: var(--primary-color);
}

.radio-option label, .checkbox-option label {
    margin: 0;
    font-weight: 600;
}

/* --- Star Progress Bar Styles --- */
.quote-progress-bar {
    max-width: 700px;
    margin: 2rem auto 0;
}
.quote-progress-bar ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0;
}
.progress-step {
    font-size: 1.3rem;
    color: var(--border-color);
    position: relative;
    transition: all 0.4s ease;
}
.progress-step::before {
    content: '';
    position: absolute;
    top: 50%;
    /* Position line to the right of the icon */
    right: calc(-50% - 25px); /* Adjust gap and position */
    width: 100%;
    height: 3px;
    background-color: var(--border-color);
    transform: translateY(-50%);
    transition: background-color 0.4s ease;
}
.progress-step:last-child::before {
    display: none;
}
.progress-step.active {
    color: var(--primary-color);
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--secondary-color);
}
.progress-step.completed {
    color: var(--primary-color);
}
.progress-step.completed::before {
    background-color: var(--primary-color);
}


.quote-step {
    display: none; 
    animation: fadeIn 0.5s;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--card-bg-color);
    position: relative; 
    z-index: 2;         
}
.quote-step.active {
    display: block;
}
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}
.step-navigation .cta-button {
    padding: 12px 28px;
    border-radius: 5px;
}
.step-confirmation {
    text-align: center;
    padding: 2rem 1rem;
}
.step-confirmation i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.step-confirmation h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.step-confirmation p {
    color: var(--muted-text-color);
}
/* ----------------------------- */

.quote-receipt {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.receipt-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.receipt-header h4 { margin: 0; font-size: 1.2rem; color: var(--text-color); }
.receipt-logo { height: 45px; margin-bottom: 1rem; }

#receipt-body, #receipt-footer {
    padding: 1.5rem;
    font-family: 'Courier Prime', monospace;
}

.receipt-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color: var(--muted-text-color);
    text-align: center;
    font-family: var(--body-font);
}

.receipt-placeholder i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

.receipt-duration {
    text-align: center;
    font-family: var(--body-font);
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted-text-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}
.receipt-duration i { color: var(--primary-color); margin-right: 0.5rem; }

.receipt-item-list { list-style: none; padding: 0; margin: 0; }
.receipt-item, .receipt-total-line { display: flex; justify-content: space-between; margin-bottom: .75rem; font-size: 1rem; }
.item-name { color: var(--text-color); }
.item-price { font-weight: 700; color: var(--text-color); }
.receipt-footer { border-top: 1px solid var(--border-color); }

.final-total {
    font-size: 1.1rem !important;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--primary-color);
}
.final-total span { 
    color: #12f385; 
}

.receipt-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}
.receipt-actions .cta-button { flex: 1; }

@media (max-width: 992px) {
    .quote-grid { grid-template-columns: 1fr; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
