/* Simple and Clean Form Styles */

/* Reset and base styles */
.sfi-shipping-form {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: white;
    padding: 20px;
    line-height: 1.5;
}

/* Typography */
.sfi-form-title,
.sfi-shipping-form h1 {
    font-size: 24px;
    font-weight: normal;
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

.sfi-step-header h3,
.sfi-shipping-form h2 {
    font-size: 20px;
    font-weight: normal;
    margin: 0 0 15px 0;
    color: #333;
}

.sfi-shipping-form h3,
.sfi-shipping-form h4 {
    font-size: 16px;
    font-weight: normal;
    margin: 20px 0 10px 0;
    color: #333;
}

/* Progress bar - simple */
.sfi-progress-container {
    margin-bottom: 30px;
}

.sfi-progress-bar {
	display: flex;
    justify-content: space-between;
	margin-bottom: 20px;
}

.sfi-progress-step {
    flex: 1;
	text-align: center;
    padding: 10px 5px;
	color: #666;
    border-bottom: 2px solid #eee;
}

.sfi-progress-step.active {
    color: #102253;
    border-bottom-color: #102253;
}

.sfi-progress-step.completed {
    color: #102253;
    border-bottom-color: #102253;
}

.sfi-step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background: #eee;
	color: #666;
	font-size: 12px;
    margin-bottom: 5px;
}

.sfi-progress-step.active .sfi-step-number,
.sfi-progress-step.completed .sfi-step-number {
    background: #102253;
    color: white;
}

.sfi-step-label {
	font-size: 12px;
    display: block;
}

/* Step containers */
.sfi-step-container {
	display: none;
}

.sfi-step-container.active {
    display: block;
}

.sfi-step-header {
	margin-bottom: 20px;
}

.sfi-step-header p {
	color: #666;
    margin: 5px 0 0 0;
}

/* Form layout */
.sfi-row {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
    align-items: flex-end;
}

.sfi-container {
	flex: 1;
}

.sfi-row-separator {
    flex: none;
    width: 40px;
    text-align: center;
    padding-top: 25px;
}

/* Labels and inputs */
label {
    display: block;
    margin-bottom: 5px;
	color: #333;
	font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
    box-sizing: border-box;
}

/* Pickup date field - shorter width */
#pickup_date {
    max-width: 200px;
}

/* Readonly/locked fields styling */
input[readonly],
select[readonly] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
	cursor: not-allowed;
}

input[readonly]:focus {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    box-shadow: none;
}

/* Help text for locked fields */
.sfi-help-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 3px;
    font-style: italic;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #666;
}

/* Buttons */
button,
.sfi-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
	border-radius: 4px;
    background: white;
    color: #333;
    cursor: pointer;
	font-size: 14px;
}

button:hover,
.sfi-btn:hover {
    border-color: #999;
}

/* Previous button - override theme styles */
button#sfi-prev-step,
#sfi-prev-step,
.sfi-navigation-controls button#sfi-prev-step,
.sfi-navigation-controls #sfi-prev-step {
    background: #dc0322 !important;
    background-color: #dc0322 !important;
    color: white !important;
    border-color: #dc0322 !important;
}

button#sfi-prev-step:hover,
#sfi-prev-step:hover,
.sfi-navigation-controls button#sfi-prev-step:hover,
.sfi-navigation-controls #sfi-prev-step:hover {
    background: white !important;
    background-color: white !important;
    color: #dc0322 !important;
    border-color: #dc0322 !important;
}

#sfi-next-step,
.sfi-btn-primary,
a.sfi-btn-primary {
    background: #102253;
	color: white !important;
    border-color: #102253;
    text-decoration: none;
}

#sfi-next-step:hover,
.sfi-btn-primary:hover,
a.sfi-btn-primary:hover {
    background: #0d1a40;
    border-color: #0d1a40;
    color: white !important;
}

#sfi-add-item {
    background: #E5001C;
    color: white !important;
    border-color: #E5001C;
    margin-top: 10px;
}

#sfi-add-item:hover {
    background: white;
    color: #E5001C !important;
    border-color: #E5001C;
}

/* Payment proceed button - red style like previous button */
#sfi-proceed-payment,
button#sfi-proceed-payment {
    background: #dc0322 !important;
    background-color: #dc0322 !important;
    color: white !important;
    border-color: #dc0322 !important;
}

#sfi-proceed-payment:hover,
button#sfi-proceed-payment:hover {
    background: white !important;
    background-color: white !important;
    color: #dc0322 !important;
    border-color: #dc0322 !important;
}

/* Payment actions container - align button to right */
.sfi-payment-actions {
    text-align: right;
    margin-top: 20px;
}

.sfi-remove-item {
    background: #f5f5f5;
    color: #999;
    padding: 8px;
    font-size: 12px;
}

.sfi-remove-item:hover {
    background: #eee;
	color: #666;
}

/* Navigation */
.sfi-navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.sfi-navigation-center {
    flex: 1;
    text-align: center;
}

/* Item rows */
.sfi-item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-end;
}

