/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

.cf7-grid{display:grid;grid-template-columns:1fr;gap:16px;}
.cf7-grid .col-12{grid-column:1/-1;}

@media (min-width: 768px){
  .cf7-grid{grid-template-columns:1fr 1fr;}
}

/* Overall grid setup */
.wpcf7 form .cf7-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px; /* smaller vertical gap */
}

@media (min-width: 768px) {
  .wpcf7 form .cf7-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px; /* space between columns */
    row-gap: 14px;
  }
  .wpcf7 form .cf7-grid .col-12 {
    grid-column: 1 / -1;
  }
}

/* Label styling */
.wpcf7 form .cf7-grid label {
  display: block;
  font-weight: 500;
  text-align: left;
  margin-bottom: 4px;
  font-size: 14px;
  color: #111;
}

/* Inputs and textarea */
.wpcf7 form .cf7-grid input[type="text"],
.wpcf7 form .cf7-grid input[type="email"],
.wpcf7 form .cf7-grid input[type="tel"],
.wpcf7 form .cf7-grid select,
.wpcf7 form .cf7-grid textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #eee;
  background-color: #f9f9f9;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
}

/* Submit button */
.wpcf7 form .cf7-grid input[type="submit"] {
  border-radius: 50px;
  padding: 12px 26px;
  background-color: #111;
  color: #fff;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.wpcf7 form .cf7-grid input[type="submit"]:hover {
  background-color: #222;
}

/* Reduce vertical spacing between CF7 inputs */
.wpcf7 form .cf7-grid .col {
  margin-bottom: 0px !important;
}

.wpcf7 form .cf7-grid label {
  margin-bottom: 0px !important;
}

/* Optional: even tighter look */
.wpcf7 form .cf7-grid input,
.wpcf7 form .cf7-grid select,
.wpcf7 form .cf7-grid textarea {
  margin-bottom: -30px !important;
}