:root {
    --primary-gold: #CFA601;
    --dark-bg: #11181C;
    --modal-bg: #0B0E11;
    --input-bg: rgba(255, 255, 255, 0.08);
    /* Adjusted to match figma's 16% of #FFFFFF maybe? */
    --text-gray: #A8B5C0;
    --active-step: #D9D9D9;
    --inactive-step-border: rgba(217, 217, 217, 0.5);
    /* Increased opacity */
    --inactive-step-bg: rgba(217, 217, 217, 0.08);
}

.modal-backdrop.show {
    background-color: #172024 !important;
    opacity: 1 !important;
}

.quotation-modal-content {
    background-color: var(--modal-bg) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

.quotation-modal-content .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.quotation-modal-content .close-btn:hover {
    opacity: 1;
}

.quotation-container {
    display: flex;
    width: 100%;
    min-height: 550px;
    transition: all 0.3s ease;
}

.quotation-container.full-width-mode .quotation-visual {
    display: none;
}

.quotation-container.full-width-mode .quotation-form-section {
    flex: 1;
    padding: 50px 80px;
}

/* .quotation-container.full-width-mode .stepper {
    justify-content: flex-start;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
} */

/* Left Section */
.quotation-visual {
    flex: 1;
    padding: 25px;
    background: #0B0E11;
    display: flex;
}

.visual-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(62, 128, 143, 0.4);
}

.visual-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Section */
.quotation-form-section {
    flex: 1.2;
    padding: 50px 40px;
    background: #0B0E11;
    display: flex;
    flex-direction: column;
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    /* gap: 10px; */
    margin-bottom: 40px;
    max-width: 400px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 4px;
    font-weight: 500;
}

.step-circle {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.step-item.active .step-circle {
    background: rgba(217, 217, 217, 0.4);
    /* #D9D9D966 - Low opacity for previous */
    border: 1px solid #D9D9D9;
    color: #FFFFFF;
}

.step-item.current .step-circle {
    background: var(--active-step);
    /* #D9D9D9 - Full opacity for current */
    color: #000;
    border: none;
}

.step-item.inactive .step-circle {
    background: var(--inactive-step-bg);
    border: 1px solid var(--inactive-step-border);
    color: rgba(217, 217, 217, 0.5);
}

.step-line {
    flex: 1;
    height: 1px;
    background: var(--inactive-step-border);
    margin-top: 15px;
    min-width: 20px;
    /* Ensure they don't disappear */
}

.step-line.active {
    background: #D9D9D9;
}

/* Form Content */
.form-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.form-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 90%;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 18px;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

/* Step 4 Project Details Box */
.project-details-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.box-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.form-select option {
    background-color: #11181C;
    color: #FFFFFF;
}

/* Step 5 Priority Grids */
.priority-section {
    margin-bottom: 35px;
}

.priority-section .box-subtitle {
    margin-bottom: 15px;
    font-size: 14px;
}

.priority-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.priority-grid .service-btn {
    width: 100%;
    white-space: nowrap;
}

/* Step 2 & 3 Selection Grids */
.department-grid,
.services-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.department-grid {
    grid-template-columns: 1fr 1fr;
}

.services-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

.dept-btn,
.service-btn {
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
}

.dept-btn:hover,
.service-btn:hover {
    border-color: rgba(62, 128, 143, 0.5);
    color: #FFFFFF;
}

.dept-btn.selected,
.service-btn.selected {
    background: #3E808F;
    border-color: #3E808F;
    color: #FFFFFF;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 20px;
}

.back-btn,
.next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 183px;
    height: 55px;
    background: #10191C;
    border: 1px solid #3E808F;
    border-radius: 34px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: inset 0 0 12.8px 5px rgba(62, 128, 143, 0.7);
    transition: transform 0.2s ease;
    text-decoration: none;
}

.back-btn:hover,
.next-btn:hover {
    transform: translateY(-2px);
    color: #FFFFFF;
    text-decoration: none;
}

.generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Make it fill space or keep it consistent? Let's use 200px+ */
    max-width: 250px;
    height: 55px;
    background: var(--primary-gold);
    border-radius: 100px;
    border: none;
    color: #172024;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(207, 166, 1, 0.4);
}

/* Step Wizard Helper */
.step-content {
    display: none;
    flex-direction: column;
    height: 100%;
}

.step-content.active {
    display: flex;
}

@media (max-width: 991px) {
    .quotation-visual {
        display: none;
    }

    .quotation-form-section {
        flex: 1;
        padding: 40px 25px;
    }
}