/* ==========================================================================
   Cognito Forms brand styling
   Targets the embedded Cognito Form markup (cog-* / el-* classes rendered
   client-side by cognitoforms.com/f/seamless.js) so fields match the
   site's look & feel. Selectors are based on the actual rendered DOM
   (Element UI components), not Cognito's default theme classes.
   ========================================================================== */

#top #wrap_all .cog-cognito,
#top #wrap_all .cog-cognito * {
	box-sizing: border-box;
}

#top #wrap_all .cog-cognito {
	font-family: "DM Sans", "HelveticaNeue", Helvetica, Arial, sans-serif !important;
	color: #031224;
}

/* Section headings (e.g. "Day 1", "Day 2"...) */
#top #wrap_all .cog-cognito .cog-section__heading,
#top #wrap_all .cog-cognito .cog-heading {
	font-family: "DM Sans", "HelveticaNeue", Helvetica, Arial, sans-serif !important;
	color: #007954 !important;
	font-weight: 700 !important;
}

/* Field labels */
#top #wrap_all .cog-cognito .cog-label {
	display: block;
	margin-bottom: 6px;
	font-family: "DM Sans", "HelveticaNeue", Helvetica, Arial, sans-serif !important;
	font-size: 15px;
	font-weight: 600;
	color: #031224;
}

#top #wrap_all .cog-cognito .cog-asterisk {
	color: #ff4d4d;
}

/* ------------------------------------------------------------------------
   Text / date / dropdown / phone / email inputs
   Cognito renders all single-line field types through Element UI's
   .el-input__inner, so this one rule covers text, phone, email and the
   visible trigger for date pickers & dropdowns.
   ------------------------------------------------------------------------ */
#top #wrap_all .cog-cognito .el-input__inner,
#top #wrap_all .cog-cognito .el-textarea__inner {
	height: auto !important;
	padding: 11px 14px !important;
	border: 1px solid #ddd !important;
	border-radius: 4px !important;
	background-color: #fff !important;
	font-family: "DM Sans", "HelveticaNeue", Helvetica, Arial, sans-serif !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	color: #031224 !important;
	box-shadow: none !important;
	transition: border-color .3s ease, box-shadow .3s ease;
}

#top #wrap_all .cog-cognito .el-textarea__inner {
	min-height: 140px !important;
}

#top #wrap_all .cog-cognito .el-input__inner::placeholder,
#top #wrap_all .cog-cognito .el-textarea__inner::placeholder {
	color: #9aa1a9;
	opacity: 1;
}

#top #wrap_all .cog-cognito .el-input.is-focus .el-input__inner,
#top #wrap_all .cog-cognito .el-input__inner:focus,
#top #wrap_all .cog-cognito .el-textarea__inner:focus {
	outline: none !important;
	border-color: #3896EC !important;
	box-shadow: 0 0 0 3px rgba(56, 150, 236, 0.15) !important;
}

/* Prefix/suffix icons inside inputs (calendar, chevron, etc.) */
#top #wrap_all .cog-cognito .el-input__icon {
	color: #007954;
}

/* ------------------------------------------------------------------------
   Radio buttons (e.g. yes/no choice fields)
   ------------------------------------------------------------------------ */
#top #wrap_all .cog-cognito .el-radio__inner {
	border-color: #ccc !important;
}

#top #wrap_all .cog-cognito .el-radio__input.is-checked .el-radio__inner {
	border-color: #007954 !important;
	background-color: #007954 !important;
}

#top #wrap_all .cog-cognito .el-radio__input.is-checked + .el-radio__label {
	color: #007954 !important;
}

#top #wrap_all .cog-cognito .cog-choice-option {
	margin-right: 20px;
}

/* Checkboxes */
#top #wrap_all .cog-cognito .el-checkbox__inner {
	border-color: #ccc !important;
	border-radius: 3px !important;
}

