/* =========================================================================
   START VIDEO + CONSULTATION FORM
   ========================================================================= */

/* Consult - Desktop / Base */
.consult { background-color: var(--color-bg-gray-alt); background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; }
.consult::before {content: '';position: absolute;inset: 0;background: rgba(255, 255, 255, 0.84);}
.consult > .container { position: relative; z-index: 1; }
.consult__grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 60px;align-items: start; }
.consult__video { position: relative; aspect-ratio: 16 / 8.5; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; margin-bottom:24px;box-shadow: 0px 14px 32px 0px rgba(46, 47, 74, 0.12); }
.consult__video img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: var(--transition-transform-slow); }
.consult__video:hover img { transform: scale(1.06); }
.consult__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; background: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0px 10px 32px 0px rgba(0, 0, 0, 0.45); transition: var(--transition-transform); pointer-events: none; }
.consult__video:hover .consult__play { transform: translate(-50%, -50%) scale(1.1); }
.consult__play svg { color: var(--color-green-focus); margin-left: 4px; }
.consult__info-title { color: var(--color-navy); text-transform: uppercase; font-weight: 600; margin-bottom: 11px; line-height: 1.3; font-size:36px; letter-spacing:0.55px; }
.consult__form-wrap { background: linear-gradient(180deg, var(--color-green-grad-start) 0%, var(--color-green-grad-end) 100%); border-radius: var(--radius-md); padding:58px 40px; color: var(--color-white); box-shadow: 0 20px 50px rgba(16, 24, 47, 0.18); text-align: center; }
.consult__badges { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; padding-bottom:16px; flex-wrap: wrap;border-bottom: 1px solid rgba(255, 255, 255, 0.18) }
.consult__badges img { max-height:52px; }
.consult__form-wrap--title { font-size:28px; font-weight:600; letter-spacing:0.43px; color: var(--color-white); margin-bottom: 6px; text-align: center; }
.consult__form-wrap > p { color: rgba(255, 255, 255, 0.95); margin-bottom: 18px; font-size: 14px; text-align: center; font-weight:600; }

/* Video Modal */
.js-video-modal { display: none; position: fixed; inset: 0; z-index: 9999; }
.js-video-modal.is-open { display: block; }
.js-video-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); cursor: pointer; }
.js-video-modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 900px; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.js-video-modal-iframe { width: 100%; height: 100%; border: 0; }
.js-video-modal-close { position: absolute; top: -40px; right: -40px; width: 40px; height: 40px; background: transparent; border: none; color: #fff; font-size: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.js-video-modal-close:hover { color: var(--color-green-focus); }

/* Gravity Forms Custom Styling */
.consult__form-wrap .gform_wrapper .gfield_label,
.consult__form-wrap .gform_wrapper .gform_required_legend {
    display: none !important;
}
.consult__form-wrap .gform_wrapper .gform_fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.consult__form-wrap .gform_wrapper .gfield {
    margin: 0;
    width: 100%;
}
.consult__form-wrap .gform_wrapper .gfield--width-half {
    width: calc(50% - 8px);
}
.consult__form-wrap .gform_wrapper .gform-grid-row {
    display: flex;
    gap: 16px;
}
.consult__form-wrap .gform_wrapper .gform-grid-col {
    flex: 1;
}

.consult__form-wrap .gform_wrapper input[type="text"],
.consult__form-wrap .gform_wrapper input[type="email"],
.consult__form-wrap .gform_wrapper input[type="tel"],
.consult__form-wrap .gform_wrapper textarea,
.consult__form-wrap .gform_wrapper select {
    background-color: #0b6437;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    padding: 11px 20px;
    color: var(--color-white);
    font-size: 15px;
    width: 100%;
    outline: none;
    font-family: inherit;
    transition: var(--transition-default);
    box-shadow: none;
    font-weight: 300;
}
.gform_wrapper.gravity-theme .gfield textarea.small {
  height: 114px;
}
.consult__form-note {
	font-size: 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.65);
	margin-top: 10px;
}
.consult__form-wrap .gform_wrapper input::placeholder,
.consult__form-wrap .gform_wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.consult__form-wrap .gform_wrapper input:focus,
.consult__form-wrap .gform_wrapper textarea:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(0, 0, 0, 0.15);
}

