/*
Theme Name: GS Center Theme
Author: 
Description: Custom theme for GS Center website
Version: 2.1

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/
/* Text Domain: gs-center-theme */
/* Deployment test - verifying GitHub Actions workflow */
.modren-fields-style{
	box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3) !important;
    border: 0px transparent !important;
    background: transparent !important;
    width: 100% !important;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 16px !important;
    line-height: 2em !important;
    margin-bottom: 3% !important;
    /* min-height: 150px !important; */
    display: block !important;
    border: none !important;
    border-radius: 0 !important;
    color: #999 !important;
    padding: 16px !important;
    max-width: 100%;
    outline: none !important;
    /* box-shadow: none !important; */
    background-color: #eee !important;
}
textarea.modren-fields-style{
	height: 150px;
}
.recuritment-btn{
	    color: #9b452e !important;
    border-width: 0px !important;
    border-radius: 0px !important;
    letter-spacing: 1px;
    font-size: 16px;
    font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 0.3em 1em !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    white-space: inherit;
    display: inline-block;
    margin: 0 0 0 18px;
    cursor: pointer;
    float:right;
}
.recuritment-btn:hover{
	background-color: rgba(0, 0, 0, .05) !important;
}
.page-id-48 header.wp-block-template-part {
    display: none;
}
.page-id-48 div#wpadminbar {
    display: none;
}
body h2{
	color: #9b4430;
}
wp-block-heading {
    font-size: 2rem;
    line-height: 1.4;
}
/* Style the wrapper label */
.wpcf7 .divi-radio label {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
}

/* Hide default radio */
.wpcf7 .divi-radio input[type="radio"] {
  opacity: 0;
  position: absolute;
}

/* Custom radio circle */
.wpcf7 .divi-radio input[type="radio"] + span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #666;
  border-radius: 50%;
  margin-right: 10px;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

/* Selected state */
.wpcf7 .divi-radio input[type="radio"]:checked + span::before {
  background-color: #2ea3f2; /* Divi blue */
  border-color: #2ea3f2;
  box-shadow: inset 0 0 0 4px #fff;
}

/* Hover state */
.wpcf7 .divi-radio label:hover span::before {
  border-color: #2ea3f2;
}

