﻿.create-account-container, .edit-profile-container {
	display: block;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0;
}

/* Utility classes for dynamic showing/hiding */
.hidden {
	display: none !important;
}

.address-section-padding {
	padding: 0 15px;
}

/* Message styles */
.validation-errors {
	color: var(--color-red);
	background-color: rgba(244, 28, 28, 0.1);
	border: 1px solid rgba(244, 28, 28, 0.3);
	border-radius: 4px;
	padding: 12px;
	margin-bottom: 1rem;
}

.success-message {
	color: var(--color-green-alt);
	background-color: rgba(3, 135, 16, 0.1);
	border: 1px solid rgba(3, 135, 16, 0.3);
	border-radius: 4px;
	padding: 12px;
	margin-bottom: 1rem;
	font-weight: 500;
}

#create-account-form,
#edit-profile-form {
	width: 100%;
}

	#create-account-form .account-container,
	#edit-profile-form .profile-container {
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
	}

	#create-account-form .account-section,
	#edit-profile-form .profile-section {
		background-color: #f6f8f8;
		padding: 24px;
		border-radius: 4px;
		margin-bottom: 24px;
	}

	#create-account-form .form-row,
	#edit-profile-form .form-row {
		display: flex;
		gap: 10px;
	}

		#create-account-form .form-row .form-group,
		#edit-profile-form .form-row .form-group {
			flex: 1;
		}

			#create-account-form .form-row .form-group:has(input[id$="address-city"]),
			#edit-profile-form .form-row .form-group:has(input[id$="address-city"]) {
				flex: 2;
			}

			#create-account-form .form-row .form-group:has(input[id$="address-zip"]),
			#edit-profile-form .form-row .form-group:has(input[id$="address-zip"]) {
				flex: 1;
			}

			#create-account-form .form-row .form-group:has(select[id$="address-country"]),
			#create-account-form .form-row .form-group:has(select[id$="address-state"]),
			#edit-profile-form .form-row .form-group:has(select[id$="address-country"]),
			#edit-profile-form .form-row .form-group:has(select[id$="address-state"]) {
				flex: 1;
			}

	#create-account-form .form-group,
	#edit-profile-form .form-group {
		margin-bottom: 20px;
	}

		#create-account-form .form-group label,
		#edit-profile-form .form-group label {
			display: block;
			margin-bottom: 8px;
			font-weight: 500;
			color: #333;
		}

		#create-account-form .form-group input[type="text"],
		#create-account-form .form-group input[type="password"],
		#create-account-form .form-group select,
		#edit-profile-form .form-group input[type="text"],
		#edit-profile-form .form-group select {
			width: 100%;
			height: 40px;
			padding: 8px 12px;
			border: 1px solid #ddd;
			border-radius: 4px;
			font-size: 14px;
			transition: border-color 0.2s;
		}

			#create-account-form .form-group input[type="text"]:focus,
			#create-account-form .form-group input[type="password"]:focus,
			#create-account-form .form-group select:focus,
			#edit-profile-form .form-group input[type="text"]:focus,
			#edit-profile-form .form-group select:focus {
				border-color: #4CAF50;
				outline: none;
			}

		#create-account-form .form-group.checkbox-group,
		#edit-profile-form .form-group.checkbox-group {
			display: flex;
			align-items: center;
		}

			#create-account-form .form-group.checkbox-group input[type="checkbox"],
			#edit-profile-form .form-group.checkbox-group input[type="checkbox"] {
				margin-right: 8px;
				margin-top: 0;
			}

.create-account-container .form-buttons,
.edit-profile-container .form-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
	padding: 15px 0;
}

#edit-profile-form .checkbox-group label:before {
	background: none;
}

.address-block {
	margin: 10px 0;
	border-top: 1px solid #e0e0e0;
}

#edit-profile .form-row.layout {
	margin-top: 10px;
}

.address-header, .address-preferences {
	margin-top: 10px;
}

@media (min-width: 821px) {
	.form-group.company-section {
		width: 300px;
	}
}

div#company-select-group {
	margin-top: 0;
	width: auto;
}

/* Hide the dropdown caret since it's no longer functional */
#company {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: none;
	padding-right: 12px; /* Remove extra padding that was for the caret */
}

/* validation tooltip CSS */
.tooltip {
	position: absolute;
	background-color: #fff;
	border: 1px solid #dc3545;
	color: #dc3545;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 12px;
	z-index: 1000;
	max-width: 500px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	line-height: 120%;
	pointer-events: none;
	user-select: none; /* Standard */
	-webkit-user-select: none; /* Safari */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer */
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 10px;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-left: 1px solid #dc3545;
    border-top: 1px solid #dc3545;
    transform: rotate(45deg);
}

.form-group {
    position: relative;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding: 15px 0;
}

.checkbox-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 8px;
}

.address-preferences {
	display: flex;
	justify-content: space-between;
	flex-direction: row;
	align-items: center;
}

#create-account-form .checkbox-group label {
	margin-top: 10px !important;
	padding-left: 24px !important;
}

@media screen and (max-width: 768px) {

	section.row.sf-layout--container {
		padding: 0;
	}

	h2 {
		padding: 0 24px;
	}

	.col-md-9.ps-3.sf-layout--gapper.bg-white {
		padding: 0 !important;
	}

	h3, p {
		padding: 0 20px;
	}

	h3 {
		padding-top: 20px;
	}

	.create-account-container,
	.edit-profile-container {
		padding: 10px 0 0;
		margin: 0;
		width: 100%;lpful on this stuff, but some of it 
		max-width: 100%;
	}

	.edit-profile-container {
		padding-bottom: 20px;
	}

	#create-account-form,
	#edit-profile-form {
		width: 100%;
		margin: 0;
	}

		#create-account-form .account-section,
		#edit-profile-form .profile-section {
			padding: 20px;
			margin-bottom: 15px;
			border-radius: 0;
			width: 100%;
		}

	.form-row {
		flex-direction: column;
		gap: 1rem;
	}

	.form-group {
		width: 100%;
		margin: 0;
	}

	.layout__section--33 {
		width: 100%;
	}

	.form-buttons {
		justify-content: flex-end;
		flex-direction: row;
	}

	input[type="text"],
	select {
		height: 44px;
		font-size: 16px;
	}

	.checkbox-group {
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-bottom: 0 !important;
		padding: 0 !important;
	}

		.checkbox-group input[type="radio"],
		.checkbox-group input[type="checkbox"] {
			width: 20px;
			height: 20px;
			margin-right: 8px;
		}

		.checkbox-group label {
			margin-bottom: 0 !important;
			padding: 0;
		}

	.address-block h5 {
		font-size: 1.1rem;
		margin-bottom: 10px;
	}

	.create-account-container .form-buttons,
	.edit-profile-container .form-buttons {
		justify-content: center;
		gap: 10px;
		padding: 0 15px;
	}

	#edit-profile-form .form-group.checkbox-group {
		display: flex;
		align-items: center;
		flex-direction: row;
	}

	.address-preferences {
		margin-top: 0px;
		margin-bottom: 24px;
	}

	.add-address-section {
		cursor:pointer;
	}
}
