/**
 * Hegau24 Registration
 *
 * Registration modal and account type selector.
 */

/* ---------------------------------------------------------
   Registration modal
   --------------------------------------------------------- */

#user_register_modal.hp-modal {
	width: min(900px, calc(100vw - 32px));
	max-width: 900px;
	padding: 0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

#user_register_modal .hp-form {
	width: 100%;
	padding: 32px 36px 30px;
	box-sizing: border-box;
}

#user_register_modal .hp-modal__title {
	margin: 0 0 28px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
	color: #172033;
}

/* ---------------------------------------------------------
   Form messages
   --------------------------------------------------------- */

#user_register_modal .hp-form__messages {
	margin-bottom: 24px;
	border-radius: 10px;
}

/* ---------------------------------------------------------
   Account type field
   --------------------------------------------------------- */

#user_register_modal .hp-form__field--radio {
	margin-bottom: 28px;
}

#user_register_modal .hp-form__field--radio > .hp-form__label {
	display: block;
	margin-bottom: 10px;
	font-size: 24px;
	line-height: 1.35;
	font-weight: 700;
	color: #172033;
}

#user_register_modal .hp-form__field--radio > .hp-form__label:not(:last-child) {
	margin-bottom: 4px;
}

/* Account type description */
#user_register_modal .hp-form__field--radio > .hp-field__description {
        margin-top: 4px;
        font-size: 18px;
        line-height: 1.35;
}


/* Remove default field spacing around radio list */

#user_register_modal .hp-field--radio {
	margin: 0;
	padding: 0;
	list-style: none;
}


/* Account type cards */

#user_register_modal .hp-field--radio > ul {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
margin: 0;
padding: 0;
list-style: none;
}

#user_register_modal .hp-field--radio > ul > li {
position: relative;
display: grid;
grid-template-columns: 22px 1fr;
column-gap: 12px;
align-content: start;
min-height: 138px;
margin: 0;
padding: 20px;
box-sizing: border-box;
border: 2px solid #e4e8ef;
border-radius: 14px;
background: #ffffff;
cursor: pointer;
transition:
0.18s ease,
d-color 0.18s ease,
0.18s ease;
}

/* Label becomes transparent grid contents */
#user_register_modal .hp-field--radio > ul > li > label {
display: contents;
}

/* Custom radio */
#user_register_modal .hp-field--radio > ul > li > label > input[type="radio"] {
appearance: none;
-webkit-appearance: none;
position: relative;
display: block;
grid-column: 1;
grid-row: 1;
width: 20px;
height: 20px;
margin: 2px 0 0;
border: 2px solid #aeb8c7;
border-radius: 50%;
background: #ffffff;
box-sizing: border-box;
cursor: pointer;
transition:
0.18s ease,
0.18s ease,
d-color 0.18s ease;
}

/* Selected radio */
#user_register_modal .hp-field--radio > ul > li > label > input[type="radio"]:checked {
border-color: #1976d2;
background: #1976d2;
box-shadow: inset 0 0 0 5px #ffffff;
}

/* Card title */
#user_register_modal .hp-field--radio > ul > li > label > span {
grid-column: 2;
grid-row: 1;
display: flex;
align-items: center;
min-height: 24px;
padding: 0;
font-size: 17px;
line-height: 1.35;
font-weight: 700;
color: #172033;
}

/* User / company icon */
#user_register_modal .hp-field--radio > ul > li > label > span::before {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 48px;
width: 48px;
height: 48px;
margin-right: 12px;
border-radius: 10px;
background: #eaf3ff;
color: #1976d2;
font-family: "Font Awesome 5 Free";
font-size: 30px;
font-weight: 900;
box-sizing: border-box;
}

/* User icon */
#user_register_modal .hp-field--radio > ul > li:first-child > label > span::before {
content: "\f007";
}

/* Company icon */
#user_register_modal .hp-field--radio > ul > li:nth-child(2) > label > span::before {
content: "\f1ad";
}

/* Card description */
#user_register_modal .hp-field--radio > ul > li > p {
grid-column: 2;
grid-row: 2;
margin: 0;
padding: 0;
font-size: 14px;
line-height: 1.5;
font-weight: 400;
color: #667085;
}

/* Hover */
#user_register_modal .hp-field--radio > ul > li:hover {
border-color: #b8c7df;
box-shadow: 0 6px 18px rgba(30, 70, 120, 0.08);
}

