/**
 * MP Price Calculator Form Styles
 * Matching Figma design tokens
 */

/* Reset any theme/WordPress default styles that might interfere */
.mp-pricecalc-form *,
.mp-pricecalc-form *::before,
.mp-pricecalc-form *::after {
	box-sizing: border-box;
}

/* Override Elementor/theme button reset styles that apply red background */
.mp-pricecalc-form button.mp-pricecalc-option-card,
.mp-pricecalc-form button.mp-pricecalc-option-button,
.mp-pricecalc-form [type="button"].mp-pricecalc-option-card,
.mp-pricecalc-form [type="button"].mp-pricecalc-option-button {
	background-color: var(--mp-white) !important;
	background: var(--mp-white) !important;
	color: var(--mp-black) !important;
}

.mp-pricecalc-form button.mp-pricecalc-option-card:hover,
.mp-pricecalc-form button.mp-pricecalc-option-card:focus,
.mp-pricecalc-form button.mp-pricecalc-option-card:active,
.mp-pricecalc-form button.mp-pricecalc-option-button:hover,
.mp-pricecalc-form button.mp-pricecalc-option-button:focus,
.mp-pricecalc-form button.mp-pricecalc-option-button:active,
.mp-pricecalc-form [type="button"].mp-pricecalc-option-card:hover,
.mp-pricecalc-form [type="button"].mp-pricecalc-option-card:focus,
.mp-pricecalc-form [type="button"].mp-pricecalc-option-card:active,
.mp-pricecalc-form [type="button"].mp-pricecalc-option-button:hover,
.mp-pricecalc-form [type="button"].mp-pricecalc-option-button:focus,
.mp-pricecalc-form [type="button"].mp-pricecalc-option-button:active {
	background-color: var(--mp-white) !important;
	background: var(--mp-white) !important;
	color: var(--mp-black) !important;
	box-shadow: none !important;
	text-shadow: none !important;
	transform: none !important;
}

/* Remove any overlay effects from theme or browser defaults */
.mp-pricecalc-option-card,
.mp-pricecalc-option-button {
	box-shadow: none !important;
	text-shadow: none !important;
}

.mp-pricecalc-option-card:hover,
.mp-pricecalc-option-button:hover {
	box-shadow: none !important;
	text-shadow: none !important;
	transform: none !important;
}

/* Design Tokens */
:root {
	--mp-orange: #EF5C33;
	--mp-black: #141414;
	--mp-grey-01: #363636;
	--mp-white: #FFFFFF;
	--mp-grey-03: #E4E4E4;
	--mp-grey-02: #8E8E8E;
	--mp-grey-05: #FAFAFA;
}

/* Base Styles */
.mp-pricecalc-form {
	margin: 0 auto;
	box-shadow: none !important;
	border: none !important;
	border-radius: 0;
	overflow: visible;
	background: transparent;
	font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	position: relative;
}

/* White Card Container for Front Page (matches Figma design) */
.mp-pricecalc-form-container {
	background: var(--mp-white);
	border: 1px solid var(--mp-grey-03);
	border-radius: 8px;
	overflow: hidden;
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}

/* Header */
.mp-pricecalc-header {
	padding: 64px 24px;
	border-bottom: 1px solid var(--mp-grey-03);
}

.mp-pricecalc-logo {
	margin-bottom: 40px;
}

.mp-pricecalc-title-section {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.mp-pricecalc-title {
	font-size: 48px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--mp-black);
	margin: 0;
	letter-spacing: -1.92px;
	flex: 1;
}

.mp-pricecalc-description {
	font-size: 21px;
	line-height: 28px;
	color: var(--mp-grey-01);
	margin: 0;
	letter-spacing: -0.42px;
	max-width: 652px;
}

/* Form Container - Content Area */
.mp-pricecalc-form-container .mp-pricecalc-step-content {
	padding: 40px 24px 24px 24px; /* Top: 40px, sides/bottom: 24px */
	background: var(--mp-white);
}

/* Selected Values Display */
.mp-pricecalc-selected-values {
	display: flex;
	justify-content: flex-end; /* Align to the right */
	align-items: center;
	gap: 4px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.28px;
}

