/**
 * Grocery Delivery Ops - Rider Registration styles.
 * Every selector scoped under .gdo-rider-registration.
 */

.gdo-rider-registration {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
	max-width: 520px;
	margin: 0 auto;
	padding: 16px;
	box-sizing: border-box;
}

.gdo-rider-registration *,
.gdo-rider-registration *::before,
.gdo-rider-registration *::after {
	box-sizing: border-box;
}

.gdo-rider-registration .gdo-rr-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
}

.gdo-rider-registration .gdo-rr-card--center {
	text-align: center;
}

.gdo-rider-registration .gdo-rr-heading {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 14px;
}

.gdo-rider-registration .gdo-rr-subheading {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: #6b7280;
	margin: 20px 0 8px;
}

.gdo-rider-registration .gdo-rr-errors {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 14px;
}
.gdo-rider-registration .gdo-rr-errors ul {
	margin: 0;
	padding-left: 18px;
}

.gdo-rider-registration .gdo-rr-form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin: 12px 0 4px;
}

.gdo-rider-registration .gdo-rr-form input[type="text"],
.gdo-rider-registration .gdo-rr-form input[type="tel"],
.gdo-rider-registration .gdo-rr-form input[type="email"],
.gdo-rider-registration .gdo-rr-form input[type="password"],
.gdo-rider-registration .gdo-rr-form input[type="file"],
.gdo-rider-registration .gdo-rr-form select {
	width: 100%;
	min-height: 46px;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
}

.gdo-rider-registration .gdo-rr-hint {
	font-size: 12px;
	color: #6b7280;
	margin: 4px 0 0;
}

.gdo-rider-registration .gdo-rr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	margin-top: 18px;
}

.gdo-rider-registration .gdo-rr-btn--primary {
	background: #16a34a;
	color: #fff;
}

.gdo-rider-registration .gdo-rr-btn--block {
	display: flex;
	width: 100%;
}

@media (min-width: 768px) {
	.gdo-rider-registration {
		padding: 24px;
	}
}

/* The registration shortcode can be rendered inside the theme's account/rider cards.
 * Remove the shortcode's second artificial shell so the form remains one clean card. */
.gdo-rider-registration { max-width: 100%; width: 100%; margin: 0; padding: 0; }
.gdo-rider-registration .gdo-rr-card { width: 100%; max-width: 100%; padding: 24px; border-radius: 16px; }
.gdo-rider-registration .gdo-rr-form { display: block; width: 100%; }
.gdo-rider-registration .gdo-rr-form label { margin-top: 14px; }
.gdo-rider-registration .gdo-rr-form input,
.gdo-rider-registration .gdo-rr-form select { display:block; width:100%; max-width:100%; }
.gdo-rider-registration .gdo-rr-subheading { margin-top: 24px; }

/* Keep the shortcode self-contained when embedded by a theme account card. */
.gdo-rider-registration .gdo-rr-card{box-shadow:none;}
.gdo-rider-registration .gdo-rr-form{position:relative;z-index:1;}
