@font-face { font-family: 'Riviera Nights Trial'; src: url('fonts/RivieraNightsTrial-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Riviera Nights Trial'; src: url('fonts/RivieraNightsTrial-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Riviera Nights Trial'; src: url('fonts/RivieraNightsTrial-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

.oaf-pif {
	--bg: #0b1514;
	--bg2: #111d1c;
	--line: #2a3a39;
	--red: #e02b2b;
	--txt: #ffffff;
	--mut: #a9b5b4;
	background: transparent !important;
	color: var(--txt);
	font-family: 'Plus Jakarta Sans', sans-serif;
	padding: 0;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
}
.oaf-pif *, .oaf-pif *::before, .oaf-pif *::after { box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
.oaf-pif .oaf-title, .oaf-pif .oaf-title span { font-family: 'Riviera Nights Trial', sans-serif; }
.oaf-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.oaf-title {
	font-size: 40px; font-weight: 400; color: #fff; text-transform: uppercase;
	margin: 35px 0 20px; line-height: 1.2;
}
.oaf-title span { color: var(--red); }
.oaf-title::before { content: ''; display: block; width: 56px; height: 3px; background: var(--red); margin-bottom: 16px; }
.oaf-grid .oaf-opts { min-height: 48px; align-items: center; padding-top: 0; }
.oaf-sub { font-size: 17px; font-weight: 600; color: #fff; margin: 35px 0 15px; line-height: 1.5; }
.oaf-note { font-size: 14px; color: var(--mut); line-height: 1.7; margin: 35px 0 20px; }

.oaf-grid { display: grid; gap: 18px 20px; margin-bottom: 18px; align-items: start; }
.oaf-c2 { grid-template-columns: repeat(2, 1fr); }
.oaf-c3 { grid-template-columns: repeat(3, 1fr); }
.oaf-c4 { grid-template-columns: repeat(4, 1fr); }
.oaf-span2 { grid-column: span 2; }
.oaf-block, .oaf-full { margin-bottom: 18px; }

.oaf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.oaf-field > label, .oaf-label { font-size: 13px; color: #fff; font-weight: 500; line-height: 1.4; }

.oaf-pif input[type=text], .oaf-pif input[type=date], .oaf-pif input[type=number],
.oaf-pif input[type=tel], .oaf-pif input[type=email], .oaf-pif select, .oaf-pif textarea {
	width: 100%; background: var(--bg2); border: 1px solid var(--line); color: #fff;
	padding: 13px 14px; font-size: 14px; border-radius: 3px; outline: none; margin: 0;
	transition: border-color .2s; -webkit-appearance: none; appearance: none; min-height: 48px;
}
.oaf-pif select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e02b2b' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.oaf-pif textarea { resize: vertical; min-height: 90px; }
.oaf-pif input::placeholder, .oaf-pif textarea::placeholder { color: #66736f; }
.oaf-pif input:focus, .oaf-pif select:focus, .oaf-pif textarea:focus { border-color: var(--red); }
.oaf-pif input[type=date] { color-scheme: dark; }
.oaf-pif input.oaf-sig { font-style: italic; font-size: 18px; }
.oaf-pif select option { background: #111d1c; color: #fff; }

/* radios / checkboxes */
.oaf-opts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 2px; }
.oaf-opt { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #fff; }
.oaf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oaf-opt i { width: 16px; height: 16px; border: 1.5px solid var(--mut); border-radius: 50%; flex: none; position: relative; transition: .15s; }
.oaf-chk i { border-radius: 3px; }
.oaf-opt b { font-weight: 400; line-height: 1.3; }
.oaf-opt input:checked + i { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px var(--bg); }
.oaf-chk input:checked + i { box-shadow: none; }
.oaf-chk input:checked + i::after {
	content: ''; position: absolute; left: 4px; top: 0; width: 4px; height: 9px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.oaf-opt input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }

/* medical history tables */
.oaf-conds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 40px; border: 1px solid var(--line); }
.oaf-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.oaf-table th { background: var(--red); color: #fff; padding: 10px; text-align: left; font-weight: 600; font-size: 13px; }
.oaf-table th:not(:first-child) { text-align: center; width: 48px; }
.oaf-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); color: #fff; }
.oaf-table td:not(:first-child) { text-align: center; }
.oaf-table .oaf-opt { gap: 4px; font-size: 12px; }
.oaf-table .oaf-opt i { width: 14px; height: 14px; }
.oaf-table .oaf-opt b { display: none; }
.oaf-conds .oaf-table + .oaf-table { border-left: 1px solid var(--line); }

/* submit + messages */
.oaf-submit { margin-top: 30px; }
.oaf-btn {
	background: var(--red); color: #fff; border: 0; padding: 16px 38px; font-size: 15px; font-weight: 600;
	letter-spacing: 1px; border-radius: 3px; cursor: pointer; text-transform: uppercase; transition: background .2s;
}
.oaf-btn:hover { background: #b81f1f; }
.oaf-btn:disabled { opacity: .6; cursor: wait; }
.oaf-msg { display: none; margin-top: 25px; padding: 14px 18px; border-radius: 3px; font-size: 15px; }
.oaf-msg.oaf-show { display: block; }
.oaf-ok { background: #123a24; border: 1px solid #2e8b57; color: #bff0d1; }
.oaf-err { background: #3a1212; border: 1px solid var(--red); color: #ffc9c9; }

/* tablet */
@media (max-width: 991px) {
	.oaf-pif { padding: 0; }
	.oaf-c3, .oaf-c4 { grid-template-columns: repeat(2, 1fr); }
	.oaf-span2 { grid-column: span 2; }
	.oaf-conds { grid-template-columns: 1fr; }
	.oaf-conds .oaf-table + .oaf-table { border-left: 0; border-top: 1px solid var(--line); }
	.oaf-empty { display: none; }
	.oaf-title { font-size: 34px; margin-top: 30px; }
}
/* mobile */
@media (max-width: 600px) {
	.oaf-pif { padding: 0; }
	.oaf-c2, .oaf-c3, .oaf-c4 { grid-template-columns: 1fr; }
	.oaf-span2 { grid-column: auto; }
	.oaf-title { font-size: 28px; margin: 28px 0 16px; }
	.oaf-sub { font-size: 15px; }
	.oaf-opts { gap: 12px 18px; }
	.oaf-btn { width: 100%; }
	.oaf-pif input, .oaf-pif select, .oaf-pif textarea { font-size: 16px; } /* prevents iOS zoom */
}


.oaf-pif .oaf-form { background: transparent !important; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.oaf-pif { padding: 0 !important; border: 0 !important; box-shadow: none !important; max-width: 100% !important; }

/* thank-you popup */
.oaf-modal[hidden] { display: none !important; }
.oaf-modal { position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; padding: 20px; }
.oaf-modal-box { position: relative; background: #0b1514; border: 1px solid #2a3a39; border-top: 4px solid #e02b2b; border-radius: 6px; max-width: 460px; width: 100%; padding: 40px 30px 32px; text-align: center; color: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: oafPop .25s ease; }
.oaf-modal-box h3 { font-family: 'Riviera Nights Trial', sans-serif; font-weight: 400; font-size: 34px; text-transform: uppercase; margin: 14px 0 10px; color: #fff; }
.oaf-modal-box p { font-size: 15px; line-height: 1.7; color: #a9b5b4; margin: 0 0 24px; }
.oaf-modal-ico { width: 64px; height: 64px; line-height: 64px; margin: 0 auto; border-radius: 50%; background: #e02b2b; color: #fff; font-size: 32px; }
.oaf-modal-x { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.oaf-modal-x:hover { color: #e02b2b; }
@keyframes oafPop { from { opacity: 0; transform: translateY(15px) scale(.96); } to { opacity: 1; transform: none; } }

/* buttons: always red (override theme/Elementor blue) */
.oaf-pif .oaf-btn, .oaf-pif .oaf-modal .oaf-btn, .oaf-pif .oaf-modal-close { background: #e02b2b !important; color: #fff !important; border: 0 !important; box-shadow: none !important; outline: none; }
.oaf-pif .oaf-btn:hover, .oaf-pif .oaf-btn:focus, .oaf-pif .oaf-btn:active, .oaf-pif .oaf-modal-close:hover, .oaf-pif .oaf-modal-close:focus, .oaf-pif .oaf-modal-close:active { background: #b81f1f !important; color: #fff !important; }
.oaf-pif .oaf-modal-x, .oaf-pif .oaf-modal-x:hover, .oaf-pif .oaf-modal-x:focus { background: transparent !important; box-shadow: none !important; border: 0 !important; outline: none; }
.oaf-pif .oaf-modal-x { color: #fff !important; }
.oaf-pif .oaf-modal-x:hover { color: #e02b2b !important; }
