/* All breakpoints used within the site */
@media only screen and (min-width: 360px) {}
@media only screen and (min-width: 600px) {}
@media only screen and (min-width: 768px) {}
@media only screen and (min-width: 992px) {}
@media only screen and (min-width: 1280px) {}
@media only screen and (min-width: 1440px) {}
/* ==========================================================================
Enquiry form styles
========================================================================== */
/* Error messages */
.field-error {
  color: var(--PinkMid);
  font-size: 0.875rem;
  margin-top: 10px;
}
.field-error:empty {
  display: none;
}
/* Invalid inputs */
.form-field input[aria-invalid="true"] {
  border: 1px solid var(--PinkMid);
}
/* Invalid privacy checkbox */
.form-consent input[aria-invalid="true"] {
  outline: 1px solid var(--PinkMid);
}
/* AJAX success and error */
.form-status[data-state="success"] {
  color: var(--PinkLight);
  margin: 80px 0;
  line-height: 106%;
  font-family: var(--FeatureDeck);
  letter-spacing: -0.01em;
  font-size: clamp(20px, 2.5vw, 38px);
}
.form-status[data-state="error"] {
  color: var(--PinkMid);
  margin: 80px 0;
  line-height: 106%;
  font-family: var(--FeatureDeck);
  letter-spacing: -0.01em;
  font-size: clamp(20px, 2.5vw, 38px);
}
/* Loading state */
.form-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}
.form-divider {
  border-bottom: none;
  border-left: none;
  border-right: none;
  border-top: 1px solid var(--White);
  margin: 40px 0;
}
#about-heading {
  margin-bottom: 10px;
  font-size: clamp(20px, 2.5vw, 38px);
}
#enquiry-form legend,
.form-title {
  line-height: 106%;
  font-family: var(--FeatureDeck);
  letter-spacing: -0.01em;
  font-size: clamp(20px, 2.5vw, 38px);
}
.form-title {
  margin-bottom: 20px;
}
#enquiry-form .form-grid {
  display: flex;
  flex-flow: column;
}
#enquiry-form input,
#enquiry-form textarea {
  background: rgba(255, 255, 255, 0.10);
  color: var(--White);
}
/* Override Chrome autofill */
#enquiry-form input:-webkit-autofill,
#enquiry-form input:-webkit-autofill:hover,
#enquiry-form input:-webkit-autofill:focus,
#enquiry-form textarea:-webkit-autofill,
#enquiry-form textarea:-webkit-autofill:focus {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.10) inset;
  -webkit-text-fill-color: var(--White);
  caret-color: var(--White);
}
#enquiry-form textarea {
  resize: vertical;
}
#enquiry-form input:focus-visible,
#enquiry-form textarea:focus-visible {
  outline: 1px solid var(--PinkLight);
}
.about-grid label {
  opacity: 0;
  margin: 0;
}
#referral, #message {
  margin-bottom: 40px;
}
.form-footer {
  display: flex;
  flex-flow: column;
  gap: 20px;
}
@media only screen and (min-width: 992px) {
  .form-divider {
      margin: 80px 0;
  }
  #enquiry-form .form-grid {
    display: flex;
    flex-flow: row wrap;
    gap: 0 30px;
  }
  #enquiry-form .form-field {
    flex: 1 1 calc(50% - 20px);
  }
  #about-heading {
    margin-bottom: 20px;
  }
  .form-title {
    margin-bottom: 40px;
  }
  .form-footer {
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
  }
}
/* ==========================================================================
   Project details
   ========================================================================== */
#enquiry-form .form-section[aria-label="Project details"] {
    display: flex;
    flex-flow: column;
    gap: 60px;
}
/* Fieldsets */
#enquiry-form .form-group {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
#enquiry-form .form-group legend {
    padding: 0;
    margin-bottom: 20px;
}
/* Select all that apply */
#enquiry-form #services-hint {
    font-family: var(--PPMori);
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.04em;
    margin: 0 0 20px 0;
}
/* Options container */
#enquiry-form .form-options {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 10px;
}
/* Individual option */
#enquiry-form .form-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
}
/* Visually hide native inputs but retain keyboard accessibility */
#enquiry-form .form-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
}
/* Pill appearance */
#enquiry-form .form-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px 10px 20px;
    border: 1px solid var(--White);
    border-radius: 100px;
    background-color: transparent;
    color: var(--White);
    font-family: var(--PPMori);
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}
/* Selected state */
#enquiry-form .form-option input:checked + span {
    background-color: var(--White);
    color: var(--Black);
}
/* Selected tick */
#enquiry-form .form-option input:checked + span::after {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 12px;
    height: 10px;
    margin-left: 0.65em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M4 9.4L0 5.4L1.4 4L4 6.6L10.6 0L12 1.4L4 9.4Z' fill='black'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
