/* branding.css - Cleaned and Optimized */
:root {
  --committee-highlight: transparent;
  --committee-border: #d5e3f3;
  --committee-active: transparent;
  --committee-checked-bg: transparent;
  --committee-checked-border: #7bc47f;
  --committee-checked-shadow: 0 0 0 2px #7bc47f55;
  --committee-hover: transparent;
  --committee-label: #0078d7;
  --committee-status: #888;
  --committee-booked: #ff2557;
  --committee-few: #ffa900;
  --zone-box-color: #ffcc00;
}

.main-wrapper {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 0 24px;
  min-height: 100vh;
  height: auto !important;
  background: transparent;
}

.left-panel {
  flex: 1 1 410px;
  min-width: 340px;
  max-width: 520px;
  padding: 20px;
  border-right: 1px solid #ddd;
  background: transparent;
}

.right-panel {
  flex: 2 1 500px;
  min-width: 0;
  padding: 20px;
  background: transparent;
}

.accordion-item {
  margin-bottom: 14px;
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid var(--committee-border);
  transition: box-shadow 0.16s;
}

.accordion-btn {
  width: 100%;
  padding: 16px 14px;
  text-align: left;
  background-color: transparent;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.12rem;
  border-radius: 8px 8px 0 0;
  letter-spacing: 0.01em;
  color: var(--committee-label);
  box-shadow: none;
  transition: background 0.16s, color 0.14s;
}

.accordion-btn:hover,
.accordion-btn:focus {
  background: transparent;
  color: #1a4786;
}

.accordion-content {
  display: none;
  padding: 16px 10px 10px 18px;
  border-top: 1px solid var(--committee-border);
  background: transparent;
  border-radius: 0 0 8px 8px;
}

.committee-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px 14px;
  margin-top: 2px;
}

.committee-checkbox {
  display: flex;
  align-items: center;
  font-size: 1rem;
  background: transparent;
  border-radius: 6px;
  padding: 7px 10px 7px 6px;
  border: 1px solid var(--committee-border);
  transition: box-shadow 0.13s, border 0.15s, background 0.13s;
  cursor: pointer;
  min-height: 38px;
  box-shadow: none;
}

.committee-checkbox:hover,
.committee-checkbox:focus-within {
  background: transparent;
  border-color: var(--committee-border);
  box-shadow: 0 2px 8px rgba(0,120,215,0.05);
}

.committee-checkbox input[type="checkbox"] {
  accent-color: #1ca96e;
  margin-right: 10px;
  width: 1.15em;
  height: 1.15em;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.committee-checkbox input[type="checkbox"]:checked {
  box-shadow: var(--committee-checked-shadow);
}

.committee-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 1px;
}

.committee-checkbox .committee-name {
  font-weight: 600;
  color: var(--committee-label);
  margin-right: 7px;
  font-size: 1.05em;
  cursor: pointer;
  transition: color 0.16s;
}

.committee-checkbox:hover .committee-name,
.committee-checkbox:focus-within .committee-name {
  color: #0c4686;
  text-decoration: underline;
}

.committee-checkbox .committee-name:active {
  color: #b85c02;
}

.committee-checkbox span[style*="Booked"] {
  color: var(--committee-booked) !important;
  font-weight: 600;
  text-shadow: none;
}

.committee-checkbox span[style*="Few left"] {
  color: var(--committee-few) !important;
  font-weight: 600;
}

.committee-checkbox input[type="checkbox"]:checked ~ .committee-name {
  color: #1ca96e;
  text-shadow: none;
}

.committee-checkbox input[type="checkbox"]:checked ~ .committee-status {
  color: #1ca96e;
}

.committee-checkbox input[type="checkbox"]:checked {
  background: transparent;
  border-color: var(--committee-checked-border);
}

/* Form Styles */
.form-section-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
  background: transparent;
}

.form-container {
  max-width: 1330px;
  margin: 0 auto;
  padding: 25px;
  background: transparent;
  border-radius: 8px;
  width: 100%;
}

#branding-form {
  width: 100%;
  min-width: auto;
  padding: 0;
  margin: 0 auto;
  background: transparent;
}

#branding-form h3 {
  font-size: 1.23rem;
  font-weight: 700;
  color: #796312;
  margin-bottom: 12px;
  text-align: left;
  letter-spacing: 0.01em;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

#branding-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 500;
  color: #2c2c2c;
  font-size: 1.06rem;
}

#branding-form input[type="text"],
#branding-form input[type="tel"],
#branding-form input[type="email"],
#branding-form textarea {
  width: 100%;
  padding: 9px 12px;
  margin-top: 5px;
  border: 1.5px solid #b38114;
  border-radius: 6px;
  font-size: 1.09rem;
  box-sizing: border-box;
  background: transparent;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 34px;
  outline: none;
}

#branding-form textarea {
  min-height: 45px;
  max-height: 220px;
}

#branding-form input[type="text"]:focus,
#branding-form input[type="tel"]:focus,
#branding-form input[type="email"]:focus,
#branding-form textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#form-puja-committee {
  background-color: transparent;
  cursor: not-allowed;
}

#selected-count {
  margin-top: 2px;
  font-size: 1.02rem;
  color: #1976d2;
  font-weight: 500;
  display: inline-block;
}

