/* Fullscreen backdrop */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal card */
.modal-wrapper {
  background-color: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: popIn 0.3s ease;
}

/* Modal header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #111;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #444;
}

/* Modal body */
.modal-body {
  text-align: center;
  padding: 2rem 1.5rem;
}

.modal-image {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.modal-action-btn {
  background-color: #0074f9;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.modal-action-btn span {
  margin-left: 0.5rem;
}

.modal-caption {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: #333;
}

/* Trigger button */
.open-modal-btn {
  margin: 3rem auto;
  display: block;
  background-color: #333;
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* Animation */
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.form-box {
  background-color: #f7f7f7;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: left;
}

.form-box .form-title {
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.form-box label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-box input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#downloadBtn {
  display: block;
  width: 100%;
  font-weight: 500;
}
.text-left{
  text-align: left!important;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.connect-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #f2f2f2;
    box-shadow: 1px #f2f2f2;
    box-shadow: 0px 0px 10px 10px #f2f2f2;
    margin-top: 30px;
}

.option-img {
  width: 100%;
  height: auto;
  margin-right: 1rem;
}

.modal-action-btn.small {
  padding: 0.4rem 0.8rem;
  font-size: 16px;
}

/* Hide by default */
.hidden {
  display: none;
}

.usb-flow {
  text-align: center;
  padding: 20px;
}

.usb-graphic {
  width: 80%;
  margin: 20px auto;
  display: block;
}

.usb-loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4fc3f7;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.usb-step-message {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 18px;
}

.usb-status-text {
  font-size: 18px;
  color: #333;
}

.usb-status-text.red {
  color: red;
}