.mp-pricecalc-selected-label {
	color: var(--mp-black);
}

.mp-pricecalc-selected-text {
	color: var(--mp-grey-02);
}

.mp-pricecalc-selected-text.has-selection {
	color: var(--mp-orange);
}

.mp-pricecalc-selected-text .separator {
	margin: 0 4px;
	color: var(--mp-orange);
}

/* Step Content */
.mp-pricecalc-step-content {
	min-height: 352px;
	/* Remove padding here - it's now on the container */
}

.mp-pricecalc-step-header {
	margin-bottom: 24px;
}

/* Hide step title on first step (only show description/question) */
.mp-pricecalc-step[data-step="1"] .mp-pricecalc-step-title {
	display: none;
}

.mp-pricecalc-step-title {
	font-size: 32px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--mp-black);
	margin: 0 0 24px 0;
	letter-spacing: -0.64px;
}

.mp-pricecalc-step-description {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--mp-black);
	margin: 0;
	letter-spacing: -0.36px;
}

/* Options Grid (for cards) */
.mp-pricecalc-options-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

/* Services grid: flexbox with fixed-width cards (matches Figma design) */
.mp-pricecalc-services-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}

/* Service cards: fixed width as per Figma design (305px) */
.mp-pricecalc-services-grid .mp-pricecalc-option-card {
	width: 305px;
	flex: 0 0 305px;
	min-width: 0;
}

/* Types grid: flex layout with wrapping */
.mp-pricecalc-types-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Type cards have different layout - image on top, title below */
.mp-pricecalc-type-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch;
	min-width: 0;
	overflow: hidden;
	height: 205px; /* Fixed height as per Figma */
	padding: 16px;
	gap: 16px; /* Space between image and title section */
	border: 1px solid var(--mp-grey-03);
	border-radius: 8px;
	background: var(--mp-white) !important;
	background-color: var(--mp-white) !important;
	cursor: pointer;
	transition: border-color 0.2s;
	text-align: left;
	position: relative;
	appearance: none;
	-webkit-appearance: none;
	text-decoration: none;
	outline: none;
	color: inherit !important;
	box-sizing: border-box;
}

/* Image container takes up flex space */
.mp-pricecalc-type-card .mp-pricecalc-option-image {
	width: 100% !important;
	flex: 1 0 0 !important; /* Take up available vertical space (flex: 1 0 0 matches Figma) */
	min-height: 0 !important;
	margin: 0 !important;
	position: relative !important;
	overflow: hidden !important;
	border-radius: 4px;
	box-sizing: border-box !important;
}

.mp-pricecalc-type-card .mp-pricecalc-option-image img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.mp-pricecalc-type-card .mp-pricecalc-option-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0; /* Don't shrink the header */
	width: 100%;
	gap: 8px; /* Space between title and checkbox */
}

.mp-pricecalc-type-card .mp-pricecalc-option-title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.28px;
	color: var(--mp-black);
	margin: 0;
	text-align: left;
	flex: 1;
	min-width: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Option Cards */
.mp-pricecalc-option-card {
	display: flex;
	flex-direction: row; /* Changed to row for service cards */
	align-items: flex-start;
	padding: 16px;
	border: 1px solid var(--mp-grey-03);
	border-radius: 8px;
	background: var(--mp-white) !important;
	background-color: var(--mp-white) !important;
	cursor: pointer;
	transition: border-color 0.2s;
	text-align: left;
	position: relative;
	/* Remove any default button/link styles */
	appearance: none;
	-webkit-appearance: none;
	text-decoration: none;
	outline: none;
	color: inherit !important;
	gap: 8px; /* Space between image and content */
}

/* Service cards: image on left, content on right - FORCE row layout */
.mp-pricecalc-services-grid .mp-pricecalc-option-card {
	flex-direction: row !important;
	align-items: flex-start !important;
}

