/* ==========================================================================
   PREMIUM CONTACT SECTION STYLING (GLASSMORPHISM & FLOATING LABELS)
   ========================================================================== */

.contact_section {
  position: relative;
  padding: 130px 8%;
  background-color: var(--bg-about, #ffffff);
  /* Light tech layout grid texture */
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  color: var(--text-light, #222);
  overflow: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  z-index: 1;
}

body.dark .contact_section {
  background-color: var(--bg-dark, #0e0e1a);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  color: var(--text-dark, #eaeaf0);
}

/* Background Soft Glows */
.contact_blur_circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.contact_blur_1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(99, 102, 241, 0.03) 70%);
  top: 10%;
  left: -120px;
}

.contact_blur_2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(37, 99, 235, 0.03) 70%);
  bottom: 20%;
  right: -100px;
}

body.dark .contact_blur_1 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(37, 99, 235, 0.04) 70%);
}

body.dark .contact_blur_2 {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(99, 102, 241, 0.04) 70%);
}

.contact_section_container {
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.contact_section_header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.contact_section_subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary, #081f62);
  margin-bottom: 12px;
  display: block;
}

body.dark .contact_section_subtitle {
  color: #3b82f6;
}

.contact_section_main_title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary, #081f62) 0%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark .contact_section_main_title {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact_section_desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(34, 34, 34, 0.7);
}

body.dark .contact_section_desc {
  color: rgba(234, 234, 240, 0.7);
}

/* ==========================================================================
   CONTACT COLS GRID
   ========================================================================== */
.contact_grid_wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* ==========================================================================
   LEFT CARD (GLASSMORPHISM & GLOWS)
   ========================================================================== */
.contact_card_info {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 1;
}

body.dark .contact_card_info {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.contact_card_info::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.2px;
  background: linear-gradient(135deg, #2563eb 0%, #818cf8 50%, #6366f1 100%);
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.contact_card_info:hover::after {
  opacity: 1;
}

.contact_card_title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary, #081f62);
  margin-bottom: 15px;
}

body.dark .contact_card_title {
  color: #ffffff;
}

.contact_card_sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(34, 34, 34, 0.65);
  margin-bottom: 35px;
}

body.dark .contact_card_sub {
  color: rgba(234, 234, 240, 0.65);
}

/* Info Parameters List */
.contact_params {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: auto; /* Push social icons to bottom */
}

.contact_param_item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.contact_param_item:hover {
  transform: translateX(4px);
}

.param_icon_wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 18px;
}

body.dark .param_icon_wrap {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
}

.param_details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.param_label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(34, 34, 34, 0.45);
}

body.dark .param_label {
  color: rgba(234, 234, 240, 0.45);
}

.param_val {
  font-size: 15.5px;
  font-weight: 600;
}

/* Inactive/Active colors inside card hover */
.contact_card_info:hover .param_icon_wrap {
  background: #2563eb;
  color: #ffffff;
}

body.dark .contact_card_info:hover .param_icon_wrap {
  background: #3b82f6;
  color: #0e0e1a;
}

/* Left footer Social Icons row */
.contact_socials_wrap {
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 25px;
}

body.dark .contact_socials_wrap {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.contact_socials_title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(34, 34, 34, 0.45);
  margin-bottom: 15px;
}

body.dark .contact_socials_title {
  color: rgba(234, 234, 240, 0.45);
}

.contact_socials {
  display: flex;
  gap: 12px;
}

.contact_social_icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #081f62);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

body.dark .contact_social_icon {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.contact_social_icon:hover {
  transform: translateY(-4px);
  border-color: #2563eb;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.2);
}

body.dark .contact_social_icon:hover {
  border-color: #3b82f6;
  color: #0e0e1a;
  background: #3b82f6;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   RIGHT PANEL (PREMIUM CONTACT FORM & FLOATING LABELS)
   ========================================================================== */
.contact_form_panel {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

body.dark .contact_form_panel {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.contact_form_panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.2px;
  background: linear-gradient(135deg, #2563eb 0%, #818cf8 50%, #6366f1 100%);
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.contact_form_panel:hover::after {
  opacity: 1;
}

/* Pure CSS Floating Form Input block */
.form_field_group {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

.form_field_input {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.45);
  outline: none;
  font-size: 15px;
  color: inherit;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

body.dark .form_field_input {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.form_field_input:focus {
  border-color: #2563eb;
  background: rgba(255, 255, 255, 0.9);
}

body.dark .form_field_input:focus {
  border-color: #3b82f6;
  background: rgba(14, 14, 26, 0.8);
}

.form_field_label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(34, 34, 34, 0.5);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 15px;
  font-weight: 500;
}

body.dark .form_field_label {
  color: rgba(234, 234, 240, 0.5);
}

/* Float logic */
.form_field_input:focus ~ .form_field_label,
.form_field_input:not(:placeholder-shown) ~ .form_field_label {
  top: 0;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: var(--bg-about, #ffffff);
  padding: 2px 8px;
  border-radius: 4px;
  left: 12px;
}

body.dark .form_field_input:focus ~ .form_field_label,
body.dark .form_field_input:not(:placeholder-shown) ~ .form_field_label {
  color: #3b82f6;
  background: var(--bg-dark, #0e0e1a);
}

/* Specific alignments for Textarea element */
.form_field_group textarea.form_field_input {
  height: 140px;
  resize: none;
}

.form_field_group textarea.form_field_input ~ .form_field_label {
  top: 24px;
  transform: none;
}

.form_field_group textarea.form_field_input:focus ~ .form_field_label,
.form_field_group textarea.form_field_input:not(:placeholder-shown) ~ .form_field_label {
  top: -8px;
}

/* Form Action Buttons */
.form_submit_btn {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form_submit_btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

body.dark .form_submit_btn {
  background: #3b82f6;
  color: #0e0e1a;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

body.dark .form_submit_btn:hover {
  background: #60a5fa;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* ==========================================================================
   GOOGLE MAP BLOCK
   ========================================================================== */
.contact_map_wrap {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  line-height: 0;
  height: 350px;
}

body.dark .contact_map_wrap {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.contact_map_wrap iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(0.1);
  transition: filter 0.3s ease;
}

body.dark .contact_map_wrap iframe {
  filter: invert(0.9) hue-rotate(180deg) grayscale(0.4);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991px) {
  .contact_section {
    padding: 100px 6%;
  }
  .contact_grid_wrap {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on Tablet */
    gap: 30px;
  }
  .contact_card_info, .contact_form_panel {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .contact_section {
    padding: 80px 6%;
  }
  .contact_section_header {
    margin-bottom: 40px;
  }
  .contact_grid_wrap {
    grid-template-columns: 1fr; /* 1 column on Mobile */
    gap: 30px;
  }
  .contact_map_wrap {
    height: 280px;
  }
}

@media (max-width: 375px) {
  .contact_section {
    padding: 60px 4%;
  }
}
