.ag-contact-section {
  padding: 60px 20px; /* reduced from 80 to avoid scroll */
  background: linear-gradient(135deg, #f5f7fa, #eef1f5);
  min-height: 100vh;              /* Full screen height */
  display: flex;
  align-items: center;            /* Vertical center entire section */
}

.ag-contact-container {
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

.ag-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;   /* 🔥 THIS FIXES VERTICAL ALIGNMENT */
}

/* ================= FORM ================= */

.ag-form-wrapper {
  background: #ffffff;
  padding: 80px 40px;   /* slightly reduced to prevent scroll */
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.ag-form-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ag-form-subtitle {
  margin-bottom: 30px;
  color: #666;
}

.ag-form-group {
  position: relative;
  margin-bottom: 10px;
}

.ag-input,
.ag-textarea,
.ag-select {
  width: 100%;
  padding: 15px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  background: #f9fafc;
  transition: all 0.3s ease;
  outline: none;
}

.ag-input:focus,
.ag-textarea:focus,
.ag-select:focus {
  border-color: #a10000;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(161, 0, 0, 0.08);
}

.ag-form-group label {
  position: absolute;
  left: 14px;
  top: 15px;
  font-size: 14px;
  color: #777;
  background: #fff;
  padding: 0 6px;
  transition: 0.3s ease;
  pointer-events: none;
}

.ag-form-group.ag-filled label,
.ag-input:focus + label,
.ag-textarea:focus + label {
  top: -9px;
  font-size: 12px;
  color: #a10000;
}

.ag-error {
  font-size: 12px;
  color: #d10000;
  margin-top: 6px;
  display: block;
  min-height: 14px;
}

.ag-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, #a10000, #7a0000);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

.ag-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(161, 0, 0, 0.3);
}

.ag-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ================= COMPANY INFO ================= */

.ag-company-info {
  background: #111;
  color: #fff;
  padding: 45px;
  border-radius: 16px;

  display: flex;              /* 🔥 Added */
  flex-direction: column;     
  justify-content: center;    /* 🔥 Vertical center inside */
  height: 100%;
}

.ag-company-info h3 {
  margin-bottom: 30px;
  font-size: 22px;
}

.ag-info-box {
  margin-bottom: 22px;
}

.ag-info-box h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #ccc;
}

.ag-info-box a {
  color: #fff;
  text-decoration: none;
  line-height: 1.6;
  transition: 0.3s;
}

.ag-info-box a:hover {
  color: #ff4d4d;
}

/* ================= MOBILE ================= */

@media (max-width: 992px) {
  .ag-contact-section {
    padding: 60px 20px;
    min-height: auto;
  }

  .ag-contact-grid {
    grid-template-columns: 1fr;
  }

  .ag-company-info {
    margin-top: 40px;
  }
}