/* Selected card */
#user_register_modal .hp-field--radio > ul > li:has(input[type="radio"]:checked) {
border-color: #1976d2;
background: #f2f7ff;
box-shadow: 0 6px 20px rgba(25, 118, 210, 0.12);
}

#user_register_modal .hp-field--radio > ul > li:has(input[type="radio"]:checked) > label > span {
color: #1468bd;
}

#user_register_modal .hp-field--radio > ul > li:has(input[type="radio"]:checked) > label > span::before {
background: #dcecff;
color: #1468bd;
}

#user_register_modal .hp-field--radio > ul > li:has(input[type="radio"]:checked) > p {
color: #526b87;
}

/* ---------------------------------------------------------
   Regular fields
   --------------------------------------------------------- */

#user_register_modal .hp-form__field:not(.hp-form__field--radio) {
	margin-bottom: 20px;
}

#user_register_modal .hp-form__field:not(.hp-form__field--radio) .hp-field__label {
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 600;
	color: #344054;
}

#user_register_modal .hp-form__field:not(.hp-form__field--radio) input {
	min-height: 48px;
	box-sizing: border-box;
	border: 1px solid #d9dee7;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: none;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

#user_register_modal .hp-form__field:not(.hp-form__field--radio) input:focus {
	border-color: #1976d2;
	box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
	outline: none;
}

/* ---------------------------------------------------------
   Form button
   --------------------------------------------------------- */

#user_register_modal .hp-form__button {
	min-height: 50px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
}

/* ---------------------------------------------------------
   Footer / login link
   --------------------------------------------------------- */

#user_register_modal .hp-form__footer,
#user_register_modal .hp-form__actions {
	margin-top: 4px;
}

#user_register_modal .hp-form__action {
	font-size: 14px;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media only screen and (max-width: 767px) {

	#user_register_modal.hp-modal {
		width: calc(100vw - 20px);
		max-width: none;
		border-radius: 16px;
	}

	#user_register_modal .hp-form {
		padding: 26px 20px 24px;
	}

	#user_register_modal .hp-modal__title {
		margin-bottom: 24px;
		font-size: 24px;
	}

	#user_register_modal .hp-field--radio > ul {
		grid-template-columns: 1fr;
	}

	#user_register_modal .hp-field--radio > ul > li > label {
		min-height: auto;
		padding: 18px;
	}

	#user_register_modal .hp-form__field--radio > .hp-form__label {
		font-size: 17px;
	}
}

/* ---------------------------------------------------------
   Registration fields layout
   --------------------------------------------------------- */

#user_register_modal .hp-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 0;
}

/* Account type stays full width */
#user_register_modal .hp-form__field--radio {
	grid-column: 1 / -1;
}

/* Username and email share one row */
#user_register_modal .hp-form__field--text {
	grid-column: 1;
}

#user_register_modal .hp-form__field--email {
	grid-column: 2;
}

/* Password takes the full width */
#user_register_modal .hp-form__field--password {
	grid-column: 1 / -1;
}

/* Mobile */
@media only screen and (max-width: 767px) {

	#user_register_modal .hp-form__fields {
		grid-template-columns: 1fr;
		column-gap: 0;
	}

	#user_register_modal .hp-form__field--radio,
	#user_register_modal .hp-form__field--text,
	#user_register_modal .hp-form__field--email,
	#user_register_modal .hp-form__field--password {
		grid-column: 1;
	}
}

/* Registration fields: input before description */
#user_register_modal .hp-form__field--text,
#user_register_modal .hp-form__field--email,
#user_register_modal .hp-form__field--password {
	display: flex;
	flex-direction: column;
}

/* Label */
#user_register_modal .hp-form__field--text > label,
#user_register_modal .hp-form__field--email > label,
#user_register_modal .hp-form__field--password > label {
	order: 1;
}

/* Input */
#user_register_modal .hp-form__field--text > input,
#user_register_modal .hp-form__field--email > input,
#user_register_modal .hp-form__field--password > input {
	order: 2;
}

/* Description */
#user_register_modal .hp-form__field--text > .hp-field__description,
#user_register_modal .hp-form__field--email > .hp-field__description,
#user_register_modal .hp-form__field--password > .hp-field__description {
	order: 3;
	margin-top: 8px;
}

