/* Universal Pro Solution - Cleaning Partner Pro Frontend Styles */

.ups-cp-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1A1A1A;
}

/* Outer Card Container made Full-Width and borderless so user can style in Elementor */
.ups-cp-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  box-sizing: border-box;
}

.ups-cp-card-header {
  text-align: center;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #EDE7E1;
}

.ups-cp-eyebrow {
  display: inline-block;
  color: #8C5338;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ups-cp-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  color: #1A1A1A;
  margin: 0 0 14px;
  line-height: 1.2;
}

.ups-cp-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: #555555;
  font-size: 1.02rem;
  line-height: 1.6;
}

.ups-form-step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  color: #1A1A1A;
  margin: 35px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EDE7E1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ups-form-step-title:first-of-type {
  margin-top: 10px;
}

.ups-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #8C5338;
  color: #FFFFFF;
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ups-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 18px;
}

.ups-form-group {
  margin-bottom: 22px;
  width: 100%;
  box-sizing: border-box;
}

.ups-form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2A2421;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ups-form-label .req {
  color: #8C5338;
  margin-left: 3px;
  font-weight: bold;
}

/* Softer border for all inputs per user request */
.ups-form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #E4DDD7;
  border-radius: 8px;
  font-size: 0.96rem;
  font-family: 'Inter', sans-serif;
  color: #1A1A1A;
  background: #FFFFFF;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-height: 48px;
}

.ups-form-control:focus {
  outline: none;
  border-color: #8C5338;
  box-shadow: 0 0 0 3px rgba(140, 83, 56, 0.12);
}

select.ups-form-control {
  cursor: pointer;
  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='%238C5338' stroke-width='2.5' 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 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.ups-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

/* Softer border & background for checkboxes */
.ups-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #FCFAF8;
  border: 1px solid #ECE6E1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  box-sizing: border-box;
}

.ups-checkbox-item:hover {
  background: #F7F2ED;
  border-color: #D4A373;
}

.ups-checkbox-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #8C5338;
  width: 17px;
  height: 17px;
  cursor: pointer;
  flex-shrink: 0;
}

.ups-checkbox-item span {
  font-size: 0.88rem;
  color: #333333;
  line-height: 1.4;
}

.ups-ack-box {
  background: #FAF6F3;
  border: 1px solid rgba(140, 83, 56, 0.15);
  border-radius: 10px;
  padding: 24px;
  margin: 30px 0;
}

.ups-ack-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
}

.ups-ack-item:last-child {
  margin-bottom: 0;
}

.ups-ack-item input[type="checkbox"] {
  margin-top: 4px;
  accent-color: #8C5338;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.ups-ack-item span {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #444444;
}

.ups-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #8C5338;
  color: #FFFFFF;
  padding: 16px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(140, 83, 56, 0.3);
  min-height: 52px;
}

.ups-btn-submit:hover:not(:disabled) {
  background: #73432D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 83, 56, 0.4);
}

.ups-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ups-cp-alert-error {
  background: #FFF5F5;
  border: 1px solid #E53E3E;
  color: #C53030;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.ups-cp-confirmation {
  text-align: center;
  padding: 50px 25px;
  background: #FAF8F5;
  border: 2px solid #8C5338;
  border-radius: 12px;
  margin-top: 20px;
}

.ups-cp-confirmation .conf-icon {
  font-size: 3.2rem;
  margin-bottom: 14px;
}

.ups-cp-confirmation h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: #8C5338;
  margin-bottom: 14px;
}

.ups-cp-confirmation p {
  font-size: 1.05rem;
  color: #555555;
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto;
}

/* Spinner */
.spinner-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: upsSpin 0.8s ease-in-out infinite;
}

@keyframes upsSpin {
  to { transform: rotate(360deg); }
}

/* ========================================================
   RESPONSIVENESS (Mobile & Tablet Breakpoints)
   ======================================================== */
@media (max-width: 768px) {
  .ups-cp-wrapper {
    padding: 0;
  }

  .ups-cp-card {
    padding: 0;
  }

  .ups-cp-title {
    font-size: 2rem;
  }

  .ups-cp-subtitle {
    font-size: 0.94rem;
  }

  .ups-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ups-form-step-title {
    font-size: 1.25rem;
    margin: 28px 0 16px;
  }

  .ups-checkbox-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ups-ack-box {
    padding: 18px 14px;
  }

  .ups-btn-submit {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .ups-cp-title {
    font-size: 1.75rem;
  }

  .ups-form-control {
    padding: 11px 14px;
    font-size: 0.92rem;
  }
}
