/* =====================================================================
   branch.css — buttons + popup + validation styles only.
   Existing .branch-card CSS is untouched.
   ===================================================================== */

/* ── Notification ─────────────────────────────────────────────────── */
.custom-notification {
  position: fixed;
  top: 100px;
  right: 30px;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
  z-index: 9999;
  animation: slideInRight 0.3s ease-out;
}
.custom-notification.success { background: #10b981; }
.custom-notification.error   { background: #ef4444; }
.custom-notification.info    { background: #3b82f6; }
.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}
.notification-content i { font-size: 1.5rem; }
@keyframes slideInRight {
  from { transform: translateX(400px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(400px); opacity: 0; }
}


/* ══════════════════════════════════════════════════════════════════
   BRANCH CARD — ACTION BUTTONS (equal height & width)
   ══════════════════════════════════════════════════════════════════ */

.branch-card-actions {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.branch-card-actions.single {
  grid-template-columns: 1fr;
}

.btn-get-directions,
.btn-request-batch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 38px;
  padding: 0 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn-get-directions i,
.btn-request-batch i { font-size: 0.73rem; }
.btn-get-directions:hover,
.btn-request-batch:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.13);
}

.btn-get-directions {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1.5px solid #bfdbfe;
}
.btn-get-directions:hover { background: #dbeafe; }

.btn-request-batch {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #ffffff;
}
.btn-request-batch:hover  { opacity: 0.9; }
.btn-request-batch:disabled { opacity: 0.65; cursor: not-allowed; }


/* ══════════════════════════════════════════════════════════════════
   POPUP OVERLAY
   ══════════════════════════════════════════════════════════════════ */
#branchBatchPopup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#branchBatchPopup.active { display: flex; }

.branch-popup-box {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem 2rem 1.75rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: slideInRight 0.3s ease-out;
}

.branch-close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #9ca3af;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.branch-close-popup:hover { color: #111827; }

.branch-popup-header {
  margin-bottom: 1.2rem;
  padding-right: 1.5rem;
}
.branch-popup-header h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  color: #1e40af;
  font-weight: 700;
}
.branch-popup-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.badge-course {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
}
.badge-branch {
  background: #f0fdf4;
  color: #16a34a;
  display: none;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
}
.visibility_hidden{
    visibility: hidden !important;
}
.display_none{
    display: none !important;
}

.brand_card_h3{
    color: #145DA0;
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════
   POPUP FORM — single column, 5 rows
   ══════════════════════════════════════════════════════════════════ */
#branchBatchForm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.branch-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.branch-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.branch-form-group input {
  width: 100%;
  padding: 0.58rem 0.85rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.45rem;
  font-size: 0.88rem;
  outline: none;
  box-sizing: border-box;
  background: #fff;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.branch-form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.branch-form-group input[readonly] {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}


/* ══════════════════════════════════════════════════════════════════
   VALIDATION STYLES
   ══════════════════════════════════════════════════════════════════ */

/* Red border on invalid field */
.branch-form-group input.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Error message text below field */
.field-error-msg {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: #ef4444;
  font-weight: 500;
  margin-top: 0.1rem;
  animation: fadeInDown 0.2s ease-out;
}
.field-error-msg::before {
  /* content: "\f06a";            */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.72rem;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── Submit button ── */
.btn-submit-batch {
  width: 100%;
  padding: 0.78rem;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-submit-batch:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}
.btn-submit-batch:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}



/* ── Responsive ── */
@media (max-width: 480px) {
  .branch-popup-box { padding: 1.5rem 1.1rem 1.25rem; }
  .branch-card-actions { grid-template-columns: 1fr; }
}