/* ==========================================================================
   AC Installation Booking Form — Frontend Styles
   ========================================================================== */

.acib-form-wrap {
	max-width: 680px;
	margin: 0 auto;
	font-family: inherit;
}

.acib-form-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px;
}

/* -----------------------------------------------------------------------
   Sections
   ----------------------------------------------------------------------- */
.acib-section {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px 24px;
	margin-bottom: 16px;
	background: #fafafa;
}

.acib-section__title {
	margin: 0 0 16px;
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a1a;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 8px;
}

/* -----------------------------------------------------------------------
   Customer detail fields
   ----------------------------------------------------------------------- */
.acib-fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.acib-field label {
	display: block;
	font-weight: 500;
	color: #333;
	margin-bottom: 5px;
	font-size: 0.9rem;
}

.acib-field input[type="text"],
.acib-field input[type="email"],
.acib-field input[type="tel"],
.acib-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.95rem;
	color: #333;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.acib-field input:focus,
.acib-field textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12);
}

.acib-required { color: #c0392b; }

/* -----------------------------------------------------------------------
   Option rows
   ----------------------------------------------------------------------- */
.acib-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.acib-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s, background 0.15s;
}

.acib-option:hover {
	border-color: #0073aa;
	background: #f0f8ff;
}

.acib-option input[type="radio"] {
	accent-color: #0073aa;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	cursor: pointer;
}

.acib-option__label {
	flex: 1;
	font-weight: 500;
	color: #333;
}

.acib-option__rule {
	font-size: 0.82rem;
	font-weight: 500;
	white-space: nowrap;
}

.acib-rule--included   { color: #2e7d32; }
.acib-rule--surcharge  { color: #c0392b; font-weight: 700; }
.acib-rule--custom     { color: #e67e22; font-weight: 700; }
.acib-rule--provisional{ color: #555; font-style: italic; }

/* Checked state */
.acib-option:has(input:checked) {
	border-color: #0073aa;
	background: #f0f8ff;
}

/* Detailed options (compressor) */
.acib-options--detailed .acib-option { align-items: flex-start; }

.acib-option__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.acib-option__desc {
	font-size: 0.82rem;
	color: #666;
}

/* -----------------------------------------------------------------------
   Notices
   ----------------------------------------------------------------------- */
.acib-notice {
	border-radius: 6px;
	padding: 12px 16px;
	margin-top: 12px;
	font-size: 0.9rem;
}

.acib-notice--warning {
	background: #fff8e1;
	border: 1px solid #f9a825;
	color: #5d4037;
}

.acib-error-notice {
	background: #fce4ec;
	border: 1px solid #ef9a9a;
	color: #c62828;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 0.9rem;
}

/* -----------------------------------------------------------------------
   Calendar
   ----------------------------------------------------------------------- */
.acib-calendar__note {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 12px;
}

#acib-calendar { display: inline-block; }

#acib-calendar .ui-datepicker {
	width: 280px;
	border-radius: 8px;
	font-size: 0.9rem;
	box-shadow: 0 2px 12px rgba(0,0,0,0.1);
	border: 1px solid #ddd;
}

#acib-calendar .ui-datepicker-header {
	background: #0073aa;
	border-color: #005580;
	color: #fff;
	border-radius: 7px 7px 0 0;
}

#acib-calendar .ui-datepicker-title { color: #fff; }
#acib-calendar .ui-datepicker-prev span,
#acib-calendar .ui-datepicker-next span { display: none; }
#acib-calendar .ui-datepicker-prev::before { content: "‹"; color: #fff; font-size: 1.3rem; }
#acib-calendar .ui-datepicker-next::before { content: "›"; color: #fff; font-size: 1.3rem; }

#acib-calendar .ui-state-highlight {
	border-color: #0073aa;
	background: #e8f4fb;
}
#acib-calendar .ui-state-active,
#acib-calendar .ui-state-hover {
	background: #0073aa !important;
	color: #fff !important;
	border-color: #005580 !important;
}
#acib-calendar .ui-datepicker td.ui-state-disabled span { color: #bbb; }

.acib-date-selected {
	margin-top: 12px;
	font-size: 0.95rem;
}

.acib-btn-link {
	background: none;
	border: none;
	color: #0073aa;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
	font-size: 0.9rem;
	margin-left: 8px;
}

/* -----------------------------------------------------------------------
   Price summary
   ----------------------------------------------------------------------- */
.acib-price-summary {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 16px;
}

.acib-price-summary__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.acib-price-summary__label { font-weight: 600; color: #1b5e20; }

.acib-price-summary__price {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1b5e20;
}

.acib-price-summary__note {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: #e65100;
}

/* -----------------------------------------------------------------------
   Submit section
   ----------------------------------------------------------------------- */
.acib-submit-row {
	margin-top: 16px;
}

.acib-btn-submit {
	display: inline-block;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 14px 32px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.acib-btn-submit:hover { background: #005580; }
.acib-btn-submit:disabled { background: #aaa; cursor: not-allowed; }

.acib-submit-note {
	font-size: 0.82rem;
	color: #666;
	margin-top: 10px;
}

/* -----------------------------------------------------------------------
   Success screen
   ----------------------------------------------------------------------- */
.acib-success {
	text-align: center;
	padding: 40px 24px;
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	border-radius: 8px;
}

.acib-success__icon {
	font-size: 3rem;
	color: #2e7d32;
	font-weight: 700;
	margin-bottom: 12px;
}

.acib-success h3 {
	font-size: 1.3rem;
	color: #1b5e20;
	margin: 0 0 10px;
}

.acib-success p {
	color: #333;
	font-size: 0.95rem;
}

/* -----------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 600px) {
	.acib-section { padding: 16px; }
	#acib-calendar .ui-datepicker { width: 100%; }
}
