/* S-CUBE Global Theme — Contact Form 7 styling to match theme design */

/* ========== CONTACT FORM (Get In Touch) ========== */
.scube-cf7-contact .wpcf7 {
  margin: 0;
}
.scube-cf7-contact .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.scube-cf7-contact .wpcf7-form p {
  margin: 0;
}
.scube-cf7-contact label {
  display: block;
  font-size: 0;
  line-height: 0;
}
.scube-cf7-contact .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.scube-cf7-contact input.wpcf7-text,
.scube-cf7-contact input.wpcf7-email,
.scube-cf7-contact input.wpcf7-tel,
.scube-cf7-contact input.wpcf7-url,
.scube-cf7-contact input.wpcf7-number {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  box-shadow: none;
}
.scube-cf7-contact input.wpcf7-text:focus,
.scube-cf7-contact input.wpcf7-email:focus,
.scube-cf7-contact input.wpcf7-tel:focus {
  border-bottom-color: #D20A11;
}
.scube-cf7-contact textarea.wpcf7-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  min-height: 100px;
  resize: vertical;
  transition: border-color 0.2s;
  box-shadow: none;
}
.scube-cf7-contact textarea.wpcf7-textarea:focus {
  border-color: #D20A11;
}
.scube-cf7-contact input.wpcf7-submit {
  width: 100%;
  background: #D20A11;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 10px 15px -3px rgba(127, 29, 29, 0.1);
}
.scube-cf7-contact input.wpcf7-submit:hover {
  background: #B3080E;
}
.scube-cf7-contact .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #b45309;
  margin-top: 0.25rem;
}
.scube-cf7-contact .wpcf7-response-output {
  margin: 0.5rem 0 0;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  border: 1px solid;
}
.scube-cf7-contact .wpcf7-mail-sent-ok,
.scube-cf7-contact form.sent .wpcf7-response-output {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.scube-cf7-contact .wpcf7-validation-errors,
.scube-cf7-contact .wpcf7-mail-sent-ng,
.scube-cf7-contact form.invalid .wpcf7-response-output,
.scube-cf7-contact form.failed .wpcf7-response-output {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
.scube-cf7-contact .wpcf7-spinner {
  margin-left: 0.5rem;
}

/* ========== QUOTE FORM (modal) ========== */
.scube-cf7-quote .wpcf7 {
  margin: 0;
}
.scube-cf7-quote .wpcf7-form p {
  margin: 0 0 1rem;
}
.scube-cf7-quote label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
  font-family: Orbitron, Equinox, sans-serif;
}
.scube-cf7-quote .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.scube-cf7-quote input.wpcf7-text,
.scube-cf7-quote input.wpcf7-email,
.scube-cf7-quote input.wpcf7-tel {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #0f172a;
  outline: none;
  box-shadow: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.scube-cf7-quote input.wpcf7-text:focus,
.scube-cf7-quote input.wpcf7-email:focus,
.scube-cf7-quote input.wpcf7-tel:focus {
  border-color: #D20A11;
  box-shadow: 0 0 0 2px rgba(210, 10, 17, 0.2);
}
.scube-cf7-quote textarea.wpcf7-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #0f172a;
  outline: none;
  min-height: 100px;
  resize: vertical;
  box-shadow: none;
}
.scube-cf7-quote textarea.wpcf7-textarea:focus {
  border-color: #D20A11;
  box-shadow: 0 0 0 2px rgba(210, 10, 17, 0.2);
}
.scube-cf7-quote input.wpcf7-submit {
  background: #D20A11;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(127, 29, 29, 0.2);
  transition: background 0.2s;
  float: right;
  margin-top: 0.5rem;
}
.scube-cf7-quote input.wpcf7-submit:hover {
  background: #B3080E;
}
.scube-cf7-quote .wpcf7-not-valid-tip {
  font-size: 0.7rem;
  color: #b45309;
  margin-top: 0.25rem;
}
.scube-cf7-quote .wpcf7-response-output {
  margin: 0.75rem 0 0;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  clear: both;
  border: 1px solid;
}
.scube-cf7-quote form.sent .wpcf7-response-output {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.scube-cf7-quote form.invalid .wpcf7-response-output,
.scube-cf7-quote form.failed .wpcf7-response-output {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

/* Two-column layout for quote form when CF7 uses consecutive fields */
.scube-cf7-quote .wpcf7-form > p:nth-child(1),
.scube-cf7-quote .wpcf7-form > p:nth-child(2),
.scube-cf7-quote .wpcf7-form > p:nth-child(3),
.scube-cf7-quote .wpcf7-form > p:nth-child(4) {
  display: inline-block;
  width: calc(50% - 0.5rem);
  vertical-align: top;
}
.scube-cf7-quote .wpcf7-form > p:nth-child(1),
.scube-cf7-quote .wpcf7-form > p:nth-child(3) {
  margin-right: 1rem;
}
.scube-cf7-quote .wpcf7-form > p:nth-child(5),
.scube-cf7-quote .wpcf7-form > p:nth-child(6),
.scube-cf7-quote .wpcf7-form > p:nth-child(7) {
  display: block;
  width: 100%;
}

@media (max-width: 640px) {
  .scube-cf7-quote .wpcf7-form > p:nth-child(1),
  .scube-cf7-quote .wpcf7-form > p:nth-child(2),
  .scube-cf7-quote .wpcf7-form > p:nth-child(3),
  .scube-cf7-quote .wpcf7-form > p:nth-child(4) {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}
