/* ==========================================================================
   YASHOMATI GRAINS - DEDICATED LUXURY CONTACT PAGE STYLES
   Prefix: .ym-contact-* (Isolated from index.html & core components)
   ========================================================================== */

:root {
  --ym-gold-primary: #D4AF37;
  --ym-gold-dark: #9E6D15;
  --ym-gold-light: #F9E7B3;
  --ym-green-deep: #102A1A;
  --ym-green-forest: #1A3022;
  --ym-green-accent: #25452C;
  --ym-cream-bg: #FAF8F2;
  --ym-white: #FFFFFF;
}

/* Section Wrapper */
.ym-contact-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #FAF8F2 0%, #F5F1E6 100%);
  position: relative;
  overflow: hidden;
}

.ym-contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #D4AF37 0%, #1A3022 50%, #D4AF37 100%);
  z-index: 2;
}

/* Section Heading */
.ym-contact-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.ym-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 30px;
  color: var(--ym-gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ym-contact-header h2 {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--ym-green-deep);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.ym-contact-header p {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #4A5B50;
  margin-bottom: 0;
}

/* Contact Info Column (Left) */
.ym-contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ym-contact-info-card {
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(16, 42, 26, 0.05);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.ym-contact-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ym-gold-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ym-contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 42, 26, 0.1);
  border-color: var(--ym-gold-primary);
}

.ym-contact-info-card:hover::before {
  opacity: 1;
}

.ym-contact-icon-box {
  width: 54px;
  height: 54px;
  min-width: 54px;
  background: linear-gradient(135deg, #1A3022 0%, #25452C 100%);
  border: 1px solid var(--ym-gold-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ym-gold-primary);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(16, 42, 26, 0.15);
}

.ym-contact-card-content {
  flex: 1;
}

.ym-contact-card-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ym-green-deep);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.ym-contact-card-content p,
.ym-contact-card-content a {
  font-family: 'Figtree', sans-serif;
  font-size: 14.5px;
  line-height: 22px;
  color: #3D5244;
  margin-bottom: 0;
  text-decoration: none;
  display: block;
}

.ym-contact-card-content a:hover {
  color: var(--ym-gold-dark);
}

.ym-contact-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ym-green-forest) !important;
  background: rgba(212, 175, 55, 0.12);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
}

.ym-contact-link-pill:hover {
  background: var(--ym-green-forest) !important;
  color: #FFFFFF !important;
  border-color: var(--ym-green-forest) !important;
}

/* Banner Card */
.ym-contact-banner-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 30px rgba(16, 42, 26, 0.08);
  margin-top: 4px;
}

.ym-contact-banner-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ym-contact-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 42, 26, 0.3) 0%, rgba(16, 42, 26, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  color: #FFFFFF;
}

.ym-contact-banner-overlay h4 {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.ym-contact-banner-overlay p {
  font-size: 13.5px;
  color: #E2ECD8;
  margin-bottom: 0;
}

/* Contact Form Column (Right) */
.ym-contact-form-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 38px 36px;
  box-shadow: 0 20px 45px rgba(16, 42, 26, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ym-form-header {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ym-form-header h3 {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ym-green-deep);
  margin-bottom: 0;
}

.ym-form-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--ym-gold-dark);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Groups & Inputs */
.ym-form-group {
  margin-bottom: 20px;
  position: relative;
}

.ym-form-label {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #2D4334;
  margin-bottom: 7px;
}

.ym-input-wrapper {
  position: relative;
}

.ym-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ym-gold-dark);
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
}

.ym-form-control {
  width: 100%;
  height: 48px;
  padding: 10px 16px 10px 46px;
  font-family: 'Figtree', sans-serif;
  font-size: 14.5px;
  color: #1A3022;
  background: #FCFBF7;
  border: 1px solid #D6D2C4;
  border-radius: 10px;
  outline: none;
  transition: all 0.25s ease;
}