/* Ensure service cards content layout is correct */
.mp-pricecalc-services-grid .mp-pricecalc-option-card .mp-pricecalc-option-image {
	flex-shrink: 0 !important;
	width: 54px !important;
	height: 54px !important;
	margin-bottom: 0 !important;
	margin-right: 0 !important;
	order: 1; /* Image first (left) */
}

.mp-pricecalc-services-grid .mp-pricecalc-option-card .mp-pricecalc-option-content {
	flex: 1 !important;
	min-width: 0 !important;
	order: 2; /* Content second (right) */
	overflow: hidden; /* Ensure content doesn't overflow */
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Type cards: image on top (keep column layout) - DUPLICATE REMOVED */

/* Override Elementor/theme button styles */
.mp-pricecalc-option-card:hover,
.mp-pricecalc-option-card:focus,
.mp-pricecalc-option-card:active,
.mp-pricecalc-option-card:focus-visible {
	border-color: var(--mp-grey-02) !important;
	/* Ensure no background overlay on hover/focus - override theme styles */
	background: var(--mp-white) !important;
	background-color: var(--mp-white) !important;
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transform: none !important;
}

.mp-pricecalc-option-card:focus {
	outline: 2px solid var(--mp-grey-03);
	outline-offset: 2px;
}

.mp-pricecalc-option-card.selected {
	border-color: var(--mp-grey-02) !important;
	background: var(--mp-white) !important;
	background-color: var(--mp-white) !important;
}

/* Remove any overlay effects */
.mp-pricecalc-option-card::before,
.mp-pricecalc-option-card::after {
	display: none !important;
	content: none !important;
}

.mp-pricecalc-option-card.selected {
	border-color: var(--mp-grey-02);
}

.mp-pricecalc-option-image {
	width: 54px;
	height: 54px;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
}

/* Service cards: image on left, no bottom margin */
.mp-pricecalc-services-grid .mp-pricecalc-option-image {
	margin-bottom: 0;
	margin-right: 0;
}

/* Type cards: image on top, takes available space (NOT square) */
.mp-pricecalc-types-grid .mp-pricecalc-option-image {
	width: 100% !important;
	flex: 1 0 0 !important; /* Take up available vertical space */
	min-height: 0;
	margin-bottom: 0 !important; /* Gap handled by parent card */
	position: relative !important;
	overflow: hidden !important;
	border-radius: 4px;
}

.mp-pricecalc-option-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Type card images must be absolutely positioned to fill container */
.mp-pricecalc-type-card .mp-pricecalc-option-image img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

/* Remove any image overlay effects on hover */
.mp-pricecalc-option-card:hover .mp-pricecalc-option-image::before,
.mp-pricecalc-option-card:hover .mp-pricecalc-option-image::after {
	display: none;
}

.mp-pricecalc-option-card:hover .mp-pricecalc-option-image img {
	opacity: 1;
	filter: none;
}

.mp-pricecalc-option-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0; /* Allow content to shrink */
	overflow: hidden; /* Prevent text overflow */
}

.mp-pricecalc-option-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.mp-pricecalc-option-title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--mp-black);
	margin: 0;
	letter-spacing: -0.28px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.mp-pricecalc-option-description {
	font-size: 12px;
	line-height: 1.4;
	color: var(--mp-grey-02);
	margin: 0;
	letter-spacing: -0.24px;
	word-wrap: break-word !important;
	overflow-wrap: break-word !important;
	hyphens: auto;
	white-space: normal !important; /* Ensure text wraps */
}


.mp-pricecalc-option-checkbox {
	width: 20px;
	height: 20px;
	border: 1px solid var(--mp-grey-03);
	border-radius: 10px;
	background: var(--mp-white);
	flex-shrink: 0;
	position: relative;
}

.mp-pricecalc-option-card.selected .mp-pricecalc-option-checkbox {
	background: var(--mp-orange);
	border-color: var(--mp-orange);
}

.mp-pricecalc-option-card.selected .mp-pricecalc-option-checkbox::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8.648px;
	height: 6.673px;
	background-image: url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.5L3.5 6L8 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

/* Type Cards (different layout) - REMOVED DUPLICATE, using rules above */

