.syncro-form-wrapper {
  background: linear-gradient(160deg, #001a4d 0%, #002d80 50%, #004b9a 100%);
  padding: 50px 40px;
  border-radius: 16px;
  max-width: 900px;
  margin: 60px auto;
  color: #fff;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.form-title {
  font-size: 2rem;
  margin-bottom: 35px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
  position: relative;
}

.form-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #00a8e8;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.syncro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select {
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  background: #f9fbfd;
  color: #111;
  transition: all 0.25s ease;
  box-shadow: inset 0 0 0 1px #d3d8e4;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.4);
  background: #fff;
}

.form-group input::placeholder {
  color: #8b97a7;
}

button[type="submit"] {
  background: linear-gradient(90deg, #00a8e8, #007bb8);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

button[type="submit"]:hover {
  background: linear-gradient(90deg, #0091cc, #005fa3);
  box-shadow: 0 6px 16px rgba(0, 168, 232, 0.45);
  transform: translateY(-1px);
}

.full-width {
  grid-column: 1 / -1;
  text-align: center;
}

/* Input error highlight */
.syncro-input-error {
    border: 2px solid #FFA500 !important; /* bright coral red/orange */
    box-shadow: 0 0 0 3px #bf7c00;
}

/* Error message text */
.syncro-inline-error {
    color: #FFA500;
    font-size: 1.0rem;
    margin-top: 4px;
    font-style: italic;
}


/* Loader Animation */
.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #00a8e8;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 6px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Layout */
@media (max-width: 700px) {
  .syncro-form-wrapper {
    padding: 35px 25px;
    border-radius: 12px;
  }
  .form-title {
    font-size: 1.6rem;
  }
  .syncro-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


/* Spinner inside input */
/* Loader inside input */
.syncro-form-wrapper .form-group {
    position: relative; /* keep this */
}

.syncro-form-wrapper .loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #00a8e8;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;

    position: absolute;
    right: 10px;

    /* vertical center inside input */
    top: 50%;
    transform: translateY(-50%);

    z-index: 10;
    pointer-events: none;
}

/* Leave space in input so text doesn't overlap loader */
.syncro-form-wrapper input,
.syncro-form-wrapper select {
    padding-right: 36px;
}

/* Correct single spin keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Modal backdrop */
.syncro-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

/* Modal container */
.syncro-modal {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

/* Show modal animation */
.syncro-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}
.syncro-modal-backdrop.show .syncro-modal {
    transform: scale(1);
}

/* Close button */
.syncro-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Modal message */
.syncro-modal-message {
    font-size: 16px;
    margin-top: 10px;
    color: #333;
}
.btn-loader i {
    margin-right: 6px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}