#top #wrap_all .cog-cognito .el-checkbox__input.is-checked .el-checkbox__inner {
	border-color: #007954 !important;
	background-color: #007954 !important;
}

#top #wrap_all .cog-cognito .el-checkbox__input.is-checked + .el-checkbox__label {
	color: #007954 !important;
}

/* ------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------ */
#top #wrap_all .cog-cognito .el-button {
	height: auto !important;
	padding: 12px 32px !important;
	border-radius: 38px !important;
	font-family: "DM Sans", "HelveticaNeue", Helvetica, Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

#top #wrap_all .cog-cognito .cog-button--primary,
#top #wrap_all .cog-cognito .cog-button--submit {
	border: none !important;
	background-color: #3896EC !important;
	color: #fff !important;
}

#top #wrap_all .cog-cognito .cog-button--primary:hover,
#top #wrap_all .cog-cognito .cog-button--submit:hover {
	background-color: #007954 !important;
	color: #fff !important;
}

#top #wrap_all .cog-cognito .cog-button--secondary {
	background-color: transparent !important;
	border: 1px solid #3896EC !important;
	color: #3896EC !important;
}

#top #wrap_all .cog-cognito .cog-button--secondary:hover {
	background-color: #3896EC !important;
	color: #fff !important;
}

/* Small icon-only buttons (e.g. remove-row "X") stay minimal */
#top #wrap_all .cog-cognito .cog-button--no-style {
	padding: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

/* ------------------------------------------------------------------------
   Tables (repeating grid fields, e.g. the diary rows)
   The columns are narrow by design (Cognito sets fixed % widths inline),
   so rather than let inputs get crushed/overlap, the table scrolls
   horizontally below a sensible minimum width.
   ------------------------------------------------------------------------ */
#top #wrap_all .cog-cognito .cog-table {
	overflow-x: auto;
	margin-bottom: 24px;
	-webkit-overflow-scrolling: touch;
}

#top #wrap_all .cog-cognito table.is-compact {
	min-width: 760px;
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

#top #wrap_all .cog-cognito table.is-compact th,
#top #wrap_all .cog-cognito table.is-compact td {
	border: none !important;
	padding: 10px 10px !important;
	vertical-align: middle;
}

#top #wrap_all .cog-cognito table.is-compact thead th {
	padding-bottom: 10px !important;
	border-bottom: 2px solid #007954 !important;
	vertical-align: bottom;
	white-space: normal;
}

#top #wrap_all .cog-cognito table.is-compact th .cog-label {
	margin-bottom: 0;
	font-size: 12px;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #007954;
}

#top #wrap_all .cog-cognito table.is-compact tbody tr {
	border-bottom: 1px solid #eee;
}

#top #wrap_all .cog-cognito table.is-compact tbody td:first-child {
	padding-left: 0 !important;
	text-align: center;
}

/* Tighter input styling to fit narrow table cells */
#top #wrap_all .cog-cognito table.is-compact .el-input__inner {
	padding: 8px 10px !important;
	font-size: 14px !important;
}

#top #wrap_all .cog-cognito table.is-compact .cog-table__remove {
	padding: 0 !important;
	color: #999;
}

#top #wrap_all .cog-cognito table.is-compact .cog-table__remove:hover {
	color: #d9534f;
}

/* ------------------------------------------------------------------------
   Validation / error states
   ------------------------------------------------------------------------ */
#top #wrap_all .cog-cognito .is-error .el-input__inner,
#top #wrap_all .cog-cognito .is-error .el-textarea__inner {
	border-color: #d9534f !important;
}

#top #wrap_all .cog-cognito .el-form-item__error,
#top #wrap_all .cog-cognito .cog-field__error {
	font-size: 13px;
	color: #d9534f;
}

/* ------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */
@media only screen and (max-width: 767px) {
	#top #wrap_all .cog-cognito .el-button {
		width: 100%;
		text-align: center;
	}
}