.ym-form-control:focus {
  background: #FFFFFF;
  border-color: var(--ym-gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.ym-form-control::placeholder {
  color: #8D9991;
  font-size: 14px;
}

textarea.ym-form-control {
  height: 120px;
  padding-top: 14px;
  resize: vertical;
}

.ym-textarea-wrapper .ym-input-icon {
  top: 22px;
  transform: none;
}

/* Custom Styled Select */
.ym-select-control {
  width: 100%;
  height: 48px;
  padding: 10px 16px 10px 46px;
  font-family: 'Figtree', sans-serif;
  font-size: 14.5px;
  color: #1A3022;
  background: #FCFBF7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid #D6D2C4;
  border-radius: 10px;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ym-select-control:focus {
  background-color: #FFFFFF;
  border-color: var(--ym-gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.ym-input-wrapper .nice-select {
  width: 100%;
  height: 48px;
  line-height: 46px;
  padding-left: 46px;
  padding-right: 36px;
  background: #FCFBF7;
  border: 1px solid #D6D2C4;
  border-radius: 10px;
  font-family: 'Figtree', sans-serif;
  font-size: 14.5px;
  color: #1A3022;
  float: none;
  box-sizing: border-box;
}

.ym-input-wrapper .nice-select:hover {
  border-color: var(--ym-gold-primary);
}

.ym-input-wrapper .nice-select:focus,
.ym-input-wrapper .nice-select.open {
  border-color: var(--ym-gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
  background: #FFFFFF;
}

.ym-input-wrapper .nice-select .current {
  color: #1A3022;
  font-weight: 500;
}

.ym-input-wrapper .nice-select .list {
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 30px rgba(16, 42, 26, 0.15);
  background: #FFFFFF;
  margin-top: 6px;
  z-index: 999;
  max-height: 260px;
  overflow-y: auto;
}

.ym-input-wrapper .nice-select .option {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  padding: 10px 18px;
  color: #1A3022;
  transition: all 0.2s ease;
  line-height: 1.5;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.ym-input-wrapper .nice-select .option:hover,
.ym-input-wrapper .nice-select .option.selected.focus {
  background-color: #FAF8F2;
  color: var(--ym-gold-dark);
  font-weight: 600;
}


/* Submit Area */
.ym-form-footer {
  margin-top: auto;
   display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.ym-form-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4A6352;
  font-weight: 500;
}

.ym-form-guarantee i {
  color: var(--ym-gold-primary);
  font-size: 15px;
}

.ym-submit-btn {
  background: linear-gradient(135deg, #1A3022 0%, #25452C 100%);
  color: #FFFFFF;
  border: 1.5px solid var(--ym-gold-primary);
  border-radius: 10px;
  padding: 13px 32px;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(16, 42, 26, 0.2);
  transition: all 0.3s ease;
}

.ym-submit-btn:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  color: #102A1A;
  border-color: #B8860B;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35);
}

.ym-submit-btn i {
  transition: transform 0.25s ease;
}

.ym-submit-btn:hover i {
  transform: translateX(4px);
}

/* Map Section */
.ym-contact-map-section {
  padding: 0 0 90px;
  background: #F5F1E6;
}

.ym-contact-map-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(16, 42, 26, 0.06);
}

.ym-contact-map-card iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

/* Responsive Rules */
@media (max-width: 991px) {
  .ym-contact-section {
    padding: 60px 0 70px;
  }
  .ym-contact-header h2 {
    font-size: 32px;
  }
  .ym-contact-form-card {
    padding: 30px 24px;
    margin-top: 30px;
  }
  .ym-contact-map-card iframe {
    height: 320px;
  }
}

@media (max-width: 575px) {
  .ym-contact-header h2 {
    font-size: 26px;
  }
  .ym-contact-info-card {
    padding: 18px 16px;
    gap: 14px;
  }
  .ym-contact-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 16px;
  }
  .ym-contact-form-card {
    padding: 24px 18px;
  }
  .ym-submit-btn {
    width: 100%;
    justify-content: center;
  }
}
