/* BRSS Corporate - HubSpot Form Custom Styling */
/* Tartan & Titanium Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Form Container Overrides */
.hubspot-form-wrapper .hs-form-private,
.hubspot-form-wrapper .hs-form {
  font-family: 'Inter', system-ui, sans-serif !important;
  color: #FFFFFF !important;
}

/* Field Groups */
.hubspot-form-wrapper .hs-form-field {
  margin-bottom: 24px !important;
}

/* Labels */
.hubspot-form-wrapper label,
.hubspot-form-wrapper .hs-form-field label {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
  display: block !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Input Fields */
.hubspot-form-wrapper input[type="text"],
.hubspot-form-wrapper input[type="email"],
.hubspot-form-wrapper input[type="tel"],
.hubspot-form-wrapper textarea,
.hubspot-form-wrapper select,
.hubspot-form-wrapper .hs-input {
  background-color: #2A3A2A !important;
  border: 1px solid #C5A059 !important;
  border-radius: 0 !important;
  color: #FFFFFF !important;
  padding: 12px 16px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border 0.2s ease !important;
}

/* Placeholder Text */
.hubspot-form-wrapper input::placeholder,
.hubspot-form-wrapper textarea::placeholder {
  color: #CCCCCC !important;
  opacity: 1 !important;
}

/* Input Focus State */
.hubspot-form-wrapper input:focus,
.hubspot-form-wrapper textarea:focus,
.hubspot-form-wrapper select:focus,
.hubspot-form-wrapper .hs-input:focus {
  border: 2px solid #C5A059 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2) !important;
}

/* Submit Button */
.hubspot-form-wrapper input[type="submit"],
.hubspot-form-wrapper .hs-button.primary,
.hubspot-form-wrapper .hs-submit .hs-button {
  background-color: #C5A059 !important;
  color: #0A1F18 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 14px 24px !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-top: 24px !important;
  transition: background-color 0.2s ease !important;
  width: 100% !important;
}

/* Button Hover State */
.hubspot-form-wrapper input[type="submit"]:hover,
.hubspot-form-wrapper .hs-button.primary:hover,
.hubspot-form-wrapper .hs-submit .hs-button:hover {
  background-color: rgba(197, 160, 89, 0.85) !important;
}

/* Error Messages */
.hubspot-form-wrapper .hs-error-msg,
.hubspot-form-wrapper .hs-error-msgs,
.hubspot-form-wrapper .hs-error-msgs label {
  color: #FF6B6B !important;
  font-size: 12px !important;
  margin-top: 4px !important;
  font-weight: 500 !important;
  text-transform: none !important;
}

/* Error State Border */
.hubspot-form-wrapper .error input,
.hubspot-form-wrapper .error textarea,
.hubspot-form-wrapper .error select,
.hubspot-form-wrapper .hs-input.error,
.hubspot-form-wrapper .hs-form-field.error input {
  border: 2px solid #CC0000 !important;
}

/* Required Field Indicator */
.hubspot-form-wrapper .hs-form-required {
  color: #C5A059 !important;
}

/* Legal Consent Text */
.hubspot-form-wrapper .legal-consent-container,
.hubspot-form-wrapper .hs-richtext {
  color: #CCCCCC !important;
  font-size: 12px !important;
  margin-top: 16px !important;
  line-height: 1.5 !important;
}

.hubspot-form-wrapper .legal-consent-container a,
.hubspot-form-wrapper .hs-richtext a {
  color: #C5A059 !important;
  text-decoration: underline !important;
}

/* Checkbox Styling */
.hubspot-form-wrapper input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  border: 1px solid #C5A059 !important;
  background-color: #2A3A2A !important;
  margin-right: 8px !important;
  border-radius: 0 !important;
}

.hubspot-form-wrapper input[type="checkbox"]:checked {
  background-color: #C5A059 !important;
}

/* Form Field Descriptions */
.hubspot-form-wrapper .hs-field-desc {
  color: #CCCCCC !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}

/* Multi-column Layout Fix */
.hubspot-form-wrapper .hs-form-field {
  width: 100% !important;
}

/* Remove default HubSpot branding */
.hubspot-form-wrapper .hs-form-booleancheckbox-display {
  color: #FFFFFF !important;
}

/* Success Message */
.hubspot-form-wrapper .submitted-message {
  color: #FFFFFF !important;
  font-size: 16px !important;
  text-align: center !important;
  padding: 24px !important;
  background-color: rgba(197, 160, 89, 0.1) !important;
  border: 1px solid #C5A059 !important;
  border-radius: 0 !important;
}

/* Loading State */
.hubspot-form-wrapper .hs-button.loading {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

/* Fieldset and Legend (if used) */
.hubspot-form-wrapper fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hubspot-form-wrapper legend {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

/* Select Dropdown Arrow */
.hubspot-form-wrapper select {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C5A059' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 36px !important;
}

/* Radio Buttons */
.hubspot-form-wrapper input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  border: 1px solid #C5A059 !important;
  background-color: #2A3A2A !important;
  margin-right: 8px !important;
}

.hubspot-form-wrapper input[type="radio"]:checked {
  background-color: #C5A059 !important;
}

/* Ensure all text is readable */
.hubspot-form-wrapper * {
  color: #FFFFFF !important;
}

.hubspot-form-wrapper .hs-error-msg *,
.hubspot-form-wrapper .hs-error-msgs * {
  color: #FF6B6B !important;
}
