/* Owner Registration Modal Styles */
.owner-registration-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.owner-registration-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
}

.owner-registration-modal__content {
	position: relative;
	top: 54%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 500px;
	max-height: 80vh;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	z-index: 1;
}

.owner-registration-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid #e0e0e0;
	background: var(--color_htag);
}

.owner-registration-modal__title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: white;
}

.owner-registration-modal__close {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: white;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.owner-registration-modal__close:hover {
	color: #000;
}

.owner-registration-form {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

.owner-registration-form__field {
	margin-bottom: 20px;
}

.owner-registration-form__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.owner-registration-form__label .required {
	color: #e74c3c;
	margin-left: 4px;
}

.owner-registration-form__input {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background-color: #fff;
	border: 2px solid gray !important;
}

.owner-registration-form__input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.owner-registration-form__input.error {
	border-color: #e74c3c;
}

.owner-registration-form__input.error:focus {
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Custom animated select (registration area) */
.owner-registration-select {
	position: relative;
	width: 100%;
}
.owner-registration-select__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	text-align: left;
	cursor: pointer;
	border: 2px solid gray;
	border-radius: 4px;
	background-color: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.owner-registration-select__trigger:hover,
.owner-registration-select.is-open .owner-registration-select__trigger {
	border-color: #0073aa;
}
.owner-registration-select__value {
	flex: 1;
	color: #333;
}
.owner-registration-select__value.placeholder {
	color: #999;
}
.owner-registration-select__arrow {
	font-size: 10px;
	margin-left: 8px;
	transition: transform 0.25s ease;
}
.owner-registration-select.is-open .owner-registration-select__arrow {
	transform: rotate(180deg);
}
.owner-registration-select__options {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	z-index: 10;
}
.owner-registration-select.is-open .owner-registration-select__options {
	max-height: 280px;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	overflow-y: auto;
}
.owner-registration-select__option {
	padding: 12px 16px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.owner-registration-select__option:hover {
	background-color: #f0f7fc;
}
.owner-registration-select__option.is-selected {
	background-color: #e8f4fc;
	font-weight: 500;
}

.owner-registration-form__actions {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.owner-registration-form__submit {
	width: 100%;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background-color: #0073aa;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.owner-registration-form__submit:hover {
	background-color: #005a87;
}

.owner-registration-form__submit:active {
	transform: scale(0.98);
}

.owner-registration-form__submit:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

/* Responsive Design */
@media (max-width: 600px) {
	.owner-registration-modal__content {
		width: 95%;
		max-height: 90vh;
	}
	
	.owner-registration-modal__header {
		padding: 16px 20px;
	}
	
	.owner-registration-modal__title {
		font-size: 20px;
	}
	
	.owner-registration-form {
		padding: 20px;
	}
	
	.owner-registration-form__input {
		font-size: 16px; /* Prevents zoom on iOS */
	}
}

/* Animation for modal appearance */
@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes modalSlideUp {
	from {
		opacity: 0;
		transform: translate(-50%, -45%);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

.owner-registration-modal__overlay {
	animation: modalFadeIn 0.3s ease;
}

.owner-registration-modal__content {
	animation: modalSlideUp 0.3s ease;
}

