.feature-style-three {
  padding-top: 10px;
  margin-top: 0;
}

.feature-style-three .sec-title {
  margin-top: 50px !important;       /* No space above the heading */
  margin-bottom: 100px !important; /* Neat space before icons/cards */
}

@media (max-width: 767px) {
  .feature-style-three .sec-title {
    margin-top: 10px !important;   /* reduce top gap */
    margin-bottom: 40px !important; /* smaller bottom spacing */
  }
}

.contact-section .form-inner{
	position: relative;
	display: block;
	max-width: 850px;
	margin: 0 auto;
	background: #fff;
	border-radius: 10px;
    padding: 70px; /* Reduced padding from 70px */
    margin-top: 0px;  /* Ensure no space above the section */
    margin-bottom: 20px;  /* Adjust bottom margin */
}

.contact-section .form-inner .form-group{
	position: relative;
	margin-bottom: 20px;
}

.contact-section .form-inner .form-group:last-child{
	margin-bottom: 0px;
}

.contact-section .form-inner .message-btn{
	padding-top: 10px;
}

.contact-section .form-inner .form-group input[type='text'],
.contact-section .form-inner .form-group input[type='email'],
.contact-section .form-inner .form-group textarea{
	position: relative;
    display: block;
    width: 100%;
    height: 50px;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    font-size: 16px;
    color: #6E6E6E;
    padding: 10px 20px;
	text-align: left;
    transition: all 500ms ease;
}

.contact-section .form-inner .form-group textarea{
	height: 130px;
	resize: none;
}

.contact-section .form-inner .form-group input:focus,
.contact-section .form-inner .form-group textarea:focus{

}

.contact-section .form-inner .form-group .theme-btn-one{
	padding: 13px 40px;
}

.contact-section .pattern-layer{
	position: absolute;
	left: 0px;
	bottom: 0px;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}


/** contact-style-two **/
/* NEW Contact Section UI/UX */
.contact-section-uiux {
  background-color: #f9f9f9;
  padding: 80px 20px;
  margin-bottom: 60px;
}

.contact-content-box {
  padding-right: 20px;
}

.contact-content-box .subtitle {
  font-size: 14px;
  color: #ff3b3b;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-content-box .title {
  font-size: 36px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

.contact-content-box p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Social Links */
.social-contact {
  display: flex;
  gap: 15px;
  padding: 0;
  list-style: none;
}

.social-contact li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ff3b3b;
  color: #fff;
  font-size: 16px;
  transition: 0.3s ease;
}

.social-contact li a:hover {
  background: #222;
}

/* Contact Form Styling */
.contact-form-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.07);
  text-align: center;
}

.contact-form-box input,
.contact-form-box textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  transition: 0.3s;
}

.contact-form-box input:focus,
.contact-form-box input:hover,
.contact-form-box textarea:focus,
.contact-form-box textarea:hover {
  border: 1px solid #ff3b3b; 
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.2);
  border-radius: 5px;
  outline: none;
}

.contact-form-box input,
.contact-form-box textarea {
  /* Set the default border for the inputs when not focused or hovered. */
  border: 1px solid #e0e0e0; 
  /* Also apply the border-radius to the default state for consistency. */
  border-radius: 5px;
}

.contact-form-box textarea {
  height: 140px;
  resize: none;
}

/* Button */
.btn-submit {
  background: #ff3b3b;
  color: #fff;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background-color: #e60000;
}

/* Animations (if you use wow.js or similar) */
.wow {
  opacity: 0;
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: translateY(0);}
}

.fadeInUp {
  animation-name: fadeInUp;
}

.google-map-section {
    padding: 60px 0; /* Adds 60px padding top and bottom */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-content-box {
    text-align: center;
    padding-right: 0;
  }
  .social-contact {
    justify-content: center;
  }
  .contact-form-box {
    padding: 25px;
  }
  .contact-content-box .title {
    font-size: 28px;
  }
}

.contact-section-super {
  padding: 60px 20px;
  background: linear-gradient(to bottom, #ffffff, #f3f4f8);
  font-family: 'Inter', sans-serif;
}

.contact-section-super .container {
  max-width: 850px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header span {
  color: #e32636;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.3px;
}

.contact-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 14px;
  color: #111;
}

.contact-header p {
  font-size: 17px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.input-group input,
.input-group textarea {
  padding: 16px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  color: #333;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group textarea {
  resize: vertical;
  min-height: 120px;
}

.input-group label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 14px;
  color: #aaa;
  background: white;
  padding: 0 6px;
  pointer-events: none;
  transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #e32636;
  box-shadow: 0 0 0 4px rgba(227, 38, 54, 0.08);
  outline: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 12px;
  color: #e32636;
}

.input-group.full {
  grid-column: 1 / 4;
}

.form-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.form-action .theme-btn-one {
  display: inline-block;
  text-align: center;
}

.theme-btn-one {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #fff !important;
  text-align: center;
  padding: 18px 40px;
  text-transform: capitalize;
  z-index: 1;
  box-shadow: 0px 30px 30px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  transition: all 500ms ease;
}

.theme-btn-one:before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: -1;
  transform: scale(0);
  background: #241E2F;
  transition: all 500ms ease;
}

