/* Enquiry + newsletter form polish (2026-11-25). Loaded from inc/layout-close.php. */

/* "Prefer to talk? Call ..." line under every enquiry form */
.tda-form-alt{margin:14px 0 0;font-size:14px;line-height:1.5;text-align:center;opacity:.85}
.tda-form-alt a{color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.hero-section .tda-form-alt{color:rgba(255,255,255,.75);margin-top:4px}
.single-service-page-main-section .hero-section .tda-form-alt{color:#555;margin-top:14px}

/* success / error notes shown by forms.js */
.tda-form-note{margin:0 0 14px;padding:10px 14px;border-radius:10px;font-size:14px;font-weight:600;line-height:1.45}
.tda-form-note--err{background:#fdecec;color:#b42318;border:1px solid #f5c2c0}
.tda-form-note--ok{background:#e7f8f1;color:#05603a;border:1px solid #a6e3c8}

/* sending state */
.tda-form button[type="submit"][disabled],.newsletter-form button[disabled]{opacity:.75;cursor:progress;transform:none!important}

/* selects: same look as the inputs next to them, with a chevron */
.tda-form select{-webkit-appearance:none;appearance:none;cursor:pointer;
  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 d='M1 1.5l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 16px center!important;background-size:12px 8px!important;padding-right:40px!important}
.tda-form input,.tda-form select,.tda-form textarea{font-family:inherit}
.tda-form select:invalid,.tda-form select:has(option[value=""]:checked){color:#888}
.tda-form select option{color:#222}
.hero-section .tda-form select{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 d='M1 1.5l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
.hero-section .tda-form select:invalid,.hero-section .tda-form select:has(option[value=""]:checked){color:rgba(255,255,255,.55)}
.hero-section .tda-form select option{color:#fff}
.hero-section .tda-form input,.hero-section .tda-form select,.hero-section .tda-form textarea{padding-bottom:1rem}

/* homepage "Get in Touch" form: service + budget side by side */
.contact-wrapper .tda-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-wrapper .tda-form select.input-field{color:#333;font-size:1em;font-family:inherit}
.contact-wrapper .tda-form select.input-field:invalid,.contact-wrapper .tda-form select.input-field:has(option[value=""]:checked){color:#888}
.contact-wrapper .tda-form .input-field::placeholder{color:#888}
.contact-wrapper .tda-form .form-group{animation-delay:.3s}
@media (max-width:560px){.contact-wrapper .tda-form-row{grid-template-columns:1fr}}
.info-text a,.info-card p a{color:inherit;text-decoration:none}
.info-text a:hover,.info-card p a:hover{text-decoration:underline}

/* floating-label forms (contact page, service pages): labels always readable */
.contact-page-main-section .tda-form .input-group select,
.single-service-page-main-section .tda-form .input-group select{width:100%;font-size:16px;font-family:inherit;border:2px solid #eee;border-radius:10px;outline:none;transition:all .3s ease;color:#333}
.contact-page-main-section .tda-form .input-group select{padding:10px 40px 10px 10px;background-color:#f8f9fa;height:48px}
.single-service-page-main-section .tda-form .input-group select{padding:12px 40px 12px 12px;background-color:#fff;height:50px}
.contact-page-main-section .tda-form .input-group select:focus,
.single-service-page-main-section .tda-form .input-group select:focus{border-color:rgba(36,36,225,.5);box-shadow:0 5px 15px rgba(0,102,79,.1)}

.contact-page-main-section .tda-form .input-group label,
.single-service-page-main-section .tda-form .input-group label{-webkit-text-fill-color:currentColor!important;background-clip:border-box!important;-webkit-background-clip:border-box!important}
/* empty + not focused: label sits inside the field */
.contact-page-main-section .tda-form .input-group :is(input,textarea)[placeholder]:placeholder-shown:not(:focus) ~ label{top:15px;left:15px;font-size:14px;color:#666;background:transparent}
.single-service-page-main-section .tda-form .input-group :is(input,textarea)[placeholder]:placeholder-shown:not(:focus) ~ label{transform:none;font-size:inherit;color:#999}
/* focused, filled, or a select: label floats above */
.contact-page-main-section .tda-form .input-group :is(input,textarea)[placeholder]:is(:focus,:not(:placeholder-shown)) ~ label,
.contact-page-main-section .tda-form .input-group select ~ label{top:-10px;left:10px;font-size:12px;color:#00664F;background:#fff}
.single-service-page-main-section .tda-form .input-group :is(input,textarea)[placeholder]:is(:focus,:not(:placeholder-shown)) ~ label,
.single-service-page-main-section .tda-form .input-group select ~ label{transform:translateY(-25px);font-size:12px;color:#00664F}
.single-service-page-main-section .tda-form .input-group label{background:none!important}
.single-service-page-main-section .tda-form .input-group:has(select){margin-top:26px}
.contact-page-main-section .tda-form .input-group :is(input,textarea)::placeholder{color:transparent}
.single-service-page-main-section .tda-form .input-group :is(input,textarea)::placeholder{color:transparent}

/* phone field with a wrong number after the person has typed */
.tda-form input[name="phone"]:not(:placeholder-shown):not(:focus):invalid{border-color:#e5484d}

/* newsletter: thank-you line replaces the form */
.newsletter .tda-form-note,.newsletter-section .tda-form-note{margin-top:14px}
