/* ==========================================================================
   The Capital — Contact Form
   Scoped to the CSS class  tc-contact-form  added to the Elementor
   Form widget via Advanced → CSS Classes.
   ========================================================================== */

/* ------------------------------------------------------------------
   1. Fields wrapper — controls the gap between all fields
   ------------------------------------------------------------------ */
.tc-contact-form .elementor-form-fields-wrapper {
	display: flex !important;
	flex-wrap: wrap !important;
	row-gap: 25px !important;  /* vertical gap between rows only */
	column-gap: 0 !important;  /* horizontal handled by Elementor's col widths */
	margin: 0 !important;
}

/* Remove Elementor's default column padding so gap is the only spacing */
.tc-contact-form .elementor-field-group.elementor-column {
	padding: 0 !important;
	padding-left: 12.5px !important;
	padding-right: 12.5px !important;
	margin: 0 !important;
}

.tc-contact-form .elementor-field-group.elementor-column.elementor-field-type-select {
    max-width: calc(100% - 25px);
    margin: auto !important;
	padding-left: 0 !important;
}

/* ------------------------------------------------------------------
   2. All text / email / tel / textarea inputs
   ------------------------------------------------------------------ */
.tc-contact-form .elementor-field-textual {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-family: 'DM Sans', var(--tc-font-body), sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	padding: 18px 20px !important;
	width: 100% !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease !important;
	-webkit-appearance: none;
	appearance: none;
}

