.text-color-primary {
    color: var(--gobac-primary-color);
}

.error-text {
    color: #dc3232 !important;
}

/* Container Layout */
.gobac-wizard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gobac-form-step {
    max-width: 800px;
    margin: 0 auto;
}

.gobac-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.gobac-form-group {
    margin-bottom: 20px;
}

.gobac-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.gobac-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.gobac-validation-message {
    color: var(--gobac-secondary-color);
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.gobac-button {
    background: var(--gobac-primary-color);
    border: none;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.gobac-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gobac-button:hover {
    background: var(--gobac-primary-hover);
}

.gobac-form-actions {
    margin-top: 20px;
    text-align: right;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.required {
    color: #d63638;
}


/* Breadcrumbs */
.gobac-breadcrumbs {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.gobac-breadcrumbs ul {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gobac-breadcrumbs li {
    display: flex;
    align-items: center;
    position: relative;
    color: #666;
    cursor: default;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gobac-breadcrumbs li.active {
    color: var(--gobac-primary-color);
    opacity: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-weight: bold;
    z-index: 2;
}

li.active .step-number {
    background: var(--gobac-primary-color);
    color: white;
}

/* Content Layout */
.gobac-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gobac-content-wrapper {
        grid-template-columns: 1fr;
    }

    .gobac-breadcrumbs .step-text {
        display: none;
    }
}

.gobac-wizard-container h2 {
    color: var(--gobac-primary-color) !important;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--gobac-primary-color);
    padding-bottom: 10px;
}

/* Grid System */
[class*="col-"] {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Small devices (phones, less than 768px) */
@media (max-width: 767px) {
    [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .gobac-wizard-container {
        padding: 15px 0px;
    }
    .gobac-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .gobac-order-preview {
        margin-top: 30px;
    }
}
/* Order Preview Sidebar */
.gobac-order-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    z-index: 100;
    /* max-height: calc(100vh - 40px); */
    /* overflow-y: auto; */
    display: flex;
    flex-direction: column;
}

/* Make the sections scroll independently */
.preview-section {    
    flex-shrink: 1; /* Allow sections to shrink */
}

.preview-section .total-order {
    text-align: center;
}

/* Keep totals section always visible at bottom */
.totals-preview {
    margin-top: auto; 
    flex-shrink: 0;
    border-top: 1px solid #eee;
}

.preview-section:last-child {
	border-bottom: none;
}

.preview-content {
	font-size: 14px;
}

.preview-content p {
	margin: 5px 0;
}

.preview-section .preview-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.preview-section .preview-item .item-name {
    width: 100px;
    overflow-wrap: break-word;
    white-space: normal;
}

.preview-section .preview-item .item-qty, .preview-section .preview-item .item-price {
    width: 50px;
}


.preview-content .value {
	color: var(--gobac-secondary-color);
}

.preview-total {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 2px solid var(--gobac-primary-color);
}

.total-amount {
	font-size: 24px;
	font-weight: bold;
	color: var(--gobac-primary-color);
	margin: 5px 0;
}

.preview-empty-state {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Step transitions */
.gobac-step-content {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.gobac-step-content:not(.active) {
    display: none;
    opacity: 0;
}

/* Navigation buttons */
.gobac-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.gobac-form-actions button {
    min-width: 120px;
}

/* Input wrapper for positioning loader */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Loader styles */
.loader {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--gobac-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Validation message styles */
.gobac-validation-message {
    margin-top: 5px;
    font-size: 0.875rem;
    min-height: 20px;
}

.gobac-validation-message.error {
    color: #dc3545;
}

.gobac-validation-message.success {
    color: var(--gobac-primary-color);
}

/* Input states */
.gobac-input.validating {
    border-color: #ffc107;
}

.gobac-input.valid {
    border-color: var(--gobac-primary-color);
}

.gobac-input.invalid {
    border-color: #dc3545;
}

.gobac-breadcrumbs li.clickable {
    cursor: pointer;
    opacity: 1;
}

.gobac-breadcrumbs li.completed {
    opacity: 1;
}

/* Previous button styles */
.prev-step {
    margin-right: 10px;
}

.gobac-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Boxes Grid Layout */
.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.box-item {
    background: white;
    border-radius: 12px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
}

.box-item:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.box-item.selected {
    border-color: var(--gobac-primary-color);
    box-shadow: 0 4px 12px rgba(var(--gobac-primary-rgb), 0.15);
}

.box-content {
    padding: 20px;
}

.box-image {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
}

.box-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
	margin: 0 auto;
}

.box-info {
    text-align: center;
}

.box-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.box-type {
    color: #666;
    margin: 5px 0;
    font-size: 14px;
}

.box-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--gobac-primary-color);
    margin: 15px 0;
}

.box-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}


.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.quantity-input:focus {
    border-color: var(--gobac-primary-color);
    outline: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .boxes-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }

    .box-info h3 {
        font-size: 16px;
    }

    .box-price {
        font-size: 20px;
    }
}

/* No boxes message */
.no-boxes {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.step-description {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.step-description p {
    margin: 0;
}

/* Error Message Styles */
.step-error-message {
    background-color: #fff2f2;
    border-left: 4px solid #dc3232;
    color: #dc3232;
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Supplies Grid Styles */
.supplies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.supply-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
	margin: 0 auto;
}

.supply-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.supply-item.selected {
    border-color: var(--gobac-primary-color);
}

.supply-content {
    padding: 15px;
}

.supply-image {
    text-align: center;
    margin-bottom: 15px;
}

.supply-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.supply-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.supply-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.supply-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.supply-price-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.supply-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--gobac-primary-color);
    margin: 0;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .supplies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
	.supply-item {
		min-width: 300px;
	}

    .supplies-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .supply-content {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 15px;
        padding: 12px;
    }

    .supply-image {
        margin-bottom: 0;
    }

    .supply-image img {
        max-width: 120px;
    }

    .supply-details {
		text-align: center;
        gap: 8px;
    }

    .supply-title {
        font-size: 15px;
		text-align: center;
    }

    .supply-description {
        font-size: 13px;
    }

    .supply-price {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .supply-content {
        grid-template-columns: 1fr;
    }

    .supply-image {
        text-align: center;
        margin-bottom: 12px;
    }

    .supply-image img {
        max-width: 180px;
		margin: 0 auto;
    }

    .supply-price-quantity {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .supply-quantity {
        justify-content: center;
    }
}

/* Supplies Step Sections */
.supplies-section,
.accessories-section {
    margin-bottom: 40px;
}

.supplies-section h3,
.accessories-section h3 {
    font-size: 20px;
    color: var(--gobac-primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gobac-primary-color);
}

.step-description {
    margin-bottom: 20px;
}

.price-period {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Adjust spacing for mobile */
@media screen and (max-width: 768px) {
    .supplies-section,
    .accessories-section {
        margin-bottom: 30px;
    }

    .supplies-section h3,
    .accessories-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .step-description {
        margin-bottom: 15px;
    }
}

/* Quantity Controls - Common styles for all steps */
.box-quantity,
.supply-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-quantity .quantity-btn.plus, .box-quantity .quantity-btn.minus {
    background-color: #f5f5f5;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}

.box-quantity .quantity-btn.plus:hover {
    background-color: var(--gobac-primary-color);
    color: white !important;
}

.box-quantity .quantity-btn.minus:hover {
    background-color: red;
    color: white !important;
}

.selected .box-quantity .quantity-btn.plus {
    background-color: var(--gobac-primary-color);
    color: white !important;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    color: #333 !important;
    min-height: unset;
    line-height: 1;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity-btn.plus:after {
    content: '+';
}

.selected .box-quantity .quantity-btn.plus:after {
    content: '+';
}

.quantity-btn.minus:after {
    content: '−';
}

/* Override Elementor button styles */
.quantity-btn.elementor-button {
    padding: 0;
    min-height: unset;
    line-height: 1;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .box-quantity,
    .supply-quantity {
        justify-content: center;
    }
}

/* Desktop styles (min-width: 768px) */
@media (min-width: 768px) {
    .gobac-breadcrumbs {
        margin-bottom: 30px;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 20px;
        position: sticky;
        top: 55px;
        z-index: 100;
        background: #fff;
        padding: 10px 0;
    }

    .gobac-order-preview {
        position: sticky;
        top: 120px; /* Positioned below the sticky breadcrumbs */
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        z-index: 1;
    }
}

/* Mobile styles (max-width: 767px) */
@media (max-width: 767px) {
    .gobac-breadcrumbs,
    .gobac-order-preview {
        position: static; /* Removes sticky positioning on mobile */
    }
    
    .gobac-order-preview {
        margin-top: 30px;
    }
}

.calculated-date-display {
    position: relative;
}

.calculated-date-display .date-display {
    display: block;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #666;
}

.calculated-date-display .date-info {
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-top: 4px;
    font-style: italic;
}

.small-info-text {
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-top: 4px;
    font-style: italic;
}

.gobac-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gobac-loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Make sure the customer step has relative positioning */
.customer-step {
    position: relative;
}

/* Rental Details for checkout page */

.gobac-rental-details-table {
    border: 1px solid rgba(0, 0, 0, .1);
    margin: 0 -1px 24px 0;
    text-align: left;
    width: 100%;
    border-collapse: separate;
    border-radius: 5px;
}

.promo-banner-section {
    margin: 20px 0;
    width: 100%;
}
.promo-banner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}
.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Banner responsive styles */
.desktop-banner {
    display: block;
}
.mobile-banner {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .desktop-banner {
        display: none !important;
    }
    .mobile-banner {
        display: block !important;
    }
}