/*
Theme Name: Tom Arthur MSP 2026
Theme URI: http://www.tomarthur.scot/
Author: Tom Arthur MSP constituency office
Description: A clean, accessible one-page WordPress theme for Tom Arthur MSP.
Version: 1.0.10
Requires at least: 5.6
Requires PHP: 7.4
Text Domain: tom-arthur-2026
*/

/* The site's existing Jetpack form is retained as the proven form engine;
   these rules make its generated form belong visually to the one-page design. */
.contact .contact-form,
.contact .grunion-contact-form,
.contact form {
  width: 100%;
}

.contact form label,
.contact form .control-label,
.contact form .grunion-field-label,
.contact form .contact-form__checkbox-label {
  display: block;
  margin: 0 0 8px;
  color: #fff252 !important;
  font: 700 1rem/1.25 "Sensibility", Arial, sans-serif;
}

.contact form label span {
  color: #fff252 !important;
}

.contact form input[type="text"],
.contact form input[type="email"],
.contact form input[type="tel"],
.contact form input[type="url"],
.contact form textarea,
.contact form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 2px solid #242424;
  border-radius: 0;
  background: #fff;
  color: #242424;
  font: 400 1rem/1.4 "Sensibility", Arial, sans-serif;
}

.contact form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact form input:focus,
.contact form textarea:focus,
.contact form select:focus {
  outline: 4px solid rgba(255, 242, 82, .65);
  outline-offset: 1px;
}

.contact form button,
.contact form input[type="submit"],
.contact form .pushbutton-wide {
  display: inline-block;
  min-height: 52px;
  padding: 13px 24px;
  border: 2px solid #fff252 !important;
  border-radius: 0;
  background: #fff252 !important;
  color: #242424 !important;
  cursor: pointer;
  font: 700 1rem/1.2 "Sensibility", Arial, sans-serif;
}

.contact form button:hover,
.contact form input[type="submit"]:hover,
.contact form .pushbutton-wide:hover {
  border-color: #fff !important;
  background: #fff !important;
}

.contact-form-shell .form-note {
  margin-top: 18px;
  color: #f2f2f2 !important;
  font-size: .94rem;
}

.contact form .contact-form__checkbox-wrap,
.contact form .grunion-field-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
}

.contact form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #242424;
}

.contact-form-shell .form-note a {
  color: inherit;
  font-weight: 700;
}

.contact-form-unavailable {
  padding: 20px;
  border: 2px solid #242424;
  background: #fff;
}

.tom-form-success {
  padding: 24px;
  border: 3px solid #fff252;
  background: #fff252;
  color: #242424 !important;
  font: 400 1.08rem/1.5 "Sensibility", Arial, sans-serif;
}

.tom-form-success strong,
.tom-form-success span {
  display: block;
  color: #242424 !important;
}

.tom-form-success strong {
  margin-bottom: 5px;
  font-size: 1.35rem;
  font-weight: 800;
}

.grecaptcha-badge { z-index: 20; }

@media (max-width: 720px) {
  .contact form button,
  .contact form input[type="submit"] { width: 100%; }
}

/* Standard WordPress pages, chiefly the retained privacy notice. */
.standard-page {
  min-height: 100vh;
  background: #fffdf3;
  color: #242424;
  font-family: "Sensibility", Arial, sans-serif;
}

.standard-page a { color: inherit; }

.standard-page-header {
  background: #fff252;
  border-bottom: 1px solid rgba(36, 36, 36, .2);
}

.standard-page-header-inner,
.standard-page-content,
.standard-page-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.standard-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.standard-page-wordmark {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.standard-page-content {
  max-width: 820px;
  padding-top: 70px;
  padding-bottom: 80px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.standard-page-content h1 {
  margin: 0 0 32px;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: .95;
}

.standard-page-content h2,
.standard-page-content h3 { margin-top: 2em; }

.standard-page-content a { font-weight: 700; }

.standard-page-footer {
  padding: 30px 0;
  background: #242424;
  color: #fff;
}
