@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600&display=swap');

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: white !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  background-color: #002144;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header img {
  height: 30px;
  width: auto;
  display: block;
}

h1 {
  text-align: center;
  color: black;
  margin: 0;
  width: 100%;
  font-size: 22px;
  font-weight: 600;
}

.container {
  max-width: 700px;
  width: 75%;
  padding: 20px;
  padding-bottom: 50px;
  border-radius: 10px;
  margin: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spinner {
  width: 12px;
  height: 12px;
  border: 3px solid rgba(0, 33, 68, 0.2);
  border-radius: 50%;
  border-top-color: #002144;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#startButton {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 25px;
  background-color: white;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
}

.button-border {
  border: 1px solid #D9D9D9;
}

.button-no-border {
  border: none;
}

#startButton img {
  width: 18px;
}

.button-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  width: 100%;
  color: black;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.status-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

.status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  background-color: #ff4444;
  color: white;
}

.agence-logo img {
  width: 150px;
}

.typing-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
}

.dots {
  display: flex;
  justify-content: center;
}

.typing-dots span {
  font-size: 32px;
  line-height: 1;
  color: #002144;
  opacity: 0.3;
  transform: translateY(-2px);
  transition: opacity 0.3s ease;
}

.typing-dots.speaking span {
  animation: dotFade 1.4s ease-in-out infinite;
}

.typing-dots.speaking span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots.speaking span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotFade {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

.status.connected {
  background-color: #00C851;
}

.footer-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
}

#endButton {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: black;
}

.end-call-icon {
  width: 24px;
  height: 24px;
}

.wave-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wave-circle {
  fill: none;
  stroke: #002144;
  stroke-width: 2;
  opacity: 0.1;
}

.wave-line {
  stroke: #002144;
  stroke-width: 2;
  stroke-linecap: round;
}

.wave-container.speaking .wave-line {
  animation: wave 1s ease-in-out infinite;
}

@keyframes wave {

  0%,
  100% {
    d: path('M15,25 L35,25');
  }

  50% {
    d: path('M15,25 Q20,15 25,25 T35,25');
  }
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

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

#agenceplus-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: black;
}

#agenceplus-branding img {
  width: 100px;
  margin-bottom: 4px;
}

.agp-btn {
  text-decoration: none;
  background-image: linear-gradient(90deg, #105685, #15afb7);
  color: white;
  border-radius: 100vh;
  padding: 14px 35px;
}

.agp-contact {
  text-decoration: none;
  color: #15afb7;
}

.container-contact {
  gap: 25px;
  margin-top: -100px;
}

#agenceplus-branding-link {
  text-decoration: none;
  color: inherit;
  display: inline-block; /* or block */
}
/* Agency Selector Styles */
.agency-selector {
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.agency-selector-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.agency-selector-content h1 {
  text-align: center;
  color: black;
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 600;
  flex-shrink: 0;
}

.agency-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 12px;
  align-content: center;
  overflow-y: auto;
  padding: 5px;
}

.agency-item {
  background-color: #FFFFFF;
  border: 1px solid #D2D2D2;
  border-radius: 10px;
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: fit-content;
}

/* .agency-item:hover {
  background-color: #e9ecef;
  border-color: #002349;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} */

.agency-item-name {
  font-size: 17px;
  font-weight: 600;
  color: #002349;
  margin: 0;
  line-height: 1.3;
}

.agency-item-description {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .agency-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .agency-selector-content {
    padding: 15px;
  }
  
  .agency-selector-content h1 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .agency-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .agency-item {
    padding: 12px 18px;
  }
  
  .agency-item-name {
    font-size: 16px;
  }
  
  .agency-item-description {
    font-size: 12px;
  }
}