.submit-btn {
  background: #007bff;
  color: white;
  padding: 15px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s, box-shadow 0.13s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(0, 123, 255, 0.09);
  margin-top: 10px;
  display: inline-block;
  width: 100%;
}

.submit-btn:hover, 
.submit-btn:focus {
  background: #0056b3;
  box-shadow: 0 3px 22px rgba(0, 123, 255, 0.17);
  transform: translateY(-1px) scale(1.02);
}

.submit-btn:active {
  transform: translateY(0);
}

#form-spinner {
  display: none;
  margin-left: 15px;
  color: #007bff;
  font-size: 1.2rem;
}

#form-response {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  font-size: 1rem;
}

/* Clear All Button */
.clear-all-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 15px 0 25px 0;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clear-all-btn:hover {
  background-color: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.clear-all-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* Zone Section Headers */
.zone-section {
  margin-bottom: 20px;
}

.zone-section h4 {
  font-size: 1.25rem;
  color: #b38114;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
}

.zone-section h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--zone-box-color);
  border-radius: 4px;
}

/* Select All Checkbox */
.zone-select-all {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 8px 12px;
  background-color: transparent;
  border-radius: 5px;
}

.zone-select-all input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: #d32f2f;
}

.zone-select-all label {
  font-weight: 600;
  color: #333;
  cursor: pointer;
  flex-grow: 1;
}

/* Success Popup */
#success-popup {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.32);
  align-items: center;
  justify-content: center;
  display: none;
}

#success-popup > div {
  background: rgba(255,255,255,0.95);
  max-width: 360px;
  width: 94vw;
  margin: auto;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 32px 18px 24px 18px;
  position: relative;
}

#close-success-popup {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

#success-popup > div > div:first-child {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 14px;
}

#success-title {
  margin: 0 0 8px 0;
  font-size: 1.35rem;
  color: #216a13;
}

#success-popup > div > div:last-child {
  font-size: 1.06rem;
  color: #333;
}

#success-popup > div > div:last-child span {
  font-size: 0.95rem;
  color: #555;
}

#success-popup > div > div:last-child a {
  color: #007bff;
}

/* Promo Banner */
.promo-banner {
  background: transparent;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 5px solid #ff8800;
  border-radius: 4px;
  font-size: 1rem;
}

.promo-banner h2 {
  margin-top: 0;
  color: #d35400;
  font-size: 1.22rem;
}

.promo-banner h3 {
  margin-top: 0;
  color: #b85c02;
  font-size: 1.13rem;
  font-weight: 700;
}

.promo-banner p, .promo-banner ul {
  margin: 10px 0;
  font-size: 1rem;
  color: #333;
}

.promo-banner ul {
  padding-left: 1.2em;
}

/* Map */
#map {
  background: transparent;
  height: 350px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
}

/* Dropdown */
.dropdown-content {
  display: none;
  padding: 10px 0 0 0;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  padding: 0;
  display: flex;
  align-items: center;
}

.dropdown-toggle i {
  margin-left: 4px;
}

/* Committee Search */
.committee-search-bar {
  width: 100%;
  max-width: 420px;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.committee-search-bar input[type="text"] {
  flex: 1;
  padding: 8px 11px;
  border: 1.5px solid #b38114;
  border-radius: 6px;
  font-size: 1.08rem;
  background: transparent;
  transition: border-color 0.2s;
}

#committee-autocomplete {
  position: absolute;
  z-index: 10000;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255,255,255,0.98);
  border: 1.5px solid #b38114;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 230px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

#committee-autocomplete li {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1.05rem;
  border-bottom: 1px solid #f5eeed;
}

#committee-autocomplete li:last-child {
  border-bottom: none;
}

#committee-autocomplete li.focused,
#committee-autocomplete li:hover {
  background: #f5f5f5;
  color: #ad650d;
  outline: none;
}

#committee-autocomplete li.selected {
  color: #1976d2;
  background: #f0f7ff;
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .main-wrapper {
    flex-direction: column;
    gap: 0;
    padding: 10px;
  }
  
  .left-panel {
    border-right: none;
    border-bottom: 1px solid #ddd;
    max-width: unset;
    min-width: 0;
    width: 100%;
    padding: 14px 8px;
    margin-bottom: 20px;
  }
  
  .right-panel {
    width: 100%;
    padding: 14px 6px;
  }
}

@media (max-width: 768px) {
  .form-container {
    padding: 18px;
    margin: 0 15px;
    width: calc(100% - 30px);
  }
  
  #branding-form input[type="text"],
  #branding-form input[type="tel"],
  #branding-form input[type="email"],
  #branding-form textarea {
    font-size: 1rem;
  }
  
  .committee-list {
    grid-template-columns: 1fr;
    gap: 3px 0;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 15px;
  }
  
  #branding-form label {
    font-size: 0.95rem;
  }
  
  .submit-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .accordion-btn {
    font-size: .99rem;
    padding: 8px;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Overlay */
.committee-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* Placeholder styling */
#branding-form ::placeholder {
  color: #999;
  opacity: 1;
}

#branding-form :-ms-input-placeholder {
  color: #999;
}

#branding-form ::-ms-input-placeholder {
  color: #999;
}

/* Required field indicators */
#branding-form [aria-required="true"] {
  border-left: 3px solid #ffcc00;
  padding-left: 11px;
}