/* Proximo Training Calendar: visual-only revision of the organisation enquiry.
   Exactly the same brand palette as the approved preview.
   Class is added only to the existing Organisational Training Enquiry details. */

/* Remove the large inset white frame from v1.0.0 and attach header to form. */
details.proximo-gold-enquiry {
  box-sizing: border-box !important;
  padding: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #D5DDE3 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 5px rgba(16, 43, 67, 0.05) !important;
}

/* Full-width gold header with neat left-aligned text and chevron. */
details.proximo-gold-enquiry > summary {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  width: 100% !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 18px 27px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #D4AF37 !important;
  color: #102B43 !important;
  font-weight: 700 !important;
  text-align: left !important;
  list-style: none !important;
  cursor: pointer !important;
}

details.proximo-gold-enquiry > summary::-webkit-details-marker { display: none !important; }
details.proximo-gold-enquiry > summary::marker { content: '' !important; font-size: 0 !important; }

/* A precise chevron, rather than the large solid triangle in the old version. */
details.proximo-gold-enquiry > summary::before {
  content: '' !important;
  box-sizing: border-box !important;
  display: inline-block !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 2px 0 0 !important;
  border: 0 !important;
  border-right: 3px solid #102B43 !important;
  border-bottom: 3px solid #102B43 !important;
  border-radius: 1px !important;
  background: transparent !important;
  color: transparent !important;
  vertical-align: middle !important;
  transform: rotate(-45deg) !important; /* right = closed */
  transform-origin: 50% 50% !important;
  transition: transform 160ms ease !important;
}

details.proximo-gold-enquiry[open] > summary::before {
  transform: rotate(45deg) !important; /* down = open */
}

details.proximo-gold-enquiry[open] > summary {
  background: #D4AF37 !important;
  color: #102B43 !important;
  border-bottom: 1px solid rgba(16, 43, 67, .10) !important;
}

/* White form below gold heading, with consistent spacing and without touching
   the existing field structure, validation or submission behavior. */
details.proximo-gold-enquiry[open] > :not(summary) {
  margin-left: 27px !important;
  margin-right: 27px !important;
}
details.proximo-gold-enquiry[open] > summary + * {
  margin-top: 27px !important;
}
details.proximo-gold-enquiry[open] > :last-child {
  margin-bottom: 27px !important;
}

details.proximo-gold-enquiry > summary:focus-visible {
  outline: 3px solid #102B43 !important;
  outline-offset: -5px !important;
}

@media (max-width: 720px) {
  details.proximo-gold-enquiry > summary {
    padding: 17px 18px !important;
    min-height: 62px !important;
    gap: 12px !important;
  }
  details.proximo-gold-enquiry[open] > :not(summary) {
    margin-left: 18px !important;
    margin-right: 18px !important;
  }
  details.proximo-gold-enquiry[open] > summary + * { margin-top: 20px !important; }
  details.proximo-gold-enquiry[open] > :last-child { margin-bottom: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  details.proximo-gold-enquiry > summary::before { transition: none !important; }
}
