/*
 * Student Olympiad Registration — front-end form styles.
 *
 * Scoping rules followed throughout this file, on purpose:
 * 1. Every single selector starts with .sor-form-wrapper — nothing here
 *    can ever match an element outside the form, so it cannot bleed
 *    into theme or Elementor markup.
 * 2. No bare tag selectors (input, button, select, form, etc.) are
 *    used anywhere, so this file cannot override the theme's or
 *    Elementor's default element styling on the rest of the page.
 * 3. box-sizing is applied only to elements inside the wrapper, not
 *    globally, so it can't change layout math elsewhere on the page.
 * 4. No !important is used, so page-level custom CSS or Elementor's
 *    per-widget style controls can still override this if the client
 *    wants to restyle it later.
 */

.sor-form-wrapper,
.sor-form-wrapper * {
	box-sizing: border-box;
}

.sor-form-wrapper {
	max-width: 520px;
	margin: 0 auto;
}

.sor-form-wrapper .sor-alert {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
}

.sor-form-wrapper .sor-alert--success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.sor-form-wrapper .sor-alert--error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.sor-form-wrapper .sor-alert p {
	margin: 0 0 10px;
}

.sor-form-wrapper .sor-alert p:last-child {
	margin-bottom: 0;
}

.sor-form-wrapper .sor-admission-number {
	font-size: 16px;
}

.sor-form-wrapper .sor-card-link {
	text-decoration: none;
}

.sor-form-wrapper .sor-field {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
}

.sor-form-wrapper .sor-label {
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

.sor-form-wrapper .sor-required {
	color: #d63638;
}

.sor-form-wrapper .sor-input {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	width: 100%;
	background: #fff;
	color: #1e1e1e;
	line-height: 1.4;
}

.sor-form-wrapper .sor-input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.sor-form-wrapper .sor-select {
	appearance: auto;
}

.sor-form-wrapper .sor-textarea {
	resize: vertical;
	min-height: 90px;
	font-family: inherit;
}

.sor-form-wrapper .sor-field--submit {
	margin-top: 8px;
}

.sor-form-wrapper .sor-button {
	background: #2271b1;
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	display: inline-block;
}

.sor-form-wrapper .sor-button:hover,
.sor-form-wrapper .sor-button:focus {
	background: #135e96;
	color: #ffffff;
}