.sfi-item-type { flex: 0 0 120px; }
.sfi-item-details { flex: 2; }
.sfi-item-height,
.sfi-item-length,
.sfi-item-width,
.sfi-item-weight,
.sfi-item-qty { flex: 0 0 80px; }
.sfi-item-remove { flex: 0 0 40px; }

/* Section headers */
.sfi-section-title {
    margin: 20px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* Service options */
.sfi-service-option {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sfi-service-option:hover {
    border-color: #999;
}

.sfi-service-option.selected {
    border-color: #333;
    background: #f9f9f9;
}

.sfi-service-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.sfi-service-description {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
	}

.sfi-service-meta {
    color: #999;
    font-size: 12px;
	}

.sfi-service-price {
    font-size: 18px;
		font-weight: bold;
		color: #333;
	}

/* Autocomplete */
.sfi-suggestion-box {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
		width: 100%;
	}

.sfi-suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
	}

.sfi-suggestion-item:hover {
    background: #f5f5f5;
}

/* Alerts and messages */
.sfi-alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    position: relative;
}

.sfi-alert-error {
    background: #ffe6ea;
    color: #E5001C;
    border: 1px solid #E5001C;
	}

.sfi-alert-success {
    background: #eaffea;
    color: #060;
    border: 1px solid #060;
	}

.sfi-alert-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
		font-size: 16px;
	}

/* Error states */
.sfi-error {
    color: #E5001C;
        font-size: 12px;
    margin-top: 3px;
    }

.sfi-field-error input,
.sfi-field-error select,
.sfi-field-error textarea {
    border-color: #E5001C;
}

/* Registration form styles */
.sfi-form-group {
    margin-bottom: 15px;
}

.sfi-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.sfi-form-group input[type="text"],
.sfi-form-group input[type="email"],
.sfi-form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.sfi-form-group .sfi-field-help {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.sfi-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.sfi-form-row .sfi-form-group {
    flex: 1;
}

.sfi-account-options {
    margin-bottom: 20px;
}

.sfi-account-option {
    margin-bottom: 15px;
}

.sfi-radio-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sfi-radio-label:hover {
    border-color: #666;
    background-color: #f9f9f9;
}

.sfi-radio-label input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
}

.sfi-option-content {
    flex: 1;
}

.sfi-option-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.sfi-option-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.sfi-conditional-fields {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.sfi-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-top: 15px;
}

.sfi-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
}

/* Loading */
#sfi-loading {
    text-align: center;
    padding: 20px;
    display: none;
}

.sfi-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #102253;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Summary */
.sfi-booking-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.sfi-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 5px 0;
}

.sfi-summary-total {
    border-top: 1px solid #ddd;
    margin-top: 10px;
    padding-top: 10px;
    font-weight: bold;
}

/* Notes */
.sfi-note {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #495057;
}

/* Step 5: Confirmation Styles */
.sfi-success-header {
    text-align: center;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sfi-success-header h2 {
    color: #155724;
    margin: 10px 0;
}

.sfi-success-header p {
    color: #155724;
    margin: 5px 0 0 0;
}

.sfi-success-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.sfi-error-header {
    text-align: center;
    background: #ffe6ea;
    border: 1px solid #ffccd4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sfi-error-header h2 {
    color: #E5001C;
    margin: 10px 0;
}

.sfi-error-header p {
    color: #E5001C;
    margin: 5px 0 0 0;
}

.sfi-error-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.sfi-confirmation-loading {
    text-align: center;
    padding: 40px 20px;
}

.sfi-confirmation-loading .sfi-spinner {
    margin: 0 auto 15px auto;
}

.sfi-payment-cancelled-content {
    max-width: 600px;
    margin: 0 auto;
}

.sfi-cancelled-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sfi-cancelled-message h4 {
    color: #856404;
    margin-top: 0;
}

.sfi-cancelled-message p,
.sfi-cancelled-message ul {
    color: #856404;
}

.sfi-cancelled-actions {
    text-align: center;
}

.sfi-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.sfi-support-note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.sfi-confirmation-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.sfi-error-message {
    background: #ffe6ea;
    border: 1px solid #ffccd4;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.sfi-error-message h4 {
    color: #E5001C;
    margin-top: 0;
}

.sfi-error-message p {
    color: #E5001C;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sfi-shipping-form {
        padding: 15px;
    }
    
    .sfi-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .sfi-row-separator {
        width: auto;
        padding: 5px 0;
        text-align: left;
    }
    
    .sfi-item-row {
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .sfi-item-type,
    .sfi-item-details,
    .sfi-item-height,
    .sfi-item-length,
    .sfi-item-width,
    .sfi-item-weight,
    .sfi-item-qty {
        flex: 1;
        margin-bottom: 10px;
    }
    
    .sfi-progress-step {
        padding: 5px 2px;
    }
    
    .sfi-step-label {
        font-size: 10px;
    }
    
    .sfi-service-option {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .sfi-navigation-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .sfi-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .sfi-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Hide mobile labels on desktop */
.mobile-label {
    display: none;
}

@media (max-width: 768px) {
    .mobile-label {
    display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: #333;
    }
}
