/*
Theme Name: TCD Editorial
Description: The Construction Daily approved line-and-box editorial design with native WordPress content.
Version: 1.0.5
Author: The Construction Daily
Text Domain: tcd-editorial
*/

/* The approved presentation styles remain intact in shell.html. */

/* Native form controls use the approved paper, ink, borders and typography. */
[data-wp-page] .wpcf7 { width: 100%; }
[data-wp-page] .wpcf7 label { display: block; font-size: 13px; font-weight: 700; }
[data-wp-page] .wpcf7 input:not([type="submit"]):not([type="hidden"]),
[data-wp-page] .wpcf7 textarea { display: block; width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); padding: 13px 14px; margin-top: 8px; font: inherit; font-size: 15px; }
[data-wp-page] .wpcf7 textarea { min-height: 180px; resize: vertical; }
[data-wp-page] .wpcf7 input[type="submit"] { border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); padding: 13px 26px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
[data-wp-page] .wpcf7-response-output { margin-left: 0; margin-right: 0; }
.newsletter-enquiries { border-top: 1px solid var(--ink); margin-top: 24px; padding-top: 24px; }
.newsletter-enquiries .darkbtn { white-space: normal; }
@media (max-width: 360px) {
  [data-wp-page] .wpcf7-recaptcha { display: block; transform: scale(.84); transform-origin: left top; width: 304px; margin-bottom: -12px; }
}


/* Native newsletter requests occupy the original approved signup panel. */
.tcd-newsletter-form-host { min-width: 0; }
.tcd-newsletter-form-host .wpcf7 { width: 100%; }
.tcd-newsletter-form { min-width: 0; }
.tcd-newsletter-form fieldset { min-width: 0; }
.tcd-newsletter-form .wpcf7-form-control-wrap { display: block; }
.tcd-newsletter-form .wpcf7-checkbox { display: block; }
.tcd-newsletter-form .wpcf7-checkbox .wpcf7-list-item { display: block; margin: 0; }
.tcd-newsletter-form .wpcf7-checkbox .wpcf7-list-item label {
  display: flex; gap: 13px; align-items: center; border-top: 1px solid #a68d2e;
  padding: 18px 0; cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1.5;
}
.tcd-newsletter-form input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--ink); flex: 0 0 18px; }
.tcd-newsletter-form .reader-field input { display: block; width: 100%; max-width: 100%; background: #fffef8; color: var(--ink); }
.tcd-newsletter-form .newsletter-consent { display: block; font-size: 11px; line-height: 1.7; margin: 20px 0 14px; }
.tcd-newsletter-form .newsletter-consent .wpcf7-list-item { display: block; margin: 0; }
.tcd-newsletter-form .newsletter-consent label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.tcd-newsletter-form .newsletter-consent input { margin-top: 3px; }
.tcd-newsletter-form input[type="submit"].darkbtn, .tcd-newsletter-form button.darkbtn { border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font: inherit; font-size: 13px; font-weight: 700; padding: 13px 20px; white-space: normal; cursor: pointer; }
.tcd-newsletter-form .wpcf7-not-valid-tip { display: block; font-size: 11px; line-height: 1.7; margin-top: 8px; }
.tcd-newsletter-form-host .wpcf7-response-output { margin: 16px 0 0; padding: 12px; font-size: 12px; line-height: 1.7; }
.tcd-newsletter-form .wpcf7-spinner { margin-left: 0; }
@media (max-width: 390px) {
  .tcd-newsletter-form .wpcf7-recaptcha { display: block; transform: scale(.78); transform-origin: left top; width: 304px; margin-bottom: -17px; }
}

.tcd-newsletter-form button.darkbtn[disabled] { opacity: .65; cursor: not-allowed; }