/* Ensure all type card images fill available space (NOT square) */
.mp-pricecalc-types-grid .mp-pricecalc-option-image {
	width: 100% !important;
	flex: 1 0 0 !important; /* Take up available vertical space */
	min-height: 0;
	position: relative !important;
	overflow: hidden !important;
}

.mp-pricecalc-types-grid .mp-pricecalc-option-image img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.mp-pricecalc-type-card .mp-pricecalc-option-header {
	margin-top: auto;
}

/* Options List (for buttons) - Single row for Size and Location */
.mp-pricecalc-options-list {
	display: flex;
	flex-direction: row; /* Changed to row for single horizontal layout */
	gap: 16px;
	flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.mp-pricecalc-option-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border: 1px solid var(--mp-grey-03);
	border-radius: 8px;
	background: var(--mp-white) !important;
	background-color: var(--mp-white) !important;
	cursor: pointer;
	transition: border-color 0.2s;
	text-align: left;
	flex: 0 0 calc((100% - 48px) / 4); /* Fixed width: 4 buttons per row with 3 gaps */
	width: calc((100% - 48px) / 4); /* Same width for all buttons */
	min-width: 0;
	margin-bottom: 0;
	/* Remove any default button styles */
	appearance: none;
	-webkit-appearance: none;
	text-decoration: none;
	outline: none;
	color: inherit !important;
}

/* Override Elementor/theme button styles */
.mp-pricecalc-option-button:hover,
.mp-pricecalc-option-button:focus,
.mp-pricecalc-option-button:active,
.mp-pricecalc-option-button:focus-visible {
	border-color: var(--mp-grey-02) !important;
	background: var(--mp-white) !important;
	background-color: var(--mp-white) !important;
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transform: none !important;
}

.mp-pricecalc-option-button:focus {
	outline: 2px solid var(--mp-grey-03);
	outline-offset: 2px;
}

.mp-pricecalc-option-button.selected {
	border-color: var(--mp-grey-02) !important;
	background: var(--mp-white) !important;
	background-color: var(--mp-white) !important;
}

/* All buttons have same border radius (horizontal layout) */
.mp-pricecalc-option-button:not(:last-child) {
	margin-bottom: 0;
	border-bottom: 1px solid var(--mp-grey-03);
	border-radius: 8px;
}

.mp-pricecalc-option-button:first-child {
	border-radius: 8px;
}

.mp-pricecalc-option-button:last-child {
	border-radius: 8px;
}

.mp-pricecalc-option-button:hover {
	border-color: var(--mp-grey-02);
}

.mp-pricecalc-option-button.selected {
	border-color: var(--mp-grey-02);
}

.mp-pricecalc-option-button-text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--mp-black);
	letter-spacing: -0.28px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal; /* Allow text to wrap */
	flex: 1; /* Take available space */
	min-width: 0; /* Allow shrinking */
}

/* Contact Form - Single row layout */
.mp-pricecalc-contact-form {
	display: flex;
	flex-direction: row; /* Single row of fields */
	gap: 16px;
	flex-wrap: wrap; /* Allow wrapping on smaller screens */
	align-items: flex-start;
}

.mp-pricecalc-input-group {
	flex: 1 0 0; /* Allow inputs to grow equally */
	min-width: 200px; /* Minimum width for inputs */
}

/* Checkboxes and contact info should be full width below */
.mp-pricecalc-checkbox-group,
.mp-pricecalc-contact-info {
	width: 100%;
	flex: 1 1 100%;
}

.mp-pricecalc-input {
	width: 100%;
	height: 48px;
	padding: 13px 16px;
	border: 1px solid var(--mp-grey-03);
	border-radius: 4px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--mp-black);
	font-family: inherit;
	transition: border-color 0.2s;
}

.mp-pricecalc-input:focus {
	outline: none;
	border-color: var(--mp-black);
}

.mp-pricecalc-input::placeholder {
	color: var(--mp-grey-02);
}

/* Checkboxes */
.mp-pricecalc-checkbox-group {
	margin-top: 8px;
}

.mp-pricecalc-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	font-size: 12px;
	line-height: 1.4;
	color: var(--mp-grey-02);
	letter-spacing: -0.24px;
}

