/* Agent change logo page */

.agent-logo-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.agent-logo-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(2, 29, 98, 0.08);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.agent-logo-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.agent-logo-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.agent-logo-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(2, 29, 98, 0.18);
}

.agent-logo-title {
  margin: 0 0 4px;
  color: #021D62;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.agent-logo-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
  max-width: 640px;
}

.agent-logo-body {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.agent-logo-preview-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-logo-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.agent-logo-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.agent-logo-preview-frame img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.agent-logo-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

.agent-logo-preview-empty i {
  font-size: 28px;
}

.agent-logo-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.agent-logo-upload-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-logo-upload-label {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.agent-logo-page input.agent-logo-file[type="file"] {
  width: 100% !important;
  min-height: 96px !important;
  height: auto !important;
  padding: 18px 16px !important;
  border: 2px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.agent-logo-page input.agent-logo-file[type="file"]:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

.agent-logo-page input.agent-logo-file[type="file"]:focus {
  border-color: #003BCA !important;
  box-shadow: 0 0 0 3px rgba(0, 59, 202, 0.12) !important;
  outline: none !important;
}

.agent-logo-page input.agent-logo-file[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.agent-logo-page input.agent-logo-file[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.agent-logo-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  background: #eef4ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.agent-logo-hint i {
  margin-top: 2px;
  color: #003BCA;
}

.agent-logo-hint strong {
  color: #021D62;
}

.agent-logo-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

.agent-logo-page .agent-logo-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px !important;
  border: none !important;
  border-radius: 10px !important;
  background: #FF5F20 !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
  transform: none !important;
}

.agent-logo-page .agent-logo-btn-submit:hover {
  background: #e5551c !important;
  color: #fff !important;
}

.agent-logo-page .agent-logo-btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #475569 !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
  transform: none !important;
}

.agent-logo-page .agent-logo-btn-reset:hover {
  background: #f8fafc !important;
  color: #334155 !important;
}

@media (max-width: 991px) {
  .agent-logo-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .agent-logo-header,
  .agent-logo-body {
    padding: 16px;
  }

  .agent-logo-form {
    padding: 16px;
  }

  .agent-logo-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-logo-page .agent-logo-btn-submit,
  .agent-logo-page .agent-logo-btn-reset {
    width: 100%;
  }
}
