/**
 * Contact Form 7 - Warranty Registration Form Styles
 *
 * @package Hello_Elementor_Child
 * @author  Renie Namocot
 */

/* ===== Wrapper ===== */
.wrf-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  font-family: inherit;
}

.wrf-mandatory-note {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
  font-style: italic;
}

/* ===== Two-column grid ===== */
.wrf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

/* ===== Section cards ===== */
.wrf-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 28px 28px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wrf-card h4 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #24272D;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #B87456;
}

/* ===== Inline two-field rows ===== */
.wrf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== Field spacing ===== */
.wrf-field {
  margin-bottom: 14px;
}

/* ===== CF7 span wrapper override ===== */
.wrf-card .wpcf7-form-control-wrap,
.wrf-card span.wpcf7-form-control-wrap {
  display: block;
}

/* ===== Inputs & Select ===== */
.wrf-card input[type="text"],
.wrf-card input[type="email"],
.wrf-card input[type="tel"],
.wrf-card select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  background: #fafafa;
  color: #24272D;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  height: 42px;
}

.wrf-card input[type="text"]:focus,
.wrf-card input[type="email"]:focus,
.wrf-card input[type="tel"]:focus,
.wrf-card select:focus {
  border-color: #B87456;
  box-shadow: 0 0 0 3px rgba(184, 116, 86, 0.15);
  outline: none;
  background: #fff;
}

/* ===== Custom select arrow ===== */
.wrf-card select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B87456' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fafafa;
  padding-right: 36px;
}

/* ===== File upload ===== */
.wrf-upload-note {
  font-size: 12px;
  color: #777;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.wrf-card input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  box-sizing: border-box;
  cursor: pointer;
  color: #24272D;
}

/* ===== Checkbox ===== */
.wrf-card .wpcf7-checkbox .wpcf7-list-item {
  margin: 12px 0 0 0;
}

.wrf-card .wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.wrf-card .wpcf7-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #B87456;
  cursor: pointer;
}

/* ===== Validation errors ===== */
.wrf-card .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #e05252;
  margin-top: 3px;
  display: block;
}

.wrf-card .wpcf7-form-control-wrap.wpcf7-not-valid input,
.wrf-card .wpcf7-form-control-wrap.wpcf7-not-valid select {
  border-color: #e05252;
}

/* ===== Submit button ===== */
.wrf-submit {
  text-align: center;
  padding: 8px 0 20px;
}

.wrf-submit input[type="submit"],
.wrf-submit .wpcf7-submit {
  background-color: #B87456;
  color: #ffffff;
  border: none;
  padding: 14px 60px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.wrf-submit input[type="submit"]:hover,
.wrf-submit .wpcf7-submit:hover {
  background-color: #a5654a;
  transform: translateY(-1px);
}

.wrf-submit input[type="submit"]:active,
.wrf-submit .wpcf7-submit:active {
  background-color: #24272D;
  transform: translateY(0);
}

/* ===== Mobile: tablet ===== */
@media (max-width: 768px) {
  .wrf-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wrf-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wrf-card {
    padding: 20px 16px 16px;
  }

  .wrf-submit input[type="submit"],
  .wrf-submit .wpcf7-submit {
    width: 100%;
    padding: 14px 20px;
  }
}

/* ===== Mobile: small phones ===== */
@media (max-width: 480px) {
  .wrf-card h4 {
    font-size: 13px;
  }
}


/* ============================================================
   Sample Order Form
   ============================================================ */

.sof-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  font-family: inherit;
}

/* ===== Card ===== */
.sof-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 36px 32px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===== Two-column grid ===== */
.sof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

/* ===== Section divider ===== */
.sof-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== Inline two-field rows ===== */
.sof-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== Field spacing ===== */
.sof-field {
  margin-bottom: 14px;
}

/* ===== CF7 span wrapper override ===== */
.sof-card .wpcf7-form-control-wrap,
.sof-card span.wpcf7-form-control-wrap {
  display: block;
}

/* ===== Inputs & Select ===== */
.sof-card input[type="text"],
.sof-card input[type="email"],
.sof-card input[type="tel"],
.sof-card select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  background: #fafafa;
  color: #24272D;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  height: 42px;
}

.sof-card input[type="text"]:focus,
.sof-card input[type="email"]:focus,
.sof-card input[type="tel"]:focus,
.sof-card select:focus {
  border-color: #B87456;
  box-shadow: 0 0 0 3px rgba(184, 116, 86, 0.15);
  outline: none;
  background: #fff;
}