.mp-pricecalc-checkbox-label input[type="checkbox"] {
	display: none;
}

.mp-pricecalc-checkbox-custom {
	width: 20px;
	height: 20px;
	border: 1px solid var(--mp-grey-03);
	border-radius: 10px;
	background: var(--mp-white);
	flex-shrink: 0;
	position: relative;
	margin-top: 2px;
}

.mp-pricecalc-checkbox-label input[type="checkbox"]:checked + .mp-pricecalc-checkbox-custom {
	background: var(--mp-orange);
	border-color: var(--mp-orange);
}

.mp-pricecalc-checkbox-label input[type="checkbox"]:checked + .mp-pricecalc-checkbox-custom::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8.648px;
	height: 6.673px;
	background-image: url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.5L3.5 6L8 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.mp-pricecalc-link {
	color: var(--mp-orange);
	text-decoration: underline;
	text-underline-position: from-font;
	text-decoration-skip-ink: none;
}

.mp-pricecalc-contact-info {
	margin-top: 10px;
}

.mp-pricecalc-contact-info p {
	margin: 0;
	font-size: 14px;
	line-height: 28px;
	color: var(--mp-orange);
	text-decoration: underline;
}

/* Footer */
.mp-pricecalc-footer {
	padding: 24px;
	border-top: 1px solid var(--mp-grey-03);
	background: var(--mp-white);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mp-pricecalc-navigation {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
}

.mp-pricecalc-back-btn {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	color: var(--mp-black) !important;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.28px;
	padding: 0;
	text-decoration: none;
	transition: opacity 0.2s;
}

/* Override Elementor button styles for back button */
.mp-pricecalc-form button.mp-pricecalc-back-btn,
.mp-pricecalc-form [type="button"].mp-pricecalc-back-btn {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--mp-black) !important;
}

.mp-pricecalc-form button.mp-pricecalc-back-btn:hover,
.mp-pricecalc-form button.mp-pricecalc-back-btn:focus,
.mp-pricecalc-form button.mp-pricecalc-back-btn:active,
.mp-pricecalc-form [type="button"].mp-pricecalc-back-btn:hover,
.mp-pricecalc-form [type="button"].mp-pricecalc-back-btn:focus,
.mp-pricecalc-form [type="button"].mp-pricecalc-back-btn:active {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--mp-black) !important;
	opacity: 0.7;
	text-decoration: none !important;
	box-shadow: none !important;
	transform: none !important;
}

.mp-pricecalc-back-btn-old {
	background: none;
	border: none;
	color: var(--mp-black);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	padding: 0;
	letter-spacing: -0.28px;
}

.mp-pricecalc-back-btn:hover {
	text-decoration: underline;
}

.mp-pricecalc-step-indicator {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.mp-pricecalc-step-info {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.28px;
}

.mp-pricecalc-step-number {
	color: var(--mp-grey-02);
}

.mp-pricecalc-step-name {
	color: var(--mp-black);
}

.mp-pricecalc-steps {
	display: flex;
	gap: 16px;
	align-items: center;
}

.mp-pricecalc-step-dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid var(--mp-grey-03);
	background: var(--mp-grey-05);
	transition: all 0.2s;
}

.mp-pricecalc-step-dot.active {
	background: var(--mp-orange);
	border-color: var(--mp-orange);
}

.mp-pricecalc-step-dot.completed {
	background: var(--mp-orange);
	border-color: var(--mp-orange);
	position: relative;
}

.mp-pricecalc-step-dot.completed::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8.648px;
	height: 6.673px;
	background-image: url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.5L3.5 6L8 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

/* Buttons */
.mp-pricecalc-submit-container,
.mp-pricecalc-submit-container-top {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-bottom: 24px; /* Space before separator */
}

.mp-pricecalc-submit-container-top {
	margin-top: 24px; /* Space from content above */
}