/* Form Icons */
.consult__form-wrap .gform_wrapper .name_first input,
.consult__form-wrap .gform_wrapper .name_last input {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    padding-left: 45px;
}
.consult__form-wrap .gform_wrapper .ginput_container_email input {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    padding-left: 45px;
}
.consult__form-wrap .gform_wrapper .ginput_container_phone input {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    padding-left: 45px;
}
.consult__form-wrap .gform_wrapper .ginput_container_textarea textarea {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px 14px;
    padding-left: 45px;
    height: 120px;
    resize: none;
}
.consult__form-wrap .gform_wrapper .gfield--type-text:not(.gfield--type-name) select {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
}

/* How Did You Hear About Us - Input Icon */
.consult__form-wrap .gform_wrapper input[placeholder*="How Did You Hear About Us"],
.consult__form-wrap .gform_wrapper input[placeholder*="How did you hear about us"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'%3E%3C/polygon%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 18px;
    padding-left: 48px !important;
}


/* Utility & Validation */
.consult__form-wrap .gform_wrapper .ginput_counter,
.consult__form-wrap .gform_wrapper .gfield_description:not(.validation_message) {
    display: none !important;
}
.gform_wrapper.gravity-theme .gform_validation_errors { 
	display:none; 
}
.consult__form-wrap .gform_wrapper .gfield_description.validation_message {
	color: #fff;
	text-align: left;
	font-size: 13px;
	margin-top: 6px;
	background: #f00;
	border: 0;
	padding: 4px 5px;
	line-height: 1.2;
	border-radius: 3px;
}

/* Submit Button */
.consult__form-wrap .gform_wrapper .gform_footer {
    width: 100%;
    margin-top: 10px;
    padding: 0;
}
.consult__form-wrap .gform_wrapper .gform_button {
    background-color: #00b85c;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 100%;
    padding: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-default);
    margin: 0;
}
.consult__form-wrap .gform_wrapper .gform_button:hover {
    background-color: #00994d;
}

/* Consult - Responsive */
@media (max-width: 1199px) {
  .consult__grid { gap: 20px; }
  .consult__form-wrap--title { font-size:22px; }
  .consult__form-wrap { padding:20px; }
  .consult__info-title { font-size: 30px; }
}

@media (max-width: 1023px) {
  .consult__grid { grid-template-columns: 1fr; gap: 30px; }
  .js-video-modal-close { top: -40px; right: 0; }
}

@media (max-width: 767px) {
  .consult__card { display: flex; flex-direction: column; }
  .consult__card .consult__info-title { order:1; text-align:center; margin-bottom:25px; }
  .consult__card .consult__video { order:2; }
  .consult__card .consult__info-decs { order:3; }
  .consult__play{width: 54px;height: 54px;}
  .consult__grid { display:block; }
  .consult__form-wrap { padding: 42px 20px; margin: 50px -20px 0 -20px; border-radius: 0; box-shadow:none; }
  .consult { background:var(--color-white) !important; padding-bottom:0; }
  .consult__badges img { max-height: 38px;width: auto; }
  .consult__badges { gap:10px; }
  .consult__form-wrap--title { font-size: 24px; line-height: 1.2; }
  .consult__info-title { font-size: 28px; }
  .consult__form-wrap .gform_wrapper .gfield--width-half {width: 100%;}
  .gform_wrapper.gravity-theme .ginput_complex span { margin-bottom:0 !important; }
}
/* =========================================================================
   END VIDEO + CONSULTATION FORM
   ========================================================================= */

/* =========================================================================
   VIDEO MODAL
   ========================================================================= */
.video-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 24px; }
.video-modal.is-open { display: flex; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 14, 26, 0.85); }
.video-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 960px; }
.video-modal__frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 20px 50px rgba(16, 24, 47, 0.18); background: var(--color-black); }
.video-modal__frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; top: -46px; right: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--color-white); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.video-modal__close:hover { background: rgba(255, 255, 255, 0.25); }
