/**
 * RajTech BD — Sharp-Edged Enterprise Meeting Booking Popup & Four-Corner Tension Cables
 * Minimalist sharp geometry (max 2px radius), 60fps SVG tension cable overlay,
 * balanced typography, and responsive layout across desktop, tablet, and mobile.
 */

.rajtechbd-mtg-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.2s;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #0F172A;
  box-sizing: border-box;
}

.rajtechbd-mtg-modal *,
.rajtechbd-mtg-modal *::before,
.rajtechbd-mtg-modal *::after {
  box-sizing: border-box;
}

.rajtechbd-mtg-modal.is-open,
.rajtechbd-mtg-modal:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.rajtechbd-mtg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.44) 0%, rgba(11, 21, 40, 0.62) 100%);
}

/* Four-Corner Tension Cable Layer */
.rajtechbd-mtg-cables {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
}

.rajtechbd-mtg-modal:target .rajtechbd-mtg-cables {
  opacity: 1;
}

.rajtechbd-mtg-cable-shadow {
  stroke: rgba(11, 21, 40, 0.32);
  stroke-width: 1.8px;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
}

.rajtechbd-mtg-cable-wire {
  stroke: rgba(203, 213, 225, 0.72);
  stroke-width: 1.05px;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
}

.rajtechbd-mtg-cable-pin {
  fill: #334155;
  stroke: rgba(226, 232, 240, 0.85);
  stroke-width: 1px;
  shape-rendering: crispEdges;
}

/* Suspended Sharp-Edged Modal Dialog */
.rajtechbd-mtg-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 632px;
  max-height: 755px;
  max-height: min(755px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-top: 2px solid #0284C7;
  border-radius: 2px;
  box-shadow: 0 28px 56px -14px rgba(15, 23, 42, 0.24), 0 8px 20px -6px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  transform: translateY(6px) scale(0.986);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  will-change: transform, opacity;
}

.rajtechbd-mtg-modal.is-open .rajtechbd-mtg-dialog,
.rajtechbd-mtg-modal:target .rajtechbd-mtg-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .rajtechbd-mtg-modal,
  .rajtechbd-mtg-dialog {
    transition: none;
    transform: none;
  }

  .rajtechbd-mtg-dialog {
    opacity: 1;
  }
}

/* Header */
.rajtechbd-mtg-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 24px 13px;
  border-bottom: 1px solid #E2E8F0;
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.rajtechbd-mtg-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.rajtechbd-mtg-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0284C7;
}

.rajtechbd-mtg-tz-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 1px;
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: #334155;
}

.rajtechbd-mtg-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #0F172A;
}

.rajtechbd-mtg-subtitle {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #475569;
}

.rajtechbd-mtg-direct-contact {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 4px 9px;
  border: 1px solid #CBD5E1;
  border-left: 2px solid #0284C7;
  border-radius: 2px;
  background-color: #F8FAFC;
  font-size: 11.5px;
  line-height: 1.3;
}

.rajtechbd-mtg-direct-label {
  color: #475569;
  font-weight: 600;
}

.rajtechbd-mtg-direct-link {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-weight: 700;
  color: #0F172A;
  text-decoration: none;
  border-radius: 1px;
}

.rajtechbd-mtg-direct-link:hover {
  color: #0284C7;
  text-decoration: underline;
}

.rajtechbd-mtg-direct-sep {
  color: #CBD5E1;
}

.rajtechbd-mtg-direct-wa {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #15803D;
  text-decoration: none;
}

.rajtechbd-mtg-direct-wa:hover {
  text-decoration: underline;
}

.rajtechbd-mtg-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  background-color: #FFFFFF;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rajtechbd-mtg-close:hover {
  background-color: #F8FAFC;
  color: #0F172A;
  border-color: #0F172A;
}

.rajtechbd-mtg-close:focus-visible {
  outline: 2px solid #0284C7;
  outline-offset: 2px;
}

/* Body */
.rajtechbd-mtg-body {
  padding: 15px 24px 18px;
  background-color: #FFFFFF;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.rajtechbd-mtg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rajtechbd-mtg-form[hidden] {
  display: none;
}

.rajtechbd-mtg-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Alert Banner */
.rajtechbd-mtg-alert {
  padding: 11px 14px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  border: 1px solid transparent;
  border-left-width: 3px;
}

.rajtechbd-mtg-alert[hidden] {
  display: none;
}

