/* VISION 52 questionnaire. Colours from the VISION 52 logo. */
:root { --v52-blue: #1673b5; --v52-deep: #0b3a5b; --v52-ice: #eef6fb; --v52-line: #c9dceb; }

.v52-logo img { max-width: 260px; height: auto; display: block; }
.v52-voyage { font-size: .95rem; color: var(--v52-deep); background: var(--v52-ice); border-radius: 8px; padding: 10px 14px; }
.v52-notice { border-left: 4px solid var(--v52-blue); background: var(--v52-ice); padding: 16px 20px; border-radius: 0 8px 8px 0; }
.v52-privacy, .v52-guide { border: 1px solid var(--v52-line); border-radius: 8px; padding: 12px 16px; margin: 1.5rem 0; }
.v52-privacy summary, .v52-guide summary { cursor: pointer; font-weight: 600; color: var(--v52-deep); }
.v52-button, a.v52-button, a.v52-button:visited { display: inline-block; background: var(--v52-blue); color: #fff !important; padding: 12px 22px; border-radius: 6px; text-decoration: none !important; font-weight: 600; margin: .5rem 0 1rem; }
a.v52-button:hover, a.v52-button:focus { background: var(--v52-deep); color: #fff !important; }
.v52-saved { background: #eaf7ee; border-left: 4px solid #1e8a46; padding: 14px 18px; border-radius: 0 8px 8px 0; }
.v52-voyage-picker { margin: 1rem 0; }
.v52-voyage-picker select { font-size: 16px; padding: 8px; max-width: 100%; }

/* Section headings */
.gform_wrapper .gsection { border-bottom: 2px solid var(--v52-blue) !important; padding-top: 1.5rem; }
.gform_wrapper .gsection_title { color: var(--v52-deep) !important; font-size: 1.6rem !important; font-weight: 600 !important; }

/* Question labels */
.gform_wrapper .v52-q .gfield_label { font-size: 1.05rem !important; font-weight: 600 !important; line-height: 1.4; }

/* Answer scales: a row of boxes on wider screens, a stacked list on phones.
   The whole box is the label, so a tap anywhere in it selects the answer. The round radio button is
   hidden visually but stays in the page for keyboards and screen readers. The chosen box is filled.
   Selectors are long and use !important to win over the Gravity Forms themes (Orbital or legacy). */
.gform_wrapper .gfield.v52-scale .gfield_radio { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
.gform_wrapper .gfield.v52-scale .gchoice { position: relative; display: flex !important; margin: 0 !important; padding: 0 !important; }
.gform_wrapper .gfield.v52-scale .gchoice input[type=radio] {
	position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 !important; opacity: 0; }
.gform_wrapper .gfield.v52-scale .gchoice label {
	display: flex !important; align-items: center; flex: 1 1 auto; width: 100%; min-height: 48px; box-sizing: border-box;
	margin: 0 !important; padding: 10px 14px !important; max-width: none !important;
	border: 1px solid var(--v52-line); border-radius: 8px; background: #fff; color: #1d2327;
	font-size: .95rem !important; line-height: 1.25; cursor: pointer; user-select: none; -webkit-user-select: none;
	transition: background .12s, border-color .12s, color .12s; }
.gform_wrapper .gfield.v52-scale .gchoice label::before, .gform_wrapper .gfield.v52-scale .gchoice label::after { display: none !important; }
@media (hover: hover) { .gform_wrapper .gfield.v52-scale .gchoice:hover label { border-color: var(--v52-blue); background: var(--v52-ice); } }
.gform_wrapper .gfield.v52-scale .gchoice:has(input:focus-visible) label { outline: 3px solid var(--v52-blue); outline-offset: 2px; }
/* Selected: filled blue with a tick. .is-selected is set by questionnaire.js for browsers without :has(). */
.gform_wrapper .gfield.v52-scale .gchoice:has(input:checked) label,
.gform_wrapper .gfield.v52-scale .gchoice.is-selected label { background: var(--v52-blue) !important; border-color: var(--v52-blue) !important; color: #fff !important; font-weight: 600; }
.gform_wrapper .gfield.v52-scale .gchoice:has(input:checked) label::after,
.gform_wrapper .gfield.v52-scale .gchoice.is-selected label::after { content: "✓"; display: inline-block !important; margin-left: auto; padding-left: 10px; font-weight: 700; }
@media (min-width: 640px) {
	.gform_wrapper .gfield.v52-scale-agree .gfield_radio { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: 6px !important; }
	.gform_wrapper .gfield.v52-scale-likely .gfield_radio { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 6px !important; }
	.gform_wrapper .gfield.v52-scale .gchoice label { justify-content: center; text-align: center; min-height: 64px; padding: 8px 6px !important; font-size: .8rem !important; hyphens: auto; }
	.gform_wrapper .gfield.v52-scale .gchoice:has(input:checked) label::after,
	.gform_wrapper .gfield.v52-scale .gchoice.is-selected label::after { display: none !important; }
	.gform_wrapper .gfield.v52-scale-likely .gchoice:first-child label { background: #f7f7f2; }
}
.gform_wrapper .gfield.v52-scale button.v52-clear,
.gform_wrapper .gfield.v52-scale button.v52-clear:hover { all: unset; display: inline-block; margin-top: 8px; color: var(--v52-blue); text-decoration: underline; cursor: pointer; font-size: .875rem; }
.gform_wrapper .gfield.v52-scale button.v52-clear:focus-visible { outline: 2px solid var(--v52-blue); outline-offset: 2px; }

/* Open answers */
.gform_wrapper .v52-q textarea { font-size: 16px; }

/* Paper-entry mode: denser layout for fast keying */
.gform_wrapper .v52-paper.v52-scale .gchoice label { min-height: 40px; padding-top: 6px !important; padding-bottom: 6px !important; }
.gform_wrapper .v52-paper .gfield_label { font-size: 1rem !important; }

.gform_wrapper .gform_footer input[type=submit], .gform_wrapper .gform_footer button { background: var(--v52-blue) !important; font-size: 1.05rem; padding: 12px 24px !important; }

/* Permanent link: choice of voyages when several ships have one open */
.v52-voyage-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.v52-voyage-list li { margin: 0 0 .75rem; }
.v52-voyage-list .v52-button { margin: 0 .5rem .25rem 0; }
.v52-subtitle { color: var(--v52-deep); font-size: .95rem; margin-top: -.25rem; }
