/**
 * Trip Form Widget - Stylesheet
 */

.abx-trip-form-card {
	box-sizing: border-box;
	background-color: transparent !important;
	background: transparent !important;
	border-radius: 0;
	padding: 0;
	max-width: 100%;
	font-family: inherit;
	color: #111111;
	box-shadow: none !important;
}

.abx-trip-form-card *,
.abx-trip-form-card *::before,
.abx-trip-form-card *::after {
	box-sizing: border-box;
}

/* Header */
.abx-trip-form-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid #F0ECE9;
}

.abx-trip-form-close-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #E5DFDA;
	background: transparent;
	color: #222222;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.abx-trip-form-close-btn:hover {
	background-color: #F7F5F3;
	border-color: #D6CEC8;
	color: #000000;
}

.abx-trip-form-header-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #111111;
	line-height: 1.2;
}

/* Form Layout */
.abx-trip-form-body {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.abx-trip-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.abx-trip-field-label {
	font-size: 14px;
	font-weight: 500;
	color: #222222;
	line-height: 1.4;
	margin: 0;
}

/* Inputs & Selects */
.abx-trip-input,
.abx-trip-select {
	width: 100%;
	height: 46px;
	padding: 0 16px;
	font-size: 15px;
	font-family: inherit;
	color: #111111;
	background-color: #ffffff;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.abx-trip-input::placeholder {
	color: #9CA3AF;
}

.abx-trip-input:focus,
.abx-trip-select:focus {
	border-color: #C86235;
	box-shadow: 0 0 0 3px rgba(200, 98, 53, 0.12);
}

/* Custom Select Wrapper */
.abx-trip-select-wrapper {
	position: relative;
	width: 100%;
}

.abx-trip-select {
	padding-right: 40px;
	cursor: pointer;
}

.abx-trip-select-arrow {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #6B7280;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Submit Button */
.abx-trip-form-actions {
	margin-top: 8px;
}

.abx-trip-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #C86235;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 14px 28px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.abx-trip-submit-btn:hover,
.abx-trip-submit-btn:focus {
	background-color: #B35227;
	outline: none;
}

.abx-trip-submit-btn:active {
	transform: translateY(1px);
}

.abx-trip-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Spinner Icon */
.abx-spinner-icon {
	animation: abx-spin 1s linear infinite;
}

@keyframes abx-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Alerts */
.abx-trip-form-alert {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.4;
}

.abx-alert-error {
	background-color: #FEF2F2;
	color: #991B1B;
	border: 1px solid #FCA5A5;
}

.abx-alert-success {
	background-color: #F0FDF4;
	color: #166534;
	border: 1px solid #86EFAC;
}