.rajtechbd-mtg-alert.is-error {
  background-color: #FEF2F2;
  border-color: #FECACA;
  border-left-color: #DC2626;
  color: #991B1B;
}

.rajtechbd-mtg-alert.is-info {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  border-left-color: #0284C7;
  color: #0369A1;
}

.rajtechbd-mtg-alert.is-success {
  background-color: #F0FDF4;
  border-color: #BBF7D0;
  border-left-color: #16A34A;
  color: #166534;
}

/* Sections */
.rajtechbd-mtg-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rajtechbd-mtg-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rajtechbd-mtg-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rajtechbd-mtg-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.01em;
}

.rajtechbd-req {
  color: #DC2626;
}

.rajtechbd-mtg-hint {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

/* Inputs */
.rajtechbd-mtg-input,
.rajtechbd-mtg-textarea {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  background-color: #FFFFFF;
  color: #0F172A;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 8px 11px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rajtechbd-mtg-textarea {
  resize: vertical;
  min-height: 54px;
}

.rajtechbd-mtg-input::placeholder,
.rajtechbd-mtg-textarea::placeholder {
  color: #94A3B8;
}

.rajtechbd-mtg-input:focus,
.rajtechbd-mtg-textarea:focus {
  outline: none;
  border-color: #0284C7;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.14);
}

.rajtechbd-mtg-input.has-error,
.rajtechbd-mtg-textarea.has-error {
  border-color: #DC2626;
}

.rajtechbd-mtg-field-err {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #DC2626;
}

.rajtechbd-mtg-field-err[hidden] {
  display: none;
}

/* 7-Day Calendar Grid */
.rajtechbd-mtg-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.rajtechbd-mtg-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  background-color: #F8FAFC;
  cursor: pointer;
  user-select: none;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rajtechbd-mtg-day input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rajtechbd-mtg-day:hover:not(.is-disabled):not(.is-selected) {
  border-color: #0284C7;
  background-color: #FFFFFF;
}

.rajtechbd-mtg-day:focus-within {
  outline: 2px solid #0284C7;
  outline-offset: 2px;
}

.rajtechbd-mtg-day.is-selected {
  background-color: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  box-shadow: inset 0 -2px 0 #0284C7;
}

.rajtechbd-mtg-day.is-disabled {
  background-color: #F8FAFC;
  border-color: #E2E8F0;
  color: #94A3B8;
  opacity: 0.52;
  cursor: not-allowed;
}

.rajtechbd-day-wk {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #64748B;
}

.rajtechbd-day-num {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin: 2px 0 1px;
  color: #0F172A;
}

.rajtechbd-day-mo {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.1;
  color: #64748B;
}

.rajtechbd-mtg-day.is-selected .rajtechbd-day-wk,
.rajtechbd-mtg-day.is-selected .rajtechbd-day-num,
.rajtechbd-mtg-day.is-selected .rajtechbd-day-mo {
  color: #FFFFFF;
}

.rajtechbd-mtg-day.is-disabled .rajtechbd-day-wk,
.rajtechbd-mtg-day.is-disabled .rajtechbd-day-num,
.rajtechbd-mtg-day.is-disabled .rajtechbd-day-mo {
  color: #94A3B8;
}

.rajtechbd-mtg-day.is-disabled .rajtechbd-day-num {
  text-decoration: line-through;
}

/* Time Slots */
.rajtechbd-mtg-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 6px;
  max-height: 122px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.rajtechbd-mtg-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 6px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  background-color: #FFFFFF;
  color: #0F172A;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.rajtechbd-mtg-slot input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rajtechbd-mtg-slot:hover:not(.is-selected) {
  border-color: #0284C7;
  background-color: #F0F9FF;
  color: #0369A1;
}

.rajtechbd-mtg-slot:focus-within {
  outline: 2px solid #0284C7;
  outline-offset: 1px;
}

.rajtechbd-mtg-slot.is-selected {
  background-color: #0284C7;
  border-color: #0284C7;
  color: #FFFFFF;
}

.rajtechbd-mtg-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed #CBD5E1;
  border-radius: 2px;
  background-color: #F8FAFC;
  color: #475569;
  font-size: 13px;
  text-align: center;
}

/* Topic Suggestions */
.rajtechbd-mtg-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rajtechbd-mtg-topic-chip {
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  background-color: #F8FAFC;
  color: #334155;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rajtechbd-mtg-topic-chip:hover {
  border-color: #0284C7;
  color: #0284C7;
  background-color: #F0F9FF;
}

