  /*
Theme Name: Rochester Go
Template: ur-core
Description: Child theme of Rochester Core for ÌìÃÀ´«Ã½ Go sites.
Author: Modern Tribe, Inc.
Author URI: http://tri.be
Theme URI: https://www.rochester.edu
Version: 1.0.0
Text Domain: ur-go
Domain Path: /languages

This is a child theme of Rochester Core. It inherits all functionality
and styling from the parent theme while allowing for customizations
specific to Go sites.
*/

.wp-child-theme-ur-go {
	.logo__wrap {
		display: block !important;
		margin: 0 auto;
		padding: 0.5rem 0;

		img {
			height: auto;
			display: block;
			padding: 0.5rem 0;
			width: 300px;
		}
	}

	header.content-header.has-rfi-form {
		.header-rfi {
			position: relative;
			width: 100%;
			z-index: 2;
		}

		/* Desktop: form lives in the right half of the hero; mobile: it stacks below. */
		@media (width >= 64em) {
			display: grid;
			grid-template-columns: repeat(2, minmax(0, 1fr));

			.header-rfi {
				grid-column: 2;
				grid-row: 1;
				margin: 2rem;
				max-width: 25rem;
				place-self: center end;
			}

			&:not(.no_image, .pattern) {
				.header-media {
					grid-column: 1 / -1;
					grid-row: 1;
					min-height: 35.625rem;
					position: relative;

					img,
					video,
					.video-wrapper {
						position: absolute;
						inset: 0;
						height: 100%;
						max-height: none;
						width: 100%;
					}
				}

				.header-wrap {
					grid-column: 1 / -1;
					grid-row: 2;
				}
			}

			&.no_image .header-wrap,
			&.pattern .header-wrap {
				align-self: center;
				grid-column: 1;
				grid-row: 1;
				position: relative;
				bottom: auto;
			}

			&.pattern {
				margin-bottom: 0;
				max-height: none;

				&::before,
				.header-media {
					grid-column: 1 / -1;
					grid-row: 1;
				}
			}
		}

		div.form_container [data-required='1'] label:first-child::after,
		div.form_container .form_label::after {
			color: #ffd82b !important;
		}
	}

	.slate-rfi {
		background: #021cc3;
		border-radius: 2px;
		color: #fff;
		padding: 1.5rem;

		@media (width >= 64em) {
			margin: 3rem auto;
		}

		.slate-rfi__intro {
			margin-bottom: 1rem;
			text-align: center;

			p,
			h2 {
				color: #fff;
				margin: 0;
			}
		}

		.slate-rfi__overline {
			font-family: ivypresto-text, georgia, serif;
			font-size: 1rem;
			line-height: 1.5;
			margin-bottom: 1rem !important;
		}

		.slate-rfi__title {
			font-size: 1.625rem;
			font-weight: 600;
			letter-spacing: -0.01em;
			line-height: 1.125;
			margin-bottom: 0.89rem !important;
		}

		.slate-rfi__description {
			font-size: 1rem;
			line-height: 1.5;
		}

		/* First/last name share a row; everything else spans both columns. */
		.form_page_1 {
			display: grid;
			grid-template-columns: repeat(2, minmax(0, 1fr));
			column-gap: 0.5rem;

			.form_question {
				clear: none !important;
				grid-column: 1 / -1;
			}

			.form_question:nth-child(-n + 2) {
				grid-column: auto;
			}
		}

		.form_question {
			margin-bottom: 1rem;
		}

		.hidden {
			display: none !important;
		}

		fieldset {
			border: 0;
			margin: 0;
			padding: 0;
		}

		fieldset legend {
			height: 1px;
			overflow: hidden;
			position: absolute;
			width: 1px;
		}

		label,
		.form_label {
			color: #fff;
			display: block;
			font-size: 0.75rem;
			font-weight: 550;
			line-height: 1.5;
			margin: 0 0 0.28rem;
		}

		input[type='text'],
		input[type='email'],
		select {
			background-color: #fff;
			border: 1px solid #d8d8d8;
			border-radius: 2px;
			color: #252525;
			font-size: 0.9375rem;
			height: auto;
			margin: 0;
			padding: 0.47rem 0.7rem;
			width: 100%;
		}

		.form_birthdate .form_responses {
			display: grid;
			grid-template-columns: repeat(3, minmax(0, 1fr));
			gap: 0.5rem;

			select {
				margin-left: 0 !important;
			}
		}

		.form_radio .form_responses {
			display: flex;
			flex-wrap: wrap;
			gap: 0.25rem 1rem;
		}

		.form_radio .form_response {
			align-items: center;
			display: inline-flex;

			input {
				margin: 0;
			}

			label {
				font-size: 0.9375rem;
				font-weight: 400;
				margin: 0 0 0 0.47rem;
			}
		}

		.form_button_submit {
			background: #021cc3;
			border: 2px solid #fff;
			color: #fff;
			cursor: pointer;
			font-size: 1rem;
			font-weight: 600;
			padding: 0.6rem 1.75rem;
			transition:
				background-color 0.2s,
				color 0.2s;
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			line-height: 1.5;

			&::after {
				color: #fff !important;
			}

			&:hover,
			&:focus-visible,
			&:active {
				background: #fff;
				color: #021cc3 !important;
				padding: 0.6rem 1.75rem;
				border-color: #021cc3;

				&::after {
					color: #021cc3 !important;
					padding-left: 5px;
					top: 0;
					line-height: 1.5;
				}
			}
		}
	}
}