.theme-btn-one:hover {
  color: #fff !important;
  background: #241E2F;
}

.theme-btn-one:hover:before {
  transform: scale(1);
}

@media (max-width: 767px) {
  /* Existing FAQ styles for mobile */
  .faq-premium-section .faq-item {
    padding: 20px 18px;
  }

  .faq-premium-section .faq-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
  }

  .faq-premium-section .faq-header h3 {
    font-size: 20px;
  }

  .faq-premium-section .faq-content p {
    font-size: 16px;
  }

  /* --- Contact Section Mobile Refinements --- */
  .contact-section-super {
    padding: 60px 15px; /* Adjust vertical padding and horizontal padding */
  }

  .contact-header h2 {
    font-size: 32px; /* Smaller heading for mobile */
  }

  .contact-header p {
    font-size: 15px; /* Slightly smaller paragraph text */
    padding: 0 10px; /* Add slight horizontal padding to prevent text from hitting edges */
  }

  .form-card {
    padding: 25px; /* Reduce form card padding on mobile */
    border-radius: 16px; /* Slightly smaller border-radius */
  }

  /* Ensure input-group 'full' takes full width on smaller screens */
  .input-group.full {
    grid-column: 1 / -1; /* Ensures it spans across all available columns, explicitly */
  }

  /* Adjust input/textarea padding and label size if needed */
  .input-group input,
  .input-group textarea {
    padding: 14px 12px; /* Slightly less padding */
  }

  .input-group label {
    font-size: 13px; /* Slightly smaller label font size */
    top: 12px; /* Adjust label top position */
    left: 14px; /* Adjust label left position */
  }

  .input-group input:focus + label,
  .input-group input:not(:placeholder-shown) + label,
  .input-group textarea:focus + label,
  .input-group textarea:not(:placeholder-shown) + label {
    top: -8px; /* Further adjust label top position when active */
    left: 10px; /* Further adjust label left position when active */
    font-size: 11px; /* Even smaller font size for active label */
  }

  .form-action {
    margin-top: 20px; /* Reduce top margin for the button */
  }

  .form-action .theme-btn-one {
    padding: 15px 30px; /* Smaller button padding */
    font-size: 15px; /* Smaller button font size */
  }
  
  /* Force single column in mobile */
  .contact-section-super .form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Ensure inputs take full width */
  .contact-section-super .input-group {
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-section-super .input-group input,
  .contact-section-super .input-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Make floating labels adjust for mobile */
  .contact-section-super .input-group label {
    white-space: nowrap; /* prevent label breaking into two lines */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 20px);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.input-group.full {
  grid-column: 1 / -1; /* Spans across both columns */
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group input,
.input-group textarea {
  width: 100%;
}


/* Overlay background with blur */
#successPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup box */
#successPopup .popup-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s ease;
}

/* Title */
#successPopup h2 {
  color: #28a745;
  font-size: 20px;
  margin-bottom: 8px;
}

/* Close button */
#successPopup .popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === Page-title mobile fix === */
.page-title { 
  position: relative; 
  overflow: hidden;
}

/* Ensure the background layer always fills the section */
.page-title .bg-layer {
  position: absolute;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  background-repeat: no-repeat !important;
  background-size: cover !important;     /* keep desktop look */
  background-position: center center !important;
  z-index: 0;
}

/* Keep text above the bg */
.page-title .content-box {
  position: relative;
  z-index: 1;
}

/* ===== Captcha Section ===== */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;            /* space between items */
  margin: 24px 0;       /* space above and below row */
}

.captcha-row img {
  border: 1px solid #ddd;
  border-radius: 8px;
  height: 42px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.refresh-captcha {
  background: #e32636;
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Captcha input box inside the row */
.captcha-row .input-group {
  flex: 1; /* makes the input expand to fill remaining space */
  margin: 0;
}

/* Error message under captcha */
#captchaError {
  display: none;
  color: #e32636;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
}

/* Mobile adjustment: stack captcha row */
@media (max-width: 767px) {
  .captcha-row {
    flex-direction: column;
    align-items: stretch;
  }
  .captcha-row img,
  .captcha-row .refresh-captcha,
  .captcha-row .input-group {
    width: 100%;
  }
}
/* Captcha Input Error Message */
.input-group .error-text {
  display: none;
  position: absolute;
  left: 0;
  bottom: -25px;   /* push slightly lower so no overlap */
  color: #e32636;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}


/* Banner Image Start */
.page-title .bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-image: url(banner/contact-us.jpg);
}

/* CSS for Mobile View (active on screens up to 767px wide) */
@media (max-width: 767px) {
  .page-title .bg-layer {
    background-image: url(banner/contact-us-m.jpg);
    background-position: center;
    background-size: cover;
  }
}
/* Banner Image End*/