.rajtechbd-mtg-topic-chip.is-active {
  border-color: #0F172A;
  background-color: #0F172A;
  color: #FFFFFF;
}

/* Footer Submit Row */
.rajtechbd-mtg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  margin-top: 0;
  border-top: 1px solid #E2E8F0;
}

.rajtechbd-mtg-selection-summary {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  line-height: 1.45;
}

.rajtechbd-mtg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #0F172A;
  border-radius: 2px;
  background-color: #0F172A;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.rajtechbd-mtg-submit:hover:not(:disabled) {
  background-color: #0284C7;
  border-color: #0284C7;
}

.rajtechbd-mtg-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.rajtechbd-mtg-submit:focus-visible {
  outline: 2px solid #0284C7;
  outline-offset: 2px;
}

/* Success State */
.rajtechbd-mtg-success {
  text-align: center;
  padding: 4px 2px 2px;
}

.rajtechbd-mtg-success[hidden] {
  display: none;
}

.rajtechbd-mtg-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  border: 1px solid #BBF7D0;
  background-color: #F0FDF4;
  color: #15803D;
  margin-bottom: 8px;
}

.rajtechbd-mtg-success-title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
}

.rajtechbd-mtg-success-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.rajtechbd-mtg-confirm-card {
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  background-color: #F8FAFC;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rajtechbd-mtg-confirm-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 6px;
}

.rajtechbd-mtg-confirm-card > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rajtechbd-mtg-confirm-card dt {
  margin: 0;
  font-weight: 600;
  color: #64748B;
  flex-shrink: 0;
}

.rajtechbd-mtg-confirm-card dd {
  margin: 0;
  font-weight: 700;
  color: #0F172A;
  text-align: right;
  word-break: break-word;
}

.rajtechbd-mtg-link-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 2px;
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 3px solid #0284C7;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.rajtechbd-mtg-link-note svg {
  flex-shrink: 0;
  color: #0284C7;
}

.rajtechbd-mtg-download-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.rajtechbd-mtg-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  background-color: #F8FAFC;
  color: #0F172A;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.rajtechbd-mtg-download-btn:hover {
  background-color: #F0F9FF;
  border-color: #0284C7;
  color: #0369A1;
}

.rajtechbd-mtg-download-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.rajtechbd-mtg-download-btn:focus-visible {
  outline: 2px solid #0284C7;
  outline-offset: 2px;
}

.rajtechbd-mtg-success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rajtechbd-mtg-secondary-btn {
  padding: 11px 18px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  background-color: #FFFFFF;
  color: #0F172A;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rajtechbd-mtg-secondary-btn:hover {
  background-color: #F8FAFC;
  border-color: #0F172A;
}

/* Reusable Shortcode Trigger Button */
.rajtechbd-mtg-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rajtechbd-mtg-trigger-primary {
  background-color: #0F172A;
  border: 1px solid #0F172A;
  color: #FFFFFF;
}

.rajtechbd-mtg-trigger-primary:hover {
  background-color: #1E293B;
}

.rajtechbd-mtg-trigger-secondary {
  background-color: #F59E0B;
  border: 1px solid #F59E0B;
  color: #0F172A;
}

.rajtechbd-mtg-trigger-secondary:hover {
  background-color: #D97706;
}

.rajtechbd-mtg-trigger-outline {
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
}

.rajtechbd-mtg-trigger-outline:hover {
  border-color: #0284C7;
  color: #0284C7;
}

/* Mobile & Tablet Responsive */
@media (max-width: 560px) {
  .rajtechbd-mtg-modal {
    padding: 14px;
    align-items: center;
  }

  .rajtechbd-mtg-dialog {
    max-height: 755px;
    max-height: min(755px, calc(100dvh - 28px));
    border-radius: 2px;
  }

  .rajtechbd-mtg-header {
    padding: 13px 16px 11px;
  }

  .rajtechbd-mtg-body {
    padding: 13px 16px 15px;
  }

  .rajtechbd-mtg-input,
  .rajtechbd-mtg-textarea {
    font-size: 16px;
  }

  .rajtechbd-mtg-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rajtechbd-mtg-contact-grid {
    grid-template-columns: 1fr;
  }

  .rajtechbd-mtg-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 126px;
  }

  .rajtechbd-mtg-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .rajtechbd-mtg-submit {
    width: 100%;
  }

  .rajtechbd-mtg-download-btn {
    flex: 1 1 130px;
  }
}
