.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.message-container {
    text-align: center;
    margin-top: 20px;
}


.quotation-container {
    max-width: 600px;
    margin: 50px auto;
    background-color: #1a1b29;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

h2 {
    text-align: center;
    color: #f0a500;
    margin-bottom: 20px;
}

/* Progress bar styling */
.progress-container {
    width: 100%;
    background-color: #282c3f;
    border: 1px solid #f0a500;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 20px;
    background-color: #f0a500;
    width: 1%; /* Start with minimum width */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: width 0.3s;
}

.progress-text {
    color: #0e0f16;
    font-weight: bold;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

select, input[type="email"], input[type="text"], input[type="tel"], input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 4px;
    background-color: #282c3f;
    color: #ffffff;
}

/* Apply balanced padding only to contact slides */
.contact-slide {
    margin: 0 auto;
}

.contact-slide input[type="email"],
.contact-slide input[type="text"],
.contact-slide input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #282c3f;
    color: #ffffff;
    box-sizing: border-box;
}

/* Option containers for consistent spacing */
.owner-options,
.power-options,
.property-options,
.setup-options,
.roof-options,
.bill-options {
    margin-bottom: 10px;
}

/* Roof area input with unit selector */
.roof-area-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.roof-area-container input[type="number"] {
    flex: 2;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #282c3f;
    color: #ffffff;
    box-sizing: border-box;
    /* Hide number input spinner arrows */
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Hide number input spinner arrows for Webkit browsers (Chrome, Safari, Edge) */
.roof-area-container input[type="number"]::-webkit-inner-spin-button,
.roof-area-container input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
    /* Override Bootstrap's height: auto */
    height: 0 !important;
    width: 0 !important;
}

.roof-area-unit-select {
    flex: 1;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #282c3f;
    color: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
}

/* Focus states for roof area inputs */
.roof-area-container input[type="number"]:focus {
    outline: none;
    border-color: #f0a500;
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.3);
}

.roof-area-unit-select:focus {
    outline: none;
    border-color: #f0a500;
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.3);
}

/* General card styling for all option cards across slides */
.option-card {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    background-color: #282c3f;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.option-card:hover {
    background-color: #3b3e52;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Radio button styling for card options */
.option-card input[type="radio"] {
    margin-right: 10px; /* Space between circle and label */
    width: 18px;
    height: 18px;
    accent-color: #f0a500; /* Custom color for selected state */
}

.option-card label {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
}

.option-card input[type="radio"]:checked + label {
    font-weight: bold;
    color: #f0a500;
}

/* Navigation buttons styling */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

#prevBtn {
    background-color: #555;
    color: #ffffff;
}

#nextBtn {
    background-color: #f0a500;
    color: #0e0f16;
}

#submitBtn {
    display: none;
    background-color: #f0a500;
    color: #0e0f16;
}

/* Notification styling */
.notification {
    display: none;
    color: #ff4500;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

/* Address dropdown styling */
.contact-slide select,
.contact-slide input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #282c3f;
    color: #ffffff;
    box-sizing: border-box;
}

.contact-slide select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contact-slide input[type="text"]#street {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #282c3f;
    color: #ffffff;
    box-sizing: border-box;
}

.contact-slide input[type="text"]#street::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* File upload input styling */
.contact-slide input[type="file"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px dashed #f0a500;
    border-radius: 4px;
    background-color: #282c3f;
    color: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
}

.contact-slide input[type="file"]::file-selector-button {
    padding: 8px 16px;
    margin-right: 15px;
    border: none;
    border-radius: 4px;
    background-color: #f0a500;
    color: #0e0f16;
    font-weight: bold;
    cursor: pointer;
}

.contact-slide input[type="file"]:hover {
    border-color: #fbc30d;
}

.contact-slide input[type="file"]:focus {
    outline: none;
    border-color: #fbc30d;
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.3);
}
