/* Container */
.layout-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #d2d2d7;
  border-radius: 8px;
  color: #333;
}

/* Page Title */
#block-particle-page-title h1 {
  font-size: 2.25rem;
  font-family: sutro, serif;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #00395d;
}

/* Tabs Navigation */
#block-particle-local-tasks .nav-tabs {
  border-bottom: 2px solid #e1e4e8;
  margin-bottom: 2rem;
}

#block-particle-local-tasks .nav-link {
  padding: 0.6rem 1.2rem;
  color: #555;
  transition: color 0.2s, border-color 0.2s;
}

#block-particle-local-tasks .nav-link:hover {
  color: #0074cc;
}

#block-particle-local-tasks .nav-link.active {
  color: #0074cc;
  border-bottom: 2px solid #0074cc;
}

/* Form Wrapper */
#block-particle-content form.webform-submission-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 2rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

/* Labels */
.form-group > label,
.fieldset-legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: #2a3b50;
}

/* Inputs, Selects & Textareas */
input.form-text,
input.form-email,
input.form-tel,
select.form-select,
textarea.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}     

input.form-text:focus,
input.form-email:focus,
input.form-tel:focus,
select.form-select:focus,
textarea.form-textarea:focus {
  border-color: #0074cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 116, 204, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: #888; /* light gray, customize as needed */
  font-style: italic;
  opacity: 1; /* optional: makes sure color isn't faded */
}

.select2-container--default .select2-results__option {
  list-style: none !important;
}

select.form-select, textarea.form-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    line-height: 1.0;
}

/* Make Community select taller */
#edit-community {
  height: 48px;
  line-height: 1.5;
}

/* Fieldsets */
fieldset.fieldgroup {
  padding: 0.8rem;
  border: 1px solid #ccd;
  border-radius: 4px;
  margin-bottom: 2rem;
}

/* Name field: each field stacked */
#edit-name--wrapper .fieldset-wrapper {
  display: flex;
  flex-direction: column;
}

/* Checkboxes */
.js-form-type-checkbox .form-checkbox {
  margin-right: 0.5rem;
}

.js-form-type-checkbox label.option {
  font-weight: normal;
}

/* Character counter area below textarea */
.text-count-wrapper {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
}

/* Buttons */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

button.js-form-submit.button--primary,
input.button--primary {
  padding: 0.8rem 1.6rem;
  background: #00843d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

button.js-form-submit.button--primary:hover,
input.button--primary:hover {
  background: #00a3e0;
  color: #fff;
}

input.webform-button--reset {
  padding: 0.8rem 1.6rem;
  background: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

input.webform-button--reset:hover {
  background: #cacaca;
}

/* Hidden recaptcha */
.invisible-recaptcha {
  display: none;
}

/* Modal styling for confirmation message */
/* Modal Container */
.ui-dialog {
  border-radius: 12px;
  /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25); */
  width: 90%;
  max-width: 700px;
  position: fixed;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  font-family: "Georgia", serif;
  color: #333;
  background-color: #f9f9f9;
  overflow: hidden; /* ensures content doesn't overflow rounded corners */
  padding: 0; /* remove padding here */
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Title Bar */
.ui-dialog-titlebar {
  background-color: #01395e;
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Close button with "X" icon */
.ui-dialog-titlebar-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}

.ui-dialog-titlebar-close:hover {
  color: #ffcccb;
}

.close-icon {
  font-family: Arial, sans-serif;
  font-weight: bold;
}

/* Modal Content */
.webform-confirmation-modal--content {
  padding: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  background-color: #f2f2f2;
}

/* For accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .form-actions {
    flex-direction: column;
  }
}
