/* UTAG Membership forms. Uses the UTAG theme's colours when present. */
.utagm { --u-navy: var(--navy, #1F2D8A); --u-ink: var(--ink, #14172B); --u-slate: var(--slate, #4A4F66); --u-line: var(--line, #DDE0EA); --u-strong: var(--line-strong, #A9AFC4); --u-mist: var(--mist, #F4F5F9); --u-red: var(--red, #C8141F); margin: 2em 0; font-size: 17px; }
.utagm-intro { color: var(--u-slate); }
.utagm-form { display: flex; flex-direction: column; gap: 28px; }
.utagm-section { margin: 0; padding: 24px; border: 1px solid var(--u-line); background: #fff; min-width: 0; }
.utagm-section > legend { padding: 0 8px; margin-left: -8px; font-family: var(--serif, Georgia, serif); font-size: 21px; font-weight: 600; color: var(--navy-deep, #121B52); }
.utagm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.utagm-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.utagm-field.utagm-half { grid-column: span 1; }
.utagm-label, .utagm-field legend { font-size: 15px; font-weight: 600; color: var(--u-ink); padding: 0; }
.utagm-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.utagm-req { color: var(--u-red); }
.utagm input[type="text"], .utagm input[type="email"], .utagm input[type="tel"], .utagm input[type="date"], .utagm select, .utagm textarea {
	width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--u-strong); border-radius: 4px; background: #fff; font: inherit; font-size: 16px; color: var(--u-ink); transition: border-color .15s, box-shadow .15s; }
.utagm select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2314172B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.utagm input:focus, .utagm select:focus, .utagm textarea:focus { outline: none; border-color: var(--u-navy); box-shadow: 0 0 0 3px rgba(31, 45, 138, .18); }
.utagm-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.utagm-choice { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--u-strong); border-radius: 4px; cursor: pointer; font-size: 16px; transition: border-color .15s, background .15s; }
.utagm-choice:hover { border-color: var(--u-navy); }
.utagm-choice:has(input:checked) { border-color: var(--u-navy); background: var(--navy-soft, #EEF0FA); }
.utagm-check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; cursor: pointer; }
.utagm input[type="radio"], .utagm input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--u-navy); }
.utagm-check input { margin-top: 2px; }
.utagm-help { margin: 0; font-size: 14px; color: var(--u-slate); }
.utagm-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--red-dark, #A3101A); }
.has-error input, .has-error select { border-color: var(--red-dark, #A3101A); }
.utagm-error-summary { padding: 16px 20px; margin-bottom: 24px; border: 2px solid var(--red-dark, #A3101A); background: var(--red-soft, #FDECEC); }
.utagm-error-summary ul { margin: 6px 0 0; padding-left: 1.2em; }
.utagm-error-summary a { color: var(--red-dark, #A3101A); font-weight: 600; }
.utagm-success { padding: 24px; border: 1px solid #9ad3b0; background: #ecf8f1; }
.utagm-success-title { font-family: var(--serif, Georgia, serif); font-size: 22px; font-weight: 600; color: #0b5a2b; margin: 0 0 8px; }
.utagm-submit { align-self: flex-start; min-height: 52px; padding: 0 28px; border: 0; border-radius: 4px; background: var(--u-red); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.utagm-submit:hover { background: var(--red-dark, #A3101A); }
.utagm-submit:active { transform: translateY(1px); }
.utagm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
	.utagm-grid { grid-template-columns: 1fr; }
	.utagm-field.utagm-half { grid-column: 1 / -1; }
	.utagm-section { padding: 18px 16px; }
	.utagm-submit { width: 100%; }
}