/* Required field marker */
#user_register_modal .hp-form__field--text > label > span::after,
#user_register_modal .hp-form__field--email > label > span::after,
#user_register_modal .hp-form__field--password > label > span::after {
	content: " *";
	color: #e53935;
	font-weight: 700;
}

/* User icon */
#user_register_modal .hp-form__field--text > input {
	padding-left: 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.2 3.6-7 8-7s8 2.8 8 7'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: 16px center !important;
	background-size: 22px 22px !important;
}

/* E-mail icon */
#user_register_modal .hp-form__field--email > input {
	padding-left: 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: 16px center !important;
	background-size: 22px 22px !important;
}

/* Password lock icon */
#user_register_modal .hp-form__field--password > input {
	padding-left: 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: 16px center !important;
	background-size: 22px 22px !important;
}

/* Custom registration title */


/* Registration welcome header */
#user_register_modal .hegau24-registration-header {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto auto;
    column-gap: 40px;
    row-gap: 0;
    align-items: start;
    margin: 0 0 8px;
    padding: 18px 36px 0;
    box-sizing: border-box;
}

#user_register_modal .hegau24-registration-header__brand {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #17345a;
}

#user_register_modal .hegau24-registration-header__brand span {
    color: #17345a;
}

#user_register_modal .hegau24-registration-header__brand strong {
    color: #1976d2;
    font-weight: 700;
}

#user_register_modal .hegau24-registration-header__tagline {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    transform: none;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 500;
    color: #17345a;
}

#user_register_modal .hegau24-registration-header__welcome {
    grid-column: 2;
    grid-row: 1;
    margin: 28px 0 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    color: #17345a;
    text-align: right;
}

#user_register_modal .hegau24-registration-header__description {
    grid-column: 2;
    grid-row: 2;
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    font-weight: 400;
    color: #71829a;
    text-align: right;
}

#user_register_modal .hegau24-registration-title {
    margin: 42px 36px 28px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #172033;
}

@media (max-width: 700px) {
    #user_register_modal .hegau24-registration-header {
        grid-template-columns: 1fr;
        row-gap: 6px;
        margin-bottom: 12px;
        padding: 0 20px;
    }

    #user_register_modal .hegau24-registration-header__brand {
        grid-column: 1;
        grid-row: auto;
    }

    #user_register_modal .hegau24-registration-header__tagline {
        grid-column: 1;
        grid-row: auto;
        margin-top: 2px;
    }

    #user_register_modal .hegau24-registration-header__welcome {
        grid-column: 1;
        grid-row: auto;
        margin-top: 12px;
        text-align: left;
    }

    #user_register_modal .hegau24-registration-header__description {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
    }

    #user_register_modal .hegau24-registration-title {
        margin: 18px 20px 8px;
    }
}

/* Legal acceptance checkbox */
#user_register_modal .hp-form__field--checkbox {
    grid-column: 1 / -1;
    margin: 4px 0 24px;
}

#user_register_modal .hp-form__field--checkbox > label.hp-field--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

#user_register_modal .hp-form__field--checkbox > label.hp-field--checkbox > input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 2px 0 0;
    padding: 0;
    border: 2px solid #aeb8c7;
    border-radius: 4px;
    background: #ffffff;
    box-sizing: border-box;
    cursor: pointer;
}

#user_register_modal .hp-form__field--checkbox > label.hp-field--checkbox > input[type="checkbox"]:checked {
    border-color: #1976d2;
    background: #1976d2;
    box-shadow: inset 0 0 0 4px #ffffff;
}

#user_register_modal .hp-form__field--checkbox > label.hp-field--checkbox > span {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: #172033;
}

#user_register_modal .hp-form__field--checkbox > label.hp-field--checkbox > span a {
    color: #1976d2;
    text-decoration: none;
}

#user_register_modal .hp-form__field--checkbox > label.hp-field--checkbox > span a:hover {
    text-decoration: underline;
}

/* Compact registration modal spacing */
#user_register_modal .hegau24-registration-title {
    margin-top: 28px;
    margin-bottom: 18px;
}

#user_register_modal .hp-form__field--radio {
    margin-bottom: 18px;
}

#user_register_modal .hp-form__field:not(.hp-form__field--radio) {
    margin-bottom: 14px;
}

#user_register_modal .hp-form__field--checkbox {
    margin-top: 0;
    margin-bottom: 16px;
}

#user_register_modal .hp-form {
    padding-bottom: 20px;
}