@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Outfit:wght@400;600;700&display=swap');

/* Variables */
:root {
	--ala-primary: #F26522;
	--ala-primary-hover: #d95a1e;
	--ala-secondary: #1E293B;
	--ala-bg-input: #F1F5F9;
	--ala-bg-active: #fff2ed;
	--ala-border: #E2E8F0;
	--ala-success: #16A34A;
	--ala-error: #DC2626;
	--ala-text: #475569;
	--ala-radius: 8px;
	--ala-shadow: 0 2px 8px rgba(0,0,0,0.06);
	--ala-font-heading: 'Outfit', sans-serif;
	--ala-font-body: 'Inter', sans-serif;
	--ala-transition: all 200ms ease;
}

/* Base Wrapper */
.alamanah-wizard-wrap {
	display: flex;
	flex-direction: column-reverse;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
	font-family: var(--ala-font-body);
	color: var(--ala-text);
	position: relative;
}

/* Loader Overlay */
.wizard-loader-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(2px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--ala-radius);
	transition: var(--ala-transition);
}

.spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(242, 101, 34, 0.1);
	border-top: 3px solid var(--ala-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

.is-loading {
	pointer-events: none;
	opacity: 0.7;
}

.btn-loading {
	position: relative;
	color: transparent !important;
}

.btn-loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-top: -8px;
	margin-left: -8px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

@media (min-width: 768px) {
	.alamanah-wizard-wrap {
		flex-direction: row;
		align-items: flex-start;
	}
}

.alamanah-wizard-wrap * {
	box-sizing: border-box;
}

.alamanah-wizard-wrap h1, 
.alamanah-wizard-wrap h2, 
.alamanah-wizard-wrap h3, 
.alamanah-wizard-wrap h4, 
.alamanah-wizard-wrap h5, 
.alamanah-wizard-wrap h6 {
	font-family: var(--ala-font-heading);
	color: var(--ala-secondary);
	margin-top: 0;
}

.alamanah-wizard-wrap h2 {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.alamanah-wizard-wrap h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

@media (max-width: 640px) {
	.alamanah-wizard-wrap h2 {
		font-size: 1.25rem;
	}
}

/* Sidebar */
.wizard-sidebar {
	flex: 1;
	background: #fff;
	border: 1px solid var(--ala-border);
	border-radius: var(--ala-radius);
	padding: 1.5rem;
	box-shadow: var(--ala-shadow);
	position: sticky;
	top: 2rem;
}

@media (min-width: 1024px) {
	.wizard-sidebar {
		flex: 0 0 320px;
	}
}

.sidebar-header {
	border-bottom: 1px solid var(--ala-border);
	padding-bottom: 1rem;
	margin-bottom: 1rem;
}

.sidebar-title {
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
}

.sidebar-service-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--ala-bg-active);
	color: var(--ala-primary);
	padding: 0.5rem 0.75rem;
	border-radius: var(--ala-radius);
	font-weight: 500;
	font-size: 0.875rem;
}

.sidebar-summary-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-summary-list li {
	display: flex;
	justify-content: space-between;
	font-size: 0.875rem;
	margin-bottom: 0.75rem;
}

.sidebar-summary-list li .label {
	color: var(--ala-text);
}

.sidebar-summary-list li .value {
	color: var(--ala-secondary);
	font-weight: 500;
	text-align: right;
	max-width: 60%;
}

.sidebar-footer {
	border-top: 1px solid var(--ala-border);
	padding-top: 1rem;
	margin-top: 1rem;
}

.sidebar-quote-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sidebar-quote-total .total-label {
	font-family: var(--ala-font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--ala-secondary);
}

.sidebar-quote-total .total-amount {
	font-family: var(--ala-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ala-primary);
}

.sidebar-custom-quote-msg {
	color: var(--ala-primary);
	font-weight: 500;
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

/* Main Area */
.wizard-main {
	flex: 1;
	background: #fff;
	border: 1px solid var(--ala-border);
	border-radius: var(--ala-radius);
	padding: 1.5rem;
	box-shadow: var(--ala-shadow);
	min-width: 0;
}

@media (min-width: 768px) {
	.wizard-main {
		padding: 2.5rem;
	}
}

/* Step Indicator */
.step-indicator {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.step-dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--ala-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ala-font-heading);
	font-weight: 600;
	color: #94A3B8;
	background: #fff;
	transition: var(--ala-transition);
}

.step-dot.active {
	border-color: var(--ala-primary);
	background: var(--ala-primary);
	color: #fff;
}

.step-dot.completed {
	border-color: var(--ala-success);
	background: var(--ala-success);
	color: #fff;
}

.step-line {
	flex: 1;
	height: 2px;
	background: var(--ala-border);
	max-width: 60px;
}

/* Step Content */
.step-content {
	display: none;
	animation: fadeIn 300ms ease;
}

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

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

.step-desc {
	margin-bottom: 2rem;
	font-size: 1rem;
}

/* Service Selector Cards */
.service-selector {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.service-selector {
		grid-template-columns: 1fr 1fr;
	}
}

