/* ================================
   CONTACT SECTION – FORM VERTICALLY CENTERED
   ================================ */

.society-contact-section {
  width: 100%;
  height: 100vh;
  padding: 0 7vw;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.society-contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.society-contact-wrapper {
  width: 100%;
  max-width: 1400px;
  height: 85vh;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5vw;
  position: relative;
  z-index: 1;
}

/* LEFT COLUMN: Heading + Two Boxes Side by Side */
.society-contact-left-column {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  height: 100%;
}

/* Title Block - Left Aligned */
.society-contact-title-block {
  flex-shrink: 0;
}

.society-contact-subtitle {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 0.8vh;
  position: relative;
}

.society-contact-subtitle::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 35px;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 2px;
}

.society-contact-main-title {
  margin: 1.2vh 0 0;
  font-size: 2.3rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.15;
}

/* Two Boxes Container - SIDE BY SIDE */
.society-contact-boxes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  flex: 1;
  min-height: 0;
}

/* Shared Box Styles */
.society-contact-map,
.society-contact-info,
.society-contact-form-wrap {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.society-contact-map:hover,
.society-contact-info:hover,
.society-contact-form-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.1),
    0 16px 32px rgba(0, 0, 0, 0.12);
  border-color: #f59e0b;
}

/* MAP Box - Left side - FIXED FOR IFRAME */
.society-contact-map {
  padding: 0;
  height: 100%;
  min-height: 300px;
  position: relative;
}

.society-contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 16px;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* INFO Box - Right side */
.society-contact-info {
  padding: 3vh 1.8vw;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  height: 100%;
  overflow-y: auto;
}

.society-contact-heading {
  font-size: 1.3rem;
  margin: 0 0 0.5vh;
  font-weight: 700;
  color: #111827;
  position: relative;
  padding-left: 14px;
}

.society-contact-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #f59e0b, #fbbf24);
  border-radius: 3px;
}

.society-contact-line {
  padding: 1.5vh 0;
  border-bottom: 1px solid #f3f4f6;
  transition: padding-left 0.3s ease;
}

.society-contact-line:hover {
  padding-left: 8px;
}

.society-contact-line:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.society-contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.5vh;
  display: block;
}

.society-contact-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
  font-weight: 500;
}

.society-contact-text a {
  color: #f59e0b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.society-contact-text a:hover {
  color: #d97706;
  text-decoration: underline;
}

/* RIGHT COLUMN: FORM Box - VERTICALLY CENTERED */
.society-contact-form-wrap {
  padding: 3.5vh 2.5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.society-contact-form-wrap .society-contact-heading {
  margin: 0 0 2.5vh;
  font-size: 1.4rem;
  font-weight: 700;
  align-self: flex-start;
  width: 100%;
}

/* Form Layout - CENTERED */
.society-contact-form {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  width: 100%;
  max-width: 100%;
}

.society-contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.7vh;
}

.society-contact-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

.society-contact-field input,
.society-contact-field textarea {
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  padding: 1.3vh 1vw;
  font-size: 0.9rem;
  color: #1f2937;
  background: #f9fafb;
  transition: all 0.3s ease;
  font-family: inherit;
  width: 100%;
}

.society-contact-field input:focus,
.society-contact-field textarea:focus {
  outline: none;
  border-color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.society-contact-field textarea {
  min-height: 10vh;
  resize: vertical;
}

/* Submit Button */
.society-contact-btn {
  margin-top: 1.5vh;
  border-radius: 10px;
  padding: 1.5vh 2vw;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
  letter-spacing: 0.02em;
  width: 100%;
}

.society-contact-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.society-contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .society-contact-main-title {
    font-size: 2rem;
  }
  
  .society-contact-wrapper {
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (max-width: 1024px) {
  .society-contact-section {
    height: auto;
    min-height: 100vh;
    padding: 5vh 5vw;
  }
  
  .society-contact-wrapper {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 3vh;
  }
  
  .society-contact-title-block {
    text-align: center;
  }
  
  .society-contact-subtitle::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .society-contact-boxes-container {
    grid-template-columns: 1fr;
  }
  
  .society-contact-form-wrap {
    justify-content: flex-start;
  }
  
  .society-contact-map,
  .society-contact-info,
  .society-contact-form-wrap {
    height: auto;
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .society-contact-section {
    padding: 4vh 5vw;
  }
  
  .society-contact-main-title {
    font-size: 1.75rem;
  }
  
  .society-contact-info,
  .society-contact-form-wrap {
    padding: 3vh 4vw;
  }
  
  .society-contact-map {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .society-contact-main-title {
    font-size: 1.5rem;
  }
  
  .society-contact-subtitle {
    font-size: 0.75rem;
  }
}
