.contact-section {
    padding: 60px 10%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.contact-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #01354d;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

/* Contact Form */
.contact-form {
    flex: 1;
    min-width: 320px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.map-wrap {
    width: 100%;
    height: 100%;        /* allow full vertical stretching */
    flex: 1;             /* makes the map area grow inside a flex column */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    top: 12px;
    left: 14px;
    color: #01354d;
    pointer-events: none;
    z-index: 5;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 12px 12px 60px;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #ffc107;
    box-shadow: 0 0 8px rgba(201,156,51,0.4);
}

/* Fix alignment for select fields with icons */
.input-group select.form-control {
  height: 45px;          /* same height as other inputs */
  padding: 10px;         /* adjust padding for vertical centering */
  border-left: 0;        /* remove double border between icon and select */
  box-shadow: none;      /* keep flat style like inputs */
}

/* Optional: make text vertically aligned in dropdown */
.input-group select.form-control option {
  padding: 8px 12px;
}



/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: #01354d;     /* navy */
    color: #ffc107;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(1, 20, 30, 0.15);
    transition: 0.2s ease;
}

.btn-submit:hover {
    color: #01354d;
    background: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(1, 20, 30, 0.20);
}


/* Contact Info */
.contact-info {
    flex: 1;
    min-width: 320px;
}

.contact-info iframe {
    width: 100%;
    height: 400px;
    border: 2px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* GRID stays same */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
}

/*-------------- FLIP LOGIC --------------*/
.flip-card {
  position: relative;
  width: 100%;
  height: 220px;
  perspective: 1200px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* FRONT + BACK BASE */
.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
}

/* FRONT side – uses actual background image */
.flip-front {
  background-size: cover;
  background-position: center;
}

/* BACK side – NO background image */
.flip-back {
  background: #0a1f2b;        /* solid dark slab */
  transform: rotateY(180deg);
  font-size: 1rem;
  line-height: 1.5;
}

/*-------------- IMAGES --------------*/
.bangalore-office .flip-front {
  background-image: url('/static/images/bengaluru_palace.jpg');
}

.mumbai-office .flip-front {
  background-image: url('/static/images/gateway_of_india (2).jpg');
}

.delhi-office .flip-front {
  background-image: url('/static/images/delhi.jpg');
}

.kolkata-office .flip-front {
  background-image: url('/static/images/howrah_bridge.jpg');
}

.ranchi-office .flip-front {
  background-image: url('/static/images/ranchi_rock_garden.jpg');
}

.ahmedabad-office .flip-front {
  background-image: url('/static/images/ahmedabad.jpg');
}

/* Container for Call Us / Mail Us */
.contact-quick-info {
    display: flex;
    gap: 16px;
    margin-top: 18px;
}

.contact-card {
    background: #01354d;
    color: #ffc107;
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: 14px;
    flex: 1;
    box-shadow: 0 6px 20px rgba(1, 20, 30, 0.10);
    border: 1px solid rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

.contact-card:hover {
    background: #ffc107;
    color: #01354d;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(1, 20, 30, 0.15);
}


/* Icon circle */
.icon-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;   
    min-height: 44px;
    border-radius: 50%;
    background: #01354d;        /* navy */
    display: flex;
    flex-shrink: 0;  
    align-items: center;
    justify-content: center;
    color: #ffc107;             /* gold */
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(1, 20, 30, 0.15);
}

.icon-circle:hover {
  background-color: #ffc107;;
}

/* Text inside cards */
.info-text h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.info-text p {
  margin: 0;
  font-size: 14px;
}

/* FRONT: slightly darkened background image */
.office-card-front {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  border-radius: 26px;
  overflow: hidden;
}

/* dark overlay on ALL office images */
.office-card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);   /* amount of darkening */
}

/* make sure text stays above overlay */
.office-card-front h3 {
  position: relative;
  z-index: 1;
}

/* BACK: softer unique color (change if you want another shade) */
.office-card-back {
  border-radius: 26px;       
  color: #1f2933;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

/* Remove background card & shadow from the right section */
.head-office-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    grid-template-columns: 1fr; /* Stack map & address */
    gap: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 360px;
    width: 100%;
    margin-left: auto; 
}

/* Map clean & modern */
.head-office-map {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    flex: 1;
}

.head-office-map iframe {
    border: none !important;
    width: 100%;
    height: 100%;
}


:root{
  --navy-900: #01354d;   /* primary deep navy */
  --navy-700: #00304e;   /* slightly different navy used for accents */
  --accent-gold: #f2b400; /* warm accent for icons/badges */
}

/* Card */
/*.office-info{*/
/*  background: transparent;*/
/*  margin-top: 10px;*/
/*  padding: 20px;*/
/*  border-radius: 14px;*/
  /*box-shadow: 0 8px 26px rgba(1,53,77,0.08); */
  /*border: 1px solid rgba(1,53,77,0.04);*/
/*  position: relative;*/
/*  transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease;*/
/*}*/

.office-info{
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}


/* Header row: label+badge aligned */
.office-card-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

/* Small uppercase label */
.office-label{
  font-size: 11px;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: .8px;
  opacity: .8;
  margin: 0 0 4px 0;
}

/* Office name: larger and prominent */
.office-name{
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0;
}

/* Minimal badge */
.office-badge{
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(180deg, var(--accent-gold), #e6b800);
  color: #082020;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(242,180,0,0.14);
  border: 1px solid rgba(0,0,0,0.04);
  transform-origin: center;
  white-space: nowrap;
}

/* Address container */
.office-address{
  padding: 14px;
  margin-top: 10px;
}
.office-address p{
  margin: 4px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-700);
  line-height: 1.4;
}

/* subtle hover effect for desktop */
.office-info:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(1,53,77,0.09);
}



/* Mobile responsiveness */
@media (max-width: 700px) {
    .confetti-webm {
        width: 95px;
        right: -5px;
        top: -5px;
    }

    .head-office-card {
      max-width: 100% !important;
    }

    .office-badge {
        font-size: 12px;
        padding: 4px 8px;
    }

    .office-card-header {
      display: flex;
    }
}










/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-quick-info {
        flex-direction: column;
    }

    .contact-card {
        width: 100%;
    }

    .office-info {
        padding: 16px;
    }
    .office-address {
        font-size: 14px;
    }

    .office-grid { 
      grid-template-columns: 1fr; 
      text-align: center; 
    }
}


/* --- Simple: unique soft gradients for office cards --- */
.office-card-back { 
  border-radius:18px; 
  padding:24px;
  background: linear-gradient(135deg, #e8f4f8, #cbe5ee);
  color: #01354d;
  box-shadow:0 8px 26px rgba(0,0,0,.06); 
}





/* --- Simple mobile/form fixes: keep inputs inside their card --- */
.contact-card,
.contact-form,
.contact-grid { box-sizing:border-box; width:100%; max-width:100%; overflow:hidden; }

/* Make all form controls fit and behave */
.contact-card input,
.contact-card textarea,
.contact-form input,
.contact-form textarea,
.contact-card select {
  box-sizing:border-box;
  width:100% !important;
  max-width:100% !important;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.08);
  background:#fff;
  margin:0 0 12px 0;
}

/* Stack multi-column forms on small screens and make submit full-width */
@media (max-width:880px){
  .contact-grid { display:grid !important; grid-template-columns:1fr !important; gap:12px !important; }
  .contact-card, .contact-form { padding:16px !important; }
  .contact-card button, .contact-form button, .contact-card .btn, .contact-form .btn {
    width:100% !important; display:block;
  }
}

.contact-form .input-group input,
.contact-form .input-group textarea {
    padding-left: 40px !important;
}
