/* =========================================================
   CONTACT HERO
========================================================= */

.modern-contact-hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0;
  background: linear-gradient(135deg, #001b57 0%, #00448b 100%);
  margin: 145px auto 0px;
}

.hero-overlay {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 520px;
  height: 520px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.modern-contact-hero .container {
  position: relative;
  z-index: 2;
}

.modern-contact-hero .row {
  align-items: center;
}

.hero-content {
  padding-right: 45px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  margin-bottom: 24px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
}

.hero-content h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
}

.hero-content h1 span {
  color: #8ed0ff;
}

.hero-content p {
  max-width: 550px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.9;
}

/* =========================================================
   HIGHLIGHTS
========================================================= */

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.highlight-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.highlight-box i {
  color: #fff;
  font-size: 18px;
}

.highlight-box span {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* =========================================================
   CONTACT FORM
========================================================= */

.modern-contact-form {
  width: 100%;
  padding: 23px 30px !important;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.18);
}

.form-top {
  margin-bottom: 26px;
  text-align: left;
}

.form-top h3 {
  margin: 0 0 8px;
  color: #001b57;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
}

.form-top p {
  margin: 0;
  color: #6c7a96;
  font-size: 14px;
  line-height: 1.7;
}

/* Form grid */
.modern-contact-form form {
  width: 100%;
}

.modern-contact-form .row {
  align-items: flex-start;
}

.form-group-modern {
  width: 100%;
  margin-bottom: 18px;
}

.form-group-modern label {
  display: block;
  margin-bottom: 8px;
  color: #001b57;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.form-group-modern .form-control,
.form-group-modern .form-select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 12px 16px;
  color: #26364f;
  font-size: 14px;
  line-height: 1.5;
  background-color: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group-modern textarea.form-control {
  min-height: 115px;
  height: auto;
  resize: vertical;
  padding-top: 14px;
}

.form-group-modern .form-control::placeholder {
  color: #9aa8bb;
}

.form-group-modern .form-control:focus,
.form-group-modern .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.form-group-modern .form-control.is-invalid,
.form-group-modern .form-select.is-invalid {
  border-color: #dc3545;
}

.form-error {
  display: block;
  margin-top: 5px;
  color: #dc3545;
  font-size: 12px;
}

/* =========================================================
   MOBILE NUMBER FIELD
========================================================= */

.mobile-group {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.mobile-group .form-select {
  flex: 0 0 112px;
  width: 112px;
}

.mobile-group .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

/* =========================================================
   CHECKBOX AND SUBMIT
========================================================= */

.form-bottom {
  margin-top: 6px;
}

.check-box-modern {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.check-box-modern input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #075d9d;
  cursor: pointer;
}

.check-box-modern label {
  margin: 0;
  color: #5f6f8f;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.check-box-modern a {
  color: #075d9d;
  text-decoration: underline;
}

.submit-btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  background: linear-gradient(135deg, #00448b, #0d6efd);
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
}

.submit-btn-modern:hover {
  color: #fff;
  background: linear-gradient(135deg, #00366f, #095dcc);
  box-shadow: 0 10px 24px rgba(0, 68, 139, 0.25);
  transform: translateY(-2px);
}

.submit-btn-modern:active {
  transform: translateY(0);
}

.submit-btn-modern:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   OFFICE SECTION
========================================================= */

.modern-office-section {
  padding: 80px 0;
  background: #f7faff;
}

.section-heading {
  margin-bottom: 45px;
  text-align: center;
}

.section-heading > span {
  color: #00448b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-heading h2 {
  margin: 12px 0;
  color: #001b57;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
}

.section-heading p {
  max-width: 700px;
  margin: 0 auto;
  color: #667792;
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   OFFICE CARD
========================================================= */

.office-main-card {
  padding: 38px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

.custom-office-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 35px;
  border: 0;
}

.custom-office-tabs .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 14px 22px;
  color: #00448b;
  font-size: 14px;
  font-weight: 700;
  background: #eef4ff;
  border: 0;
  border-radius: 14px;
}

.custom-office-tabs .nav-link:hover {
  color: #00448b;
  background: #e1edff;
}

.custom-office-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #00448b, #0d6efd);
}

/* =========================================================
   OFFICE INFORMATION
========================================================= */

.office-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 24px;
}

.office-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #00448b, #0d6efd);
  border-radius: 18px;
}

.office-icon i {
  color: #fff;
  font-size: 28px;
}

.office-content {
  flex: 1;
  min-width: 0;
}

.office-content h4 {
  margin: 0 0 10px;
  color: #001b57;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.office-content p {
  margin: 0;
  color: #667792;
  font-size: 14px;
  line-height: 1.9;
}

/* =========================================================
   SUPPORT CARD
========================================================= */

.support-card {
  height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.support-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.support-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  background: #eef4ff;
  border-radius: 16px;
}

.support-icon i {
  color: #00448b;
  font-size: 24px;
}

