/* Basic Styling for the Quote Wizard */
.sd-quote-wizard-container {
    /* Default styles for both modal and inline */
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal specific styles */
.modal .sd-quote-wizard-content {
    position: relative;
    min-width: 320px;
    max-width: 720px;
    width: 100%;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 1rem;
}

/* Inline specific styles */
.sd-quote-wizard-container.inline {
    position: static; /* Remove fixed positioning */
    background-color: transparent; /* No overlay */
    display: block; /* Allow normal flow */
    width: auto; /* Take natural width */
    height: auto; /* Take natural height */
    z-index: auto;
    padding: 0;
    margin: 0;
}

.sd-quote-wizard-container.inline .sd-quote-wizard-content {
    box-shadow: none; /* No shadow for inline */
    max-width: 100%; /* Allow full width */
    padding: 0; /* No padding for inline */
}

#sd-quote-form section {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

#sd-quote-form h2 {
    margin-top: 0;
}

.sd-form-control {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.sd-button, .sd-button-secondary, .sd-button-icon {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.sd-button {
    background-color: #0073aa;
    color: #fff;
}
.sd-button:hover { background-color: #005a87; }

.sd-button-secondary {
    background-color: #f3f3f3;
    color: #333;
}
.sd-button-secondary:hover { background-color: #e0e0e0; }

.sd-button-icon {
    padding: 0.25rem 0.5rem;
    background-color: #e62222;
    color: white;
}

.sd-wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.sd-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.sd-table th, .sd-table td {
    padding: 0.5rem;
    border: 1px solid #eee;
    text-align: left;
}

.sd-table .price, .sd-table .qty { text-align: right; }

.sd-total-box {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

#sd-quote-feedback {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    background-color: #e0f0ff;
    border: 1px solid #b3d7ff;
}

/* New class for hiding elements */
.sd-hidden {
    display: none !important;
}

/* Close modal button */
.sd-close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}
.sd-close-modal:hover {
    color: #000;
}

/* Ensure content is positioned relative for close button */
.sd-quote-wizard-content {
    position: relative;
}