/* ===== Custom select arrow ===== */
.sof-card select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B87456' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fafafa;
  padding-right: 36px;
}

/* ===== Textarea ===== */
.sof-card textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  background: #fafafa;
  color: #24272D;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.sof-card textarea:focus {
  border-color: #B87456;
  box-shadow: 0 0 0 3px rgba(184, 116, 86, 0.15);
  outline: none;
  background: #fff;
}

/* ===== Validation errors ===== */
.sof-card .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #e05252;
  margin-top: 3px;
  display: block;
}

.sof-card .wpcf7-form-control-wrap.wpcf7-not-valid input,
.sof-card .wpcf7-form-control-wrap.wpcf7-not-valid select,
.sof-card .wpcf7-form-control-wrap.wpcf7-not-valid textarea {
  border-color: #e05252;
}

/* ===== Submit button ===== */
.sof-submit {
  text-align: center;
  padding-top: 8px;
}

.sof-submit button[type="submit"] {
  background-color: #B87456;
  color: #ffffff;
  border: none;
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sof-submit button[type="submit"]:hover {
  background-color: #a5654a;
  transform: translateY(-1px);
}

.sof-submit button[type="submit"]:active {
  background-color: #24272D;
  transform: translateY(0);
}

.sof-submit button[type="submit"] i {
  font-size: 14px;
}

/* ===== Mobile: tablet ===== */
@media (max-width: 768px) {
  .sof-card {
    padding: 24px 16px 20px;
  }

  .sof-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sof-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sof-submit button[type="submit"] {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
}


/* ============================================================
   Contact Form
   ============================================================ */

.cf-wrapper {
  max-width: 860px;
  margin: 0 auto;
  font-family: inherit;
}

/* ===== Card ===== */
.cf-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 36px 32px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===== Field spacing ===== */
.cf-field {
  margin-bottom: 14px;
}

/* ===== CF7 span wrapper override ===== */
.cf-card .wpcf7-form-control-wrap,
.cf-card span.wpcf7-form-control-wrap {
  display: block;
}

/* ===== Two-column row ===== */
.cf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ===== Three-column row (city / state / postal) ===== */
.cf-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* ===== Inputs & Select ===== */
.cf-card input[type="text"],
.cf-card input[type="email"],
.cf-card input[type="tel"],
.cf-card select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  background: #fafafa;
  color: #24272D;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  height: 42px;
}

.cf-card input[type="text"]:focus,
.cf-card input[type="email"]:focus,
.cf-card input[type="tel"]:focus,
.cf-card select:focus {
  border-color: #B87456;
  box-shadow: 0 0 0 3px rgba(184, 116, 86, 0.15);
  outline: none;
  background: #fff;
}

/* ===== Custom select arrow ===== */
.cf-card select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B87456' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fafafa;
  padding-right: 36px;
}

/* ===== Textarea ===== */
.cf-card textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  background: #fafafa;
  color: #24272D;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.cf-card textarea:focus {
  border-color: #B87456;
  box-shadow: 0 0 0 3px rgba(184, 116, 86, 0.15);
  outline: none;
  background: #fff;
}

/* ===== Validation errors ===== */
.cf-card .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #e05252;
  margin-top: 3px;
  display: block;
}

.cf-card .wpcf7-form-control-wrap.wpcf7-not-valid input,
.cf-card .wpcf7-form-control-wrap.wpcf7-not-valid select,
.cf-card .wpcf7-form-control-wrap.wpcf7-not-valid textarea {
  border-color: #e05252;
}

/* ===== Submit ===== */
.cf-submit {
  text-align: center;
  padding-top: 10px;
}

.cf-submit button[type="submit"] {
  background-color: #B87456;
  color: #ffffff;
  border: none;
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cf-submit button[type="submit"]:hover {
  background-color: #a5654a;
  transform: translateY(-1px);
}

.cf-submit button[type="submit"]:active {
  background-color: #24272D;
  transform: translateY(0);
}

.cf-submit button[type="submit"] i {
  font-size: 14px;
}

/* ===== Mobile: tablet ===== */
@media (max-width: 768px) {
  .cf-card {
    padding: 24px 16px 20px;
  }

  .cf-row-2,
  .cf-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cf-submit button[type="submit"] {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
}

/* ===== Mobile: small phones ===== */
@media (max-width: 480px) {
  .cf-wrapper {
    padding: 0 4px;
  }
}