.support-top h5 {
  margin: 0;
  color: #001b57;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.support-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.support-item:last-child {
  margin-bottom: 0;
}

.support-item i {
  flex: 0 0 16px;
  margin-top: 5px;
  color: #00448b;
  font-size: 15px;
}

.support-item a,
.support-item span {
  color: #5f6f8f;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
  text-decoration: none;
}

.support-item a:hover {
  color: #00448b;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
  .modern-contact-hero {
    padding: 65px 0;
    margin-top:110px;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 45px;
    text-align: center;
  }

  .hero-content p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-highlights {
    justify-content: center;
  }

  .modern-contact-form {
    max-width: 650px;
    margin: 0 auto;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .office-main-card {
    padding: 28px;
  }

  .custom-office-tabs .nav-link {
    flex: 1 1 220px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .modern-contact-hero {
    padding: 48px 0;
  }

  .hero-overlay {
    width: 360px;
    height: 360px;
  }

  .hero-content h1 {
    font-size: 35px;
  }

  .hero-content p {
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-highlights {
    flex-direction: column;
    gap: 10px;
  }

  .highlight-box {
    width: 100%;
    justify-content: flex-start;
  }

  .modern-contact-form {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .form-top h3 {
    font-size: 25px;
  }

  .form-top p {
    font-size: 13px;
  }

  .mobile-group {
    flex-direction: column;
    gap: 10px;
  }

  .mobile-group .form-select {
    flex: 1 1 auto;
    width: 100%;
  }

  .modern-office-section {
    padding: 55px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .section-heading p {
    font-size: 13px;
  }

  .office-main-card {
    padding: 20px;
    border-radius: 22px;
  }

  .custom-office-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .custom-office-tabs .nav-link {
    width: 100%;
    min-width: 100%;
  }

  .office-info-card {
    flex-direction: column;
    padding: 22px;
  }

  .office-content h4 {
    font-size: 22px;
  }

  .support-card {
    padding: 20px;
  }

  .support-top {
    align-items: flex-start;
  }

  .support-top h5 {
    font-size: 18px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 30px;
  }

  .modern-contact-form {
    padding: 20px 15px;
  }

  .form-group-modern .form-control,
  .form-group-modern .form-select {
    height: 49px;
    padding: 10px 13px;
  }

  .submit-btn-modern {
    min-height: 52px;
  }
}


/* =========================================================
   MODERN ENQUIRY FORM
========================================================= */

.modern-enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #e4ebf4;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 27, 87, 0.12);
}

/* Remove default spacing */
.modern-enquiry-form input,
.modern-enquiry-form select,
.modern-enquiry-form button {
  margin: 0;
}

/* Text and email inputs */
.modern-enquiry-form > input[type='text'],
.modern-enquiry-form > input[type='email'],
.modern-enquiry-form > input[type='tel'] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: #26364f;
  font-size: 14px;
  background: #fff;
  border: 1px solid #d6e0ed;
  border-radius: 12px;
  outline: none;
  transition: 0.25s ease;
}

.modern-enquiry-form > input::placeholder {
  color: #9aa8bb;
}

.modern-enquiry-form > input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Select fields */
.modern-enquiry-form > .form-select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: #26364f;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #d6e0ed;
  border-radius: 12px;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.modern-enquiry-form > .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Country code and mobile number */
.modern-enquiry-form .country_mNO {
  width: 100%;
  margin: 0;
}

.modern-enquiry-form .country_mNO > div {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.modern-enquiry-form .country_mNO .form-select {
  flex: 0 0 145px;
  width: 145px;
  height: 52px;
  padding: 0 12px;
  color: #26364f;
  font-size: 13px;
  background: #fff;
  border: 1px solid #d6e0ed;
  border-radius: 12px;
  outline: none;
  box-shadow: none;
}

.modern-enquiry-form .country_mNO input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  color: #26364f;
  font-size: 14px;
  background: #fff;
  border: 1px solid #d6e0ed;
  border-radius: 12px;
  outline: none;
}

.modern-enquiry-form .country_mNO input:focus,
.modern-enquiry-form .country_mNO .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Toll-free text */
.modern-enquiry-form .toll_free {
  margin: -4px 0 0;
  color: #00448b;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* Email information box */
.modern-enquiry-form .yellow_box {
  padding: 14px 16px;
  background: #fff8dc;
  border: 1px solid #f2df91;
  border-radius: 12px;
}

.modern-enquiry-form .yellow_box h4 {
  margin: 0 0 4px;
  color: #6c5200;
  font-size: 14px;
  font-weight: 800;
}

.modern-enquiry-form .yellow_box p {
  margin: 0;
  line-height: 1.5;
}

.modern-enquiry-form .yellow_box a {
  color: #765800;
  font-size: 13px;
  word-break: break-word;
  text-decoration: none;
}

.modern-enquiry-form .yellow_box a:hover {
  text-decoration: underline;
}

/* Error message */
.modern-enquiry-form .text-red-600 {
  margin: -4px 0 0;
  color: #dc3545 !important;
  font-size: 13px;
  line-height: 1.4;
}

/* Submit button */
.modern-enquiry-form > button {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  padding: 13px 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, #00448b, #0d6efd);
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  transition: 0.25s ease;
}

.modern-enquiry-form > button:hover {
  background: linear-gradient(135deg, #00366f, #095dcc);
  box-shadow: 0 10px 22px rgba(0, 68, 139, 0.22);
  transform: translateY(-2px);
}

.modern-enquiry-form > button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Consent checkbox */
.modern-enquiry-form .check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: -2px;
  padding-top: 2px;
}

.modern-enquiry-form .check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #075d9d;
}

.modern-enquiry-form .check span {
  color: #687891;
  font-size: 11px;
  line-height: 1.55;
}

/* OTP form */
.modern-enquiry-form .otp_detailsSec {
  margin: 0;
  color: #001b57;
  font-size: 24px;
  font-weight: 800;
}

.modern-enquiry-form .form-select {
  width: 100%;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767px) {
  .modern-enquiry-form {
    max-width: 100%;
    padding: 24px 18px;
    gap: 14px;
    border-radius: 18px;
  }

  .modern-enquiry-form .country_mNO > div {
    flex-direction: column;
    gap: 14px;
  }

  .modern-enquiry-form .country_mNO .form-select {
    flex: 1;
    width: 100%;
  }

  .modern-enquiry-form > input[type='text'],
  .modern-enquiry-form > input[type='email'],
  .modern-enquiry-form > input[type='tel'],
  .modern-enquiry-form > .form-select,
  .modern-enquiry-form .country_mNO input,
  .modern-enquiry-form .country_mNO .form-select {
    height: 50px;
  }

  .modern-enquiry-form .check span {
    font-size: 10.5px;
  }
}

@media (max-width: 400px) {
  .modern-enquiry-form {
    padding: 20px 14px;
  }

  .modern-enquiry-form > input,
  .modern-enquiry-form > select,
  .modern-enquiry-form .country_mNO input,
  .modern-enquiry-form .country_mNO select {
    font-size: 13px;
  }
}


/* FINAL CONTACT FORM FIX */

.modern-contact-form {
  padding: 35px 40px !important;
}

.contact-form-design {
  width: 100% !important;
  margin: 0 !important;
}

.contact-form-design .form-group-modern {
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.contact-form-design input,
.contact-form-design textarea,
.contact-form-design select {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 5px !important;
  border: 1px solid #ccc;
}

.contact-form-design input,
.contact-mobile-group select {
    height: 45px !important;
    min-height: 45px !important;
    padding: 12px 20px !important;
}

.contact-form-design textarea {
  height: 110px !important;
  min-height: 110px !important;
  padding: 14px 20px !important;
  resize: none !important;
}

.contact-mobile-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.contact-mobile-group select {
  flex: 0 0 175px !important;
  width: 175px !important;
  min-width: 175px !important;
  padding-right: 38px !important;
}

.contact-mobile-group input {
  flex: 1 1 auto !important;
  width: auto !important;
}

.contact-consent {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 4px 0 20px !important;
  padding: 0 !important;
}

.contact-consent input {
  flex: 0 0 auto !important;
  width: 19px !important;
  height: 19px !important;
  min-height: 19px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.contact-consent label {
  margin: 0 !important;
  color: #5f6f8f !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
}

.contact-submit-btn {
  display: flex !important;
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  border: 0 !important;
  border-radius: 18px !important;
  color: #ffffff !important;
  background: linear-gradient(100deg, #034f9d, #1478ff) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: pointer !important;
}

.contact-submit-btn:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}

.contact-error {
  margin: 8px 0 12px !important;
  color: #dc3545 !important;
  font-size: 14px !important;
}

.contact-change-btn {
  display: block !important;
  margin: 12px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #064e9d !important;
  background: transparent !important;
  font-size: 14px !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

/* OTP form */

.contact-form-design .otp-info {
  margin: 8px 0 18px !important;
  color: #667085 !important;
  font-size: 14px !important;
}

/* Mobile */

@media (max-width: 767px) {
  .modern-contact-form {
    padding: 25px 20px !important;
  }

  .contact-mobile-group {
    gap: 8px !important;
  }

  .contact-mobile-group select {
    flex: 0 0 125px !important;
    width: 125px !important;
    min-width: 125px !important;
    padding: 12px !important;
    font-size: 14px !important;
  }

  .contact-form-design input,
  .contact-form-design textarea {
    font-size: 16px !important;
  }

  .contact-consent label {
    font-size: 14px !important;
  }
}

.contact-mobile-group select {
  width: 180px;
  min-width: 180px;
  height: 58px;
  padding: 14px 48px 14px 25px;
  border: 1px solid #d8e1ee;
  border-radius: 22px;
  color: #555;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  background-size: 18px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}