/* Agent Popup Styling */
.agent-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.agent-popup {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 450px;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  display: none;
}

.agent-popup.active {
  display: block;
}

.agent-popup-header {
  background-color: #1a3a6d;
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  position: relative;
}

.agent-popup-back {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  margin-right: 10px;
}

.agent-popup-title {
  flex-grow: 1;
  text-align: center;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.agent-popup-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.agent-popup-content {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(80vh - 56px);
}

/* Form Elements */
.agent-form-group {
  margin-bottom: 16px;
}

.agent-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.agent-form-group input,
.agent-form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: #fff;
}

.agent-form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
  padding-right: 30px;
}

.agent-form-group select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.agent-form-group .required {
  color: #e74c3c;
  margin-left: 2px;
}

.agent-form-group small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 4px;
}

.agent-mobile-input {
  display: flex;
  align-items: center;
}

.agent-country-code {
  background-color: #f0f0f0;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: #333;
  font-size: 16px;
}

.agent-mobile-input input {
  border-radius: 0 4px 4px 0;
  flex-grow: 1;
}

/* Buttons */
.agent-btn-primary {
  background-color: #1a3a6d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.agent-btn-primary:hover {
  background-color: #142d54;
}

/* Access Page */
.agent-access-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
}

.agent-access-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
}

.agent-access-buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.agent-access-btn {
  flex: 1;
  padding: 20px 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.agent-access-btn:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.agent-access-btn.primary {
  background-color: #1a3a6d;
  color: white;
  border: none;
}

.agent-access-btn.primary:hover {
  background-color: #142d54;
}

/* PIN Input */
.agent-pin-container {
  margin: 20px 0;
}

.agent-pin-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
}

.agent-pin-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
}

.agent-security-warning {
  display: flex;
  background-color: #fff8e1;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.agent-warning-icon {
  color: #f39c12;
  font-size: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

.agent-security-warning p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.agent-pin-input-container {
  margin: 20px 0;
}

.agent-pin-input-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.agent-pin-input {
  width: 45px;
  height: 55px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

.agent-show-pin-container {
  margin: 15px 0;
}

.agent-show-pin-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.agent-show-pin-label input {
  margin-right: 8px;
}

.agent-checkbox-text {
  font-size: 14px;
}

/* Registration Form */
.agent-registration-form {
  margin-top: 10px;
}

.agent-registration-form .agent-form-group {
  margin-bottom: 12px;
}

/* Success Message */
.agent-success-content {
  text-align: center;
  padding: 30px 20px;
}

.agent-success-icon {
  width: 80px;
  height: 80px;
  background-color: #27ae60;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.agent-success-icon i {
  font-size: 40px;
}

.agent-success-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.agent-success-message {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

/* Overlay */
.agent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1999;
  display: none;
}
