.contact-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 70vh;
}

#content-wrap {
  padding-bottom: 0rem;
  margin-bottom: 0px;
}

.contact-image {
  flex: 1;
  min-width: 50%;
}

.contact-info {
  flex: 1;
  min-width: 50%;
  background-color: white;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Lato';
}

.contact-info h2 {
  font-family: 'Quilon-Regular', sans-serif; 
  color:#5a4633; 
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  text-align: left;

}

.contact-box {
  flex: 1 1 200px;
}

.contact-box h3 {
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 10px;
}

.contact-box p { 
  font-size: 16px;
  line-height: 1.5;
}

.contact-box a {
  text-decoration: none;
  border-bottom: 1px solid grey;
  color: inherit;
}

.contact-box i {
  margin-right: 8px;
  color: #594835;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 40px;
}

.contact-section img {
  width: 100%;
  max-width: 450px;
  border-radius: 0px 0px 20px 0px;
  object-fit: cover;
}

.contact-info {
  max-width: 450px;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.contact-info h2 span {
  color: #4a7ac7;
}

.contact-box h3 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #555;
}

.contact-box p {
  margin: 0;
  font-size: 1.1rem;
}

.contact-box a {
  color: #000;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}


:root{
  --mr-brown:#5a4633;      
  --mr-brown-900:#4b3a2c;  
  --mr-gold:#f7c948;      
  --mr-gold-700:#e0b63f;   
  --mr-cream:#fffaf2;      
  --mr-line:#e9dfcf;      
}

/* Section wrapper */
.contact-form-section{
  background: linear-gradient(180deg, var(--mr-cream), #fff);
  border-radius: 24px;
  padding: 48px 28px;
  box-shadow: 0 12px 28px rgba(75,58,44,.15);
  border: 1px solid var(--mr-line);
  position: relative;
  overflow: hidden;
}

/* thin gold accent bar on top */
.contact-form-section::before{
  content:"";
  position:absolute;
  top:0; left:0;
  width:100%; height:6px;
  background: var(--mr-gold);
}

/* Heading */
.contact-form-section h3{
  font-family: 'Quilon-Regular', sans-serif; 
  font-size:2rem;
  color: var(--mr-brown);
  text-align:center;
  margin-bottom: 1.25rem;
  letter-spacing:.2px;
}

/* Labels */
.contact-form-section .form-label{
  color: var(--mr-brown-900);
  font-weight:bold;
}

/* Inputs / Textarea */
.contact-form-section .form-control{
  background:#fff;
  border:1.5px solid var(--mr-line);
  border-radius:14px;
  padding:.9rem 1rem;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s;
  box-shadow: 0 1px 0 rgba(0,0,0,.02) inset;
}

.contact-form-section .form-control::placeholder{
  color:#9b8f83;
}

/* Focus + valid/invalid states (works with Bootstrap validation) */
.contact-form-section .form-control:focus{
  border-color: var(--mr-gold);
  box-shadow: 0 0 0 .2rem rgba(247,201,72,.25);
  background:#fff;
  outline:0;
}
.contact-form-section .form-control.is-valid,
.contact-form-section.was-validated .form-control:valid{
  border-color:#3fbf77;
}
.contact-form-section .form-control.is-invalid,
.contact-form-section.was-validated .form-control:invalid{
  border-color:#dc3545;
}

/* Button */
.contact-form-section .btn-primary{
  background: var(--mr-gold);
  color: var(--mr-brown-900);
  border:none;
  border-radius: 999px;
  padding: 12px 36px;
  font-weight:700;
  letter-spacing:.3px;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 14px rgba(247,201,72,.28);
}
.contact-form-section .btn-primary:hover,
.contact-form-section .btn-primary:focus{
  background: var(--mr-gold-700);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(224,182,63,.28);
}
.contact-form-section .btn-primary:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(224,182,63,.22);
}

/* Helper text */
.contact-form-section .text-muted{
  color:#7f7368 !important;
}

/* Spacing tweaks */
.contact-form-section .row.g-3{ row-gap:1.15rem; }
.contact-form-section .mt-3{ margin-top:1rem !important; }
.contact-form-section .mt-4{ margin-top:1.25rem !important; }

/* Responsive */
@media (max-width: 768px){
  .contact-form-section{ padding:36px 18px; border-radius:20px; }
  .contact-form-section h3{ font-size:1.7rem; }
}


/* Responsive */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    align-items: center;
  }
}


/* Responsive Styling for Mobile */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }

  .contact-image,
  .contact-info {
    min-width: 100%;
    flex: none;
  }

  .contact-image {
    height: 200px;
    margin-top: 0px;
  }

  .contact-image img {
    height: 200px;
    object-fit: cover;
  }

  .contact-info {
    padding: 40px 20px;
  }

  .contact-info h2 {
    font-size: 32px;
    text-align: center;
  }

  .contact-details {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .contact-box {
    flex: 1 1 100%;
  }
}




/* Desktop/tablet ≥992px: two equal columns */
@media (min-width: 992px){
  .contact-section{
    display: grid;                     /* override flex */
    grid-template-columns: 1fr 1fr;    /* 50/50 split */
    gap: 40px;
    align-items: stretch;
  }

  .contact-image{
    min-height: 480px;
    overflow: hidden;
  }
  .contact-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;                  /* no distortion */
    max-width: none;                    /* override older 450px cap */
    display: block;
  }

  .contact-info{
    text-align: center;                /* centers all text inside */
    align-items: center;               /* works with flex container */
    max-width: none;                    /* allow full half-width */
    background: #fff;
    border-radius: 24px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-details{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
}

/* <992px: stack nicely */
@media (max-width: 991.98px){
  .contact-image{ height:300px; border-radius: 0px 0px 0px 20px; overflow: hidden; }
  .contact-image img{ height:100%; max-width:none; object-fit:cover; }
  .contact-info{ padding:40px 24px; border-radius: 20px; }
}

@media (max-width: 991.98px){
  .contact-details{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
  }

    .contact-details {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  /* stop items from stretching vertically */
  .contact-box{
    flex: 0 0 auto !important;     /* overrides flex: 1 1 200px */
    width: 100%;
    margin: 0;
  }

}