/* Add span wrapper to label content */
.wpcf7 .divi-radio label span {
  display: inline-flex;
  align-items: center;
}
/* Add spacing between radio button options */
.wpcf7 .divi-radio .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  margin-right: 40px !important;
  margin-bottom: 10px !important;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
}
/* Flex layout for side-by-side fields */
.half-column-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.half-column-container .half-column {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
}
/* Submit button spinner */
.wpcf7-spinner {
  display: inline-block !important;
  margin-left: 10px;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top: 3px solid #2ea3f2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* Spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Member Database */
.member-db-page {
  background: #f5f7fb;
  padding-bottom: 140px;
}

.member-database-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.member-db-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.member-db-title {
  margin: 0 0 6px 0;
  font-size: 28px;
  font-weight: 600;
  color: #101828;
}

.member-db-subtitle {
  margin: 0;
  color: #667085;
  font-size: 15px;
}

.member-db-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.member-db-header-status {
  font-size: 12px;
  color: #667085;
  align-self: center;
}

.member-db-button {
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.member-db-button.is-primary {
  background: #1d2939;
  color: #fff;
  border-color: #1d2939;
}

.member-db-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.member-db-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.member-db-kpi {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-db-kpi-label {
  color: #667085;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.member-db-kpi-value {
  font-size: 22px;
  font-weight: 600;
  color: #101828;
}

.member-db-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.member-db-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.member-db-hint {
  margin: 0 0 16px 0;
  color: #98a2b3;
  font-size: 13px;
}

.member-db-search {
  flex: 1 1 320px;
}

.member-db-filter {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 20px;
}

.member-db-filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.member-db-filter-label {
  display: block;
  font-size: 12px;
  color: #667085;
  margin-bottom: 4px;
}

.member-db-select {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
}

.member-db-count {
  color: #667085;
  font-size: 14px;
}

.member-db-table th[data-sort-key] {
  cursor: pointer;
}

.member-db-table th[data-sort-dir="asc"]::after {
  content: " ▲";
  font-size: 12px;
}

.member-db-table th[data-sort-dir="desc"]::after {
  content: " ▼";
  font-size: 12px;
}

.member-db-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f9fafb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #667085;
}

.member-db-table th:nth-child(3),
.member-db-table td:nth-child(3) {
  min-width: 160px;
  width: 18%;
}

.member-db-table th:nth-child(6),
.member-db-table td:nth-child(6) {
  min-width: 90px;
  width: 10%;
  white-space: nowrap;
}

.member-db-table tbody tr:hover {
  background: #f9fafb;
}

.member-db-table mark {
  background: #fef3c7;
  color: #7a2e0e;
  padding: 0 2px;
  border-radius: 3px;
}

.member-db-display {
  color: #101828;
  font-size: 14px;
}

.member-db-drawer-input.is-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.member-db-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.member-db-badge.is-active {
  background: #ecfdf3;
  color: #027a48;
}

.member-db-badge.is-inactive {
  background: #f2f4f7;
  color: #344054;
}

.member-db-badge.is-warning {
  background: #fff7e6;
  color: #b54708;
}

.member-db-badge.is-complete {
  background: #ecfdf3;
  color: #027a48;
}

.member-db-actions {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-db-action {
  background: transparent;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  color: #344054;
}

.member-db-status {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  color: #027a48;
}

.member-db-status.is-error {
  color: #d92d20;
}

.member-db-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.member-db-drawer {
  position: fixed;
  top: var(--member-db-header-offset, 0px);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100% - var(--member-db-header-offset, 0px));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10000;
}

.member-db-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.member-db-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
}

.member-db-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(460px, 100%);
  background: #fff;
  box-shadow: -12px 0 32px rgba(16, 24, 40, 0.16);
  display: flex;
  flex-direction: column;
}

.member-db-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e4e7ec;
}

.member-db-drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
}

.member-db-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e4e7ec;
  background: #fff;
}

.member-db-drawer-actions {
  display: flex;
  gap: 10px;
}

.member-db-drawer-status {
  font-size: 13px;
  color: #027a48;
}

.member-db-drawer-status.is-error {
  color: #d92d20;
}

.member-db-drawer-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.member-db-detail-group {
  margin-bottom: 20px;
}

.member-db-detail-group h3 {
  font-size: 14px;
  color: #667085;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.member-db-detail {
  margin-bottom: 12px;
}

.member-db-group-actions {
  display: inline-flex;
  gap: 6px;
}

.member-db-inline-action {
  background: transparent;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  margin-right: 6px;
  cursor: pointer;
  color: #344054;
}

.member-db-group-actions .member-db-group-save,
.member-db-group-actions .member-db-group-cancel {
  display: none;
}

.member-db-detail-group.is-editing .member-db-group-edit {
  display: none;
}

.member-db-detail-group.is-editing .member-db-group-save,
.member-db-detail-group.is-editing .member-db-group-cancel {
  display: inline-flex;
}

.member-db-detail-label {
  display: block;
  font-size: 12px;
  color: #98a2b3;
  margin-bottom: 4px;
}

.member-db-required {
  color: #d92d20;
  margin-left: 2px;
}

.member-db-detail-value {
  font-size: 14px;
  color: #101828;
}

.member-db-drawer-input,
.member-db-drawer-inputs {
  display: none;
}

.member-db-detail.is-editing .member-db-drawer-input,
.member-db-detail.is-editing .member-db-drawer-inputs {
  display: block;
}

.member-db-detail.is-editing .member-db-drawer-text {
  display: none;
}

.member-db-drawer-input {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  margin-top: 6px;
}

.member-db-drawer-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.member-db-filter:focus-visible,
.member-db-select:focus-visible,
.member-db-input:focus-visible,
.member-db-action:focus-visible,
.member-db-button:focus-visible,
.member-db-drawer-input:focus-visible {
  outline: 3px solid rgba(46, 131, 246, 0.4);
  outline-offset: 2px;
}