.service-card {
	background: #fff;
	border: 2px solid var(--ala-border);
	border-radius: var(--ala-radius);
	padding: 1.5rem;
	text-align: left;
	cursor: pointer;
	transition: var(--ala-transition);
	box-shadow: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.service-card:hover {
	border-color: var(--ala-primary);
	transform: translateY(-2px);
	box-shadow: var(--ala-shadow);
}

.service-card.selected {
	border-color: var(--ala-primary);
	background: var(--ala-bg-active);
}

.service-card .dashicons,
.service-card .service-icon {
	font-size: 2rem;
	width: 2rem;
	height: 2rem;
	color: var(--ala-primary);
	margin-bottom: 1rem;
}

.service-card h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.service-card p {
	font-size: 0.875rem;
	margin: 0;
	color: var(--ala-text);
}

/* Form Inputs */
.wizard-field {
	margin-bottom: 1.5rem;
}

.wizard-field label {
	display: block;
	font-weight: 500;
	color: var(--ala-secondary);
	margin-bottom: 0.5rem;
}

.wizard-field input[type="text"],
.wizard-field input[type="email"],
.wizard-field input[type="tel"],
.wizard-field input[type="number"],
.wizard-field input[type="password"],
.wizard-field input[type="time"],
.wizard-field input[type="date"],
.wizard-field select,
.wizard-field textarea {
	width: 100%;
	background: var(--ala-bg-input);
	border: 1px solid transparent;
	border-radius: var(--ala-radius);
	padding: 1rem;
	font-family: var(--ala-font-body);
	font-size: 1rem;
	color: var(--ala-secondary);
	transition: var(--ala-transition);
}

.wizard-field input:focus,
.wizard-field select:focus,
.wizard-field textarea:focus {
	outline: none;
	border-color: var(--ala-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.wizard-field select {
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1.25rem;
	padding-right: 2.5rem !important;
}
.wizard-field input.flatpickr-time{
	height: 54px;
	max-height: 54px;
}
.wizard-field.has-error input,
.wizard-field.has-error select {
	border-color: var(--ala-error);
	background: #fffaf9;
}

.wizard-error-msg {
	display: none;
	color: var(--ala-error);
	font-size: 0.75rem;
	margin-top: 0.25rem;
}

.wizard-field.has-error .wizard-error-msg {
	display: block;
}

/* Two Column Layout */
.wizard-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.wizard-row {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
	}
}

/* Buttons */
.step-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ala-border);
}

.btn-primary, .btn-secondary {
	padding: 0.75rem 1.5rem;
	border-radius: var(--ala-radius);
	font-family: var(--ala-font-heading);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: var(--ala-transition);
	border: none;
}

.btn-primary {
	background: var(--ala-primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--ala-primary-hover);
}

.btn-secondary {
	background: transparent;
	color: var(--ala-secondary);
	border: 1px solid var(--ala-border);
}

.btn-secondary:hover {
	background: var(--ala-bg-input);
}

.btn-primary:disabled, .btn-secondary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Loader Overlay */
.wizard-loader-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255,255,255,0.8);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: var(--ala-radius);
	z-index: 100;
}

.wizard-loader-overlay.active {
	display: flex;
}

.wizard-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--ala-border);
	border-top-color: var(--ala-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 1rem;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.flatpickr-calendar {
	width: 308px !important;
}

@media (max-width: 400px) {
	.flatpickr-calendar {
		width: 100% !important;
		max-width: 300px;
	}
}

/* Box Storage UI - Al Amanah Theme */
.box-step-one .step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #231F20;
    margin-bottom: 25px;
}

.storage-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.storage-item-row {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.2s;
}

.storage-item-row:last-child {
    border-bottom: none;
}

.storage-item-row:hover {
    background: #F8FAFC;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 25px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 8px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: #fff;
    color: #4A5568;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--ala-primary, #F26522);
    color: #fff;
}

.qty-btn.minus {
    color: #E53E3E;
}

.qty-btn.plus {
    color: #38A169;
}

.qty-btn.minus:hover, .qty-btn.plus:hover {
    color: #fff;
}

.qty-input {
    width: 45px !important;
    height: 36px !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #2D3748 !important;
    box-shadow: none !important;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #2D3748;
    font-size: 1rem;
    margin-bottom: 2px;
}

.item-desc {
    font-size: 0.85rem;
    color: #718096;
}

/* Duration Slider - Al Amanah Theme */
.duration-selector {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #F8FAFC;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.duration-badge {
    background: var(--ala-primary, #F26522);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.3);
}

.duration-badge span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.duration-badge small {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.9;
}

.slider-container {
    flex: 1;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #E2E8F0;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 3px solid var(--ala-primary, #F26522);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px 0;
    font-size: 0.75rem;
    color: #94A3B8;
    font-weight: 500;
}

.wizard-field {
    position: relative;
    margin-bottom: 20px;
}

/* Address Autocomplete Results */
.address-results {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
}

.address-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #2D3748;
    border-bottom: 1px solid #F7FAFC;
    transition: all 0.2s;
}

.address-item:last-child {
    border-bottom: none;
}

.address-item:hover {
    background: #FFF5F0;
    color: var(--ala-primary, #F26522);
    padding-left: 20px;
}

/* Custom Quote Contact Buttons */
.custom-quote-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--ala-font-heading);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-phone {
    background-color: var(--ala-primary);
    color: #fff;
}

.btn-phone:hover {
    background-color: var(--ala-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
}

/* Payment Method Selector */
.payment-option-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ala-shadow);
}

.payment-option-card.active {
    background: var(--ala-bg-active) !important;
}

@media (max-width: 640px) {
    .payment-options-grid {
        grid-template-columns: 1fr !important;
    }
}
