/**
 * Motoplan Scratch & Dent — Frontend Styles
 *
 * @package Motoplan\ScratchDent
 * @version 0.1.0-alpha.1
 */

/* ==========================================================================
   Table of Contents

   1. Reset & Base
   2. Typography
   3. Layout
   4. Components
   5. Wizard
   6. Forms
   7. Utilities
   8. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

.motoplan-sd {
	box-sizing: border-box;
}

.motoplan-sd *,
.motoplan-sd *::before,
.motoplan-sd *::after {
	box-sizing: inherit;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

.motoplan-sd h1,
.motoplan-sd h2,
.motoplan-sd h3,
.motoplan-sd h4 {
	font-weight: 600;
	line-height: 1.3;
	margin-top: 0;
	margin-bottom: 0.5em;
}

.motoplan-sd p {
	line-height: 1.6;
	margin-top: 0;
	margin-bottom: 1em;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.motoplan-sd-container {
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
	padding-right: 1rem;
	padding-left: 1rem;
}

/* ==========================================================================
   4. Components
   ========================================================================== */

.motoplan-sd-card {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 1.5rem;
}

.motoplan-sd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	border: none;
	border-radius: 3px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.motoplan-sd-btn--primary {
	background-color: #0073aa;
	color: #ffffff;
}

.motoplan-sd-btn--primary:hover,
.motoplan-sd-btn--primary:focus {
	background-color: #005177;
	color: #ffffff;
}

.motoplan-sd-btn--secondary {
	background-color: #f0f0f1;
	color: #1d2327;
}

.motoplan-sd-btn--secondary:hover,
.motoplan-sd-btn--secondary:focus {
	background-color: #dcdcde;
	color: #1d2327;
}

.motoplan-sd-btn:disabled,
.motoplan-sd-btn[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ==========================================================================
   5. Wizard
   ========================================================================== */

.motoplan-sd-wizard {
	width: 100%;
}

.motoplan-sd-wizard__steps {
	display: flex;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	border-bottom: 1px solid #e0e0e0;
}

.motoplan-sd-wizard__step {
	flex: 1;
	padding: 0.75rem 1rem;
	text-align: center;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	color: #6c757d;
	font-size: 0.9rem;
}

.motoplan-sd-wizard__step--active {
	border-bottom-color: #0073aa;
	color: #0073aa;
	font-weight: 600;
}

.motoplan-sd-wizard__step--completed {
	border-bottom-color: #46b450;
	color: #46b450;
}

.motoplan-sd-wizard__panel {
	display: none;
}

.motoplan-sd-wizard__panel--active {
	display: block;
}

.motoplan-sd-wizard__actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* ==========================================================================
   6. Forms
   ========================================================================== */

.motoplan-sd-form__field {
	margin-bottom: 1.25rem;
}

.motoplan-sd-form__label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.375rem;
}

.motoplan-sd-form__label--required::after {
	content: ' *';
	color: #dc3232;
}

.motoplan-sd-form__input,
.motoplan-sd-form__select,
.motoplan-sd-form__textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #cccccc;
	border-radius: 3px;
	font-size: 1rem;
	line-height: 1.5;
	color: #1d2327;
	background-color: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.motoplan-sd-form__input:focus,
.motoplan-sd-form__select:focus,
.motoplan-sd-form__textarea:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.motoplan-sd-form__input--error,
.motoplan-sd-form__select--error,
.motoplan-sd-form__textarea--error {
	border-color: #dc3232;
}

.motoplan-sd-form__error {
	display: block;
	color: #dc3232;
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

/* ==========================================================================
   7. Utilities
   ========================================================================== */

.motoplan-sd-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.motoplan-sd-wizard__steps {
		flex-direction: column;
		border-bottom: none;
	}

	.motoplan-sd-wizard__step {
		border-bottom: none;
		border-left: 3px solid transparent;
		text-align: left;
		margin-bottom: 0;
	}

	.motoplan-sd-wizard__step--active {
		border-left-color: #0073aa;
		border-bottom-color: transparent;
	}

	.motoplan-sd-wizard__step--completed {
		border-left-color: #46b450;
		border-bottom-color: transparent;
	}

	.motoplan-sd-wizard__actions {
		flex-direction: column;
	}

	.motoplan-sd-btn {
		width: 100%;
	}
}