.mp-pricecalc-next-btn,
.mp-pricecalc-submit-btn {
	background: var(--mp-black) !important;
	background-color: var(--mp-black) !important;
	color: var(--mp-white) !important;
	border: none !important;
	padding: 16px 24px;
	border-radius: 44px;
	font-size: 16px;
	font-weight: 500;
	line-height: 19px;
	letter-spacing: -0.32px;
	cursor: pointer;
	transition: opacity 0.2s;
}

/* Hide "Næste" button by default (auto-advance on all steps) */
.mp-pricecalc-next-btn {
	display: none !important;
}

.mp-pricecalc-next-btn:hover,
.mp-pricecalc-submit-btn:hover {
	opacity: 0.9;
}

.mp-pricecalc-next-btn:disabled,
.mp-pricecalc-submit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Messages */
.mp-pricecalc-message {
	padding: 16px;
	margin-top: 16px;
	border-radius: 8px;
	text-align: center;
}

.mp-pricecalc-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.mp-pricecalc-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Responsive Design */
/* Services grid: fixed width cards, wrap naturally */
/* Cards are 305px wide, so they'll naturally wrap based on container width */
@media (max-width: 900px) {
	/* On smaller screens, allow cards to be full width or adjust as needed */
	.mp-pricecalc-services-grid .mp-pricecalc-option-card {
		width: 100%;
		flex: 0 0 100%;
	}
}

/* Types grid: fixed width cards that wrap naturally */
.mp-pricecalc-types-grid {
	flex-wrap: wrap; /* Allow wrapping */
}

/* Fixed width cards - will wrap naturally based on container width */
.mp-pricecalc-types-grid .mp-pricecalc-type-card {
	width: 190px;
	flex: 0 0 190px; /* Fixed width, no grow/shrink */
	min-width: 0;
}

/* For smaller screens: allow wrapping */
@media (max-width: 900px) {
	.mp-pricecalc-options-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.mp-pricecalc-types-grid {
		flex-wrap: wrap; /* Allow wrapping on smaller screens */
	}
	
	.mp-pricecalc-types-grid .mp-pricecalc-type-card {
		flex: 0 0 calc(50% - 8px); /* 2 columns with gap */
	}

	.mp-pricecalc-title-section {
		flex-direction: column;
		gap: 24px;
	}

	.mp-pricecalc-description {
		max-width: 100%;
	}
}

@media (max-width: 767px) {
	.mp-pricecalc-form {
		border-radius: 0;
		max-width: 100%;
	}

	.mp-pricecalc-header {
		padding: 40px 16px;
	}

	.mp-pricecalc-title {
		font-size: 32px;
		letter-spacing: -0.64px;
	}

	.mp-pricecalc-description {
		font-size: 16px;
		line-height: 24px;
	}

	.mp-pricecalc-form-container {
		padding: 24px 16px;
	}

	.mp-pricecalc-options-grid {
		grid-template-columns: 1fr;
	}
	
	/* Types: 1 column on mobile */
	.mp-pricecalc-types-grid .mp-pricecalc-type-card {
		flex: 0 0 100%; /* Full width on mobile */
	}
	
	/* Size and Location: stack vertically on mobile */
	.mp-pricecalc-options-list {
		flex-direction: column;
	}
	
	.mp-pricecalc-option-button {
		width: 100%;
		flex: 1 1 100%;
	}

	/* Contact form: stack vertically on mobile */
	.mp-pricecalc-contact-form {
		flex-direction: column;
	}
	
	.mp-pricecalc-input-group {
		width: 100%;
		flex: 1 1 100%;
	}

	.mp-pricecalc-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.mp-pricecalc-navigation {
		flex-direction: column;
		align-items: stretch;
	}

	.mp-pricecalc-step-indicator {
		margin-left: 0;
		justify-content: space-between;
		width: 100%;
	}

	.mp-pricecalc-submit-container {
		width: 100%;
	}

	.mp-pricecalc-next-btn,
	.mp-pricecalc-submit-btn {
		width: 100%;
	}

	/* Prevent zoom on input focus (iOS) */
	.mp-pricecalc-input {
		font-size: 16px;
	}

	/* Adjust step content min-height for mobile */
	.mp-pricecalc-step-content {
		min-height: auto;
	}
}