.tc-contact-form .elementor-field-textual:focus {
	border-color: var(--tc-gold, #EBA318) !important;
}

.tc-contact-form .elementor-field-textual::placeholder {
	color: #B1B1B1 !important;
	font-family: 'DM Sans', var(--tc-font-body), sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	opacity: 1;
}

/* ------------------------------------------------------------------
   3. Textarea
   ------------------------------------------------------------------ */
.tc-contact-form textarea.elementor-field-textual {
	min-height: 160px !important;
	resize: vertical;
}

/* ------------------------------------------------------------------
   4. Select field
   The wrapper div has classes: elementor-field + elementor-select-wrapper
   The select itself has: elementor-field-textual
   ------------------------------------------------------------------ */

/* Make the field group a flex row so label sits beside the select */
.tc-contact-form .elementor-field-type-select {
	display: flex !important;
	align-items: center !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	transition: border-color 0.2s ease;
}

.tc-contact-form .elementor-field-type-select:focus-within {
	border-color: var(--tc-gold, #EBA318) !important;
}

/* Un-hide and style the "Subject:" label inline */
.tc-contact-form .elementor-field-type-select .elementor-field-label {
	position: static !important;
	width: auto !important;
	height: auto !important;
	padding: 18px 0 18px 20px !important;
	margin: 0 !important;
	clip: auto !important;
	clip-path: none !important;
	overflow: visible !important;
	white-space: nowrap !important;
	color: var(--tc-white, #fff) !important;
	font-family: 'DM Sans', var(--tc-font-body), sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	flex-shrink: 0;
}

/* The select wrapper div fills remaining space */
.tc-contact-form .elementor-field-type-select .elementor-select-wrapper {
	flex: 1 !important;
	position: relative !important;
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
}

/* The select element itself — no border (border is on the parent group) */
.tc-contact-form .elementor-field-type-select select.elementor-field-textual {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 18px 44px 18px 8px !important;
	color: rgba(255, 255, 255, 0.45) !important;
	cursor: pointer;
	width: 100%;
}

/* White text once a real option is selected (JS adds a class, or we use :valid) */
.tc-contact-form .elementor-field-type-select select.elementor-field-textual:focus,
.tc-contact-form .elementor-field-type-select select.elementor-field-textual.elementor-field-textual--filled {
	color: #fff !important;
}

/* Option colours in the native dropdown */
.tc-contact-form .elementor-field-type-select select option {
	background: #111 !important;
	color: #fff !important;
}

/* Hide Elementor's built-in caret wrapper */
.tc-contact-form .select-caret-down-wrapper {
	display: none !important;
}

/* Custom gold chevron via pseudo-element on the select wrapper */
.tc-contact-form .elementor-field-type-select .elementor-select-wrapper::after {
	content: '';
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 8px;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23EBA318' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

/* ------------------------------------------------------------------
   5. Hidden labels on non-select fields (already screen-only in HTML,
      this ensures any Elementor theme override doesn't re-show them)
   ------------------------------------------------------------------ */
.tc-contact-form .elementor-field-type-text .elementor-field-label,
.tc-contact-form .elementor-field-type-email .elementor-field-label,
.tc-contact-form .elementor-field-type-tel .elementor-field-label,
.tc-contact-form .elementor-field-type-textarea .elementor-field-label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ------------------------------------------------------------------
   6. Submit button
   ------------------------------------------------------------------ */
.tc-contact-form .elementor-field-type-submit {
	display: flex !important;
	justify-content: center !important;
	padding-top: 8px !important;
}

.tc-contact-form button.elementor-button[type="submit"] {
	background-color: var(--tc-gold, #EBA318) !important;
	color: #000 !important;
	border: 1px solid var(--tc-gold, #EBA318) !important;
	border-radius: 0 !important;
	font-family: 'DM Sans', var(--tc-font-body), sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 2px !important;
	text-transform: uppercase !important;
	padding: 18px 52px !important;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
	flex-basis: auto !important;
}

.tc-contact-form button.elementor-button[type="submit"]:hover {
	background-color: var(--tc-white) !important;
	border-color: var(--tc-white, #EBA318) !important;
	color: var(--tc-black, #EBA318) !important;
}

/* ------------------------------------------------------------------
   7. Success / error messages
   ------------------------------------------------------------------ */
.tc-contact-form .elementor-message {
	font-family: 'DM Sans', var(--tc-font-body), sans-serif;
	font-size: 13px;
	margin-top: 12px;
}

.tc-contact-form .elementor-message.elementor-message-success {
	color: var(--tc-gold, #EBA318);
}

.tc-contact-form .elementor-message.elementor-message-danger {
	color: #e74c3c;
}

/* ------------------------------------------------------------------
   8. Responsive — mobile
   ------------------------------------------------------------------ */
@media (max-width: 767px) {
	.tc-contact-form .elementor-form-fields-wrapper {
		row-gap: 25px !important;
		column-gap: 0 !important;
	}

	.tc-contact-form button.elementor-button[type="submit"] {
		width: 100% !important;
		padding: 18px 32px !important;
	}
}


/* ==========================================================================
   Gravity Forms — styled to match .tc-contact-form
   Add the CSS class  tc-gravity-form  to the Elementor container/section
   that wraps the Gravity Forms shortcode widget.
   ========================================================================== */

/* ------------------------------------------------------------------
   Reset GF defaults
   ------------------------------------------------------------------ */
.tc-gravity-form {
	padding-left: 20px !important;
	padding-right: 20px !important;
}

.tc-gravity-form .gform_heading {
	display: none !important;
}

.tc-gravity-form .gform_wrapper,
.tc-gravity-form .gform_wrapper * {
	box-sizing: border-box;
}

.tc-gravity-form .gform_wrapper {
	max-width: 100% !important;
	margin: 0 !important;
}

.tc-gravity-form .gform_body,
.tc-gravity-form .gform-body {
	width: 100% !important;
}

/* ------------------------------------------------------------------
   Fields list — vertical rhythm
   ------------------------------------------------------------------ */
.tc-gravity-form .gform_fields {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 25px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.tc-gravity-form .gfield {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important; /* override any GF column widths */
}

/* GF half-width columns */
.tc-gravity-form .gfield.gf_left_half,
.tc-gravity-form .gfield.gf_right_half,
.tc-gravity-form .gfield--width-half {
	width: calc(50% - 12.5px) !important;
}

/* ------------------------------------------------------------------
   Labels — visually hidden (placeholders carry the context,
   matching the Elementor form). Remove this block to show labels.
   ------------------------------------------------------------------ */
.tc-gravity-form .gfield_label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ------------------------------------------------------------------
   Text / email / tel / number inputs + textarea
   ------------------------------------------------------------------ */
.tc-gravity-form .ginput_container input[type="text"],
.tc-gravity-form .ginput_container input[type="email"],
.tc-gravity-form .ginput_container input[type="tel"],
.tc-gravity-form .ginput_container input[type="number"],
.tc-gravity-form .ginput_container input[type="url"],
.tc-gravity-form .ginput_container textarea {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-family: 'DM Sans', sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	padding: 18px 20px !important;
	min-height: 60px;
	width: 100% !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease !important;
	-webkit-appearance: none;
	appearance: none;
}

.tc-gravity-form .ginput_container input[type="text"]:focus,
.tc-gravity-form .ginput_container input[type="email"]:focus,
.tc-gravity-form .ginput_container input[type="tel"]:focus,
.tc-gravity-form .ginput_container input[type="number"]:focus,
.tc-gravity-form .ginput_container input[type="url"]:focus,
.tc-gravity-form .ginput_container textarea:focus {
	border-color: var(--tc-gold, #EBA318) !important;
}

.tc-gravity-form .ginput_container input::placeholder,
.tc-gravity-form .ginput_container textarea::placeholder {
	color: #B1B1B1 !important;
	font-family: 'DM Sans', sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	opacity: 1;
}

/* ------------------------------------------------------------------
   Textarea
   ------------------------------------------------------------------ */
.tc-gravity-form .ginput_container_textarea textarea {
	min-height: 160px !important;
	resize: vertical;
}

/* ------------------------------------------------------------------
   Select
   ------------------------------------------------------------------ */
.tc-gravity-form .ginput_container_select {
	position: relative !important;
}

.tc-gravity-form .ginput_container_select select {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 0 !important;
	color: rgba(255, 255, 255, 0.45) !important;
	font-family: 'DM Sans', sans-serif !important;
	padding-left: 20px !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	min-height: 60px;
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	outline: none !important;
	box-shadow: none !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease !important;
}

.tc-gravity-form .ginput_container_select select:focus {
	border-color: var(--tc-gold, #EBA318) !important;
	color: #fff !important;
}

.tc-gravity-form .ginput_container_select select option {
	background: #111 !important;
	color: #fff !important;
}

/* Gold chevron */
.tc-gravity-form .ginput_container_select::after {
	content: '';
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 8px;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23EBA318' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

/* ------------------------------------------------------------------
   Submit button
   ------------------------------------------------------------------ */
.tc-gravity-form .gform_footer,
.tc-gravity-form .gform_page_footer {
	margin: 8px 0 0 !important;
	padding: 0 !important;
	display: flex !important;
	justify-content: center !important;
}

.tc-gravity-form .gform_button,
.tc-gravity-form input[type="submit"].gform_button {
	background-color: var(--tc-gold, #EBA318) !important;
	color: #000 !important;
	border: 1px solid var(--tc-gold, #EBA318) !important;
	border-radius: 0 !important;
	font-family: 'DM Sans', sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 2px !important;
	text-transform: uppercase !important;
	padding: 18px 52px !important;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
	-webkit-appearance: none;
	appearance: none;
	width: auto !important;
}

.tc-gravity-form .gform_button:hover,
.tc-gravity-form input[type="submit"].gform_button:hover {
	background-color: #fff !important;
	border-color: #fff !important;
	color: #000 !important;
}

/* ------------------------------------------------------------------
   Validation errors
   ------------------------------------------------------------------ */
.tc-gravity-form .gfield_error input,
.tc-gravity-form .gfield_error textarea,
.tc-gravity-form .gfield_error select {
	border-color: #e74c3c !important;
}

.tc-gravity-form .validation_message,
.tc-gravity-form .gfield_description.validation_message {
	font-family: 'DM Sans', sans-serif !important;
	font-size: 12px !important;
	color: #e74c3c !important;
	margin-top: 6px !important;
	padding: 0 !important;
}

.tc-gravity-form .validation_error {
	font-family: 'DM Sans', sans-serif !important;
	font-size: 13px !important;
	color: #e74c3c !important;
	border: 1px solid #e74c3c !important;
	background: transparent !important;
	padding: 12px 16px !important;
	margin-bottom: 20px !important;
}

.tc-gravity-form .gform_confirmation_message {
	font-family: 'DM Sans', sans-serif !important;
	font-size: 35px !important;
	text-align: center !important;
	color: var(--tc-gold, #EBA318) !important;
}

/* ------------------------------------------------------------------
   Responsive — mobile
   ------------------------------------------------------------------ */
@media (max-width: 767px) {
	.tc-gravity-form .gfield.gf_left_half,
	.tc-gravity-form .gfield.gf_right_half,
	.tc-gravity-form .gfield--width-half {
		width: 100% !important;
	}

	.tc-gravity-form .gform_button,
	.tc-gravity-form input[type="submit"].gform_button {
		width: 100% !important;
		padding: 18px 32px !important;
	}
}