/* Hover state */
@media (hover: hover) {
    #enquiry-form .form-option:hover input:not(:checked) + span {
        background-color: var(--PinkLight);
        color: var(--Black);
        border-color: var(--PinkLight);
    }
}
/* Accessible keyboard focus */
#enquiry-form .form-option input:focus-visible + span {
    outline: 2px solid var(--PinkLight);
    outline-offset: 4px;
}
/* Remove transitions for reduced motion */
@media (prefers-reduced-motion: reduce) {
    #enquiry-form .form-option span {
        transition: none;
    }
}
/* ==========================================================================
   Project details - Desktop
   ========================================================================== */
@media only screen and (min-width: 992px) {
    #enquiry-form .form-section[aria-label="Project details"] {
        gap: 80px;
    }
    #enquiry-form .form-group legend {
        margin-bottom: 28px;
    }
    #enquiry-form #services-hint {
        margin-top: -10px;
    }
    #enquiry-form .form-options {
        gap: 15px;
    }
}

/* ==========================================================================
   Privacy Policy Checkbox
   ========================================================================== */
#enquiry-form .privacy-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-family: var(--PPMori);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 130%;
    font-weight: 400;
}
/* Custom checkbox */
#enquiry-form .privacy-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--White);
    border-radius: 0;
    background: transparent;
    transition: background-color 0.2s ease;
}
/* Checked state - same SVG tick as the pills */
#enquiry-form .privacy-label input:checked {
    background-color: var(--White);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M4 9.4L0 5.4L1.4 4L4 6.6L10.6 0L12 1.4L4 9.4Z' fill='black'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 10px;
}
/* Privacy Policy link */
#enquiry-form .privacy-label a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#enquiry-form .privacy-label a:hover {
  text-decoration: none;
}
/* Keyboard focus */
#enquiry-form .privacy-label input:focus-visible {
    outline: 2px solid var(--PinkLight);
    outline-offset: 4px;
}
/* Validation error */
#enquiry-form .privacy-label input[aria-invalid="true"] {
    border-color: var(--PinkMid);
}
#enquiry-form .form-consent .field-error {
    margin: 15px 0 0 -2px;
    font-size: 14px;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #enquiry-form .privacy-label input {
        transition: none;
    }
}


/* ==========================================================================
   Newsletter Page Form
   ========================================================================== */

#newsletter-page-form .form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#newsletter-page-form .form-field {
    min-width: 0;
}

#newsletter-page-form .form-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.10);
    color: var(--White);
    border-radius: 0;
}

#newsletter-page-form .form-field input:focus-visible {
    outline: 1px solid var(--PinkLight);
}

/* Chrome autofill */
#newsletter-page-form .form-field input:-webkit-autofill,
#newsletter-page-form .form-field input:-webkit-autofill:hover,
#newsletter-page-form .form-field input:-webkit-autofill:focus {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.10) inset;
    -webkit-text-fill-color: var(--White);
    caret-color: var(--White);
}

/* Privacy policy */
#newsletter-page-form .privacy-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-family: var(--PPMori);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 130%;
    font-weight: 400;
}

#newsletter-page-form .privacy-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--White);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

#newsletter-page-form .privacy-label input:checked {
    background-color: var(--White);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M4 9.4L0 5.4L1.4 4L4 6.6L10.6 0L12 1.4L4 9.4Z' fill='black'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 10px;
}

#newsletter-page-form .privacy-label a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#newsletter-page-form .privacy-label a:hover {
    text-decoration: none;
}

#newsletter-page-form .privacy-label input:focus-visible {
    outline: 2px solid var(--PinkLight);
    outline-offset: 4px;
}

/* Desktop */
@media only screen and (min-width: 992px) {
    #newsletter-page-form .form-grid {
        flex-direction: row;
        gap: 30px;
    }

    #newsletter-page-form .form-field {
        flex: 1 1 0;
    }
}

/* Newsletter validation */

#newsletter-page-form .form-consent .field-error {
    margin: 15px 0 0 -2px;
    font-size: 14px;
}

#newsletter-page-form .privacy-label input[aria-invalid="true"] {
    border-color: var(--PinkMid);
    outline: 1px solid var(--PinkMid);
}
