/* Minimal styling for the dropzone */
/* Create this file in assets/wpda-style.css or keep styles in theme */

/* wpda-style.css content sample (create the file in assets folder):
.wpda-dropzone { border: 2px dashed #ccc; padding: 20px; text-align: center; cursor: pointer; }
.wpda-dropzone .wpda-browse { color: #0073aa; cursor: pointer; }
*/

/* Root container */
#wpda-root {
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  /* white background */
  color: #000;
  /* 100% black text */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Heading */
#wpda-root h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #000;
  font-size: 2.8rem;
  font-weight: 800;
}

/* Dropzone area */
#wpda-dropzone {
  border: 2px dashed rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
  transition: border-color 0.3s, background-color 0.3s;
  cursor: pointer;
  position: relative;
}

#wpda-dropzone.dragover {
  border-color: #ffc523;
  background-color: rgba(255, 197, 35, 0.05);
}

/* Browse label */
.wpda-browse {
  color: #ffc523;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  z-index: 99;
}

#wpda-file {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

/* Preview section */
#wpda-preview {
  padding: 20px;
  background-color: rgba(255, 197, 35, 0.05);
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Checkbox styling */
#wpda-preview label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

#wpda-preview br {
  display: none;
}

#wpda-preview input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #ffc523;
}

/* Estimated cost */
#wpda-preview p strong {
  color: #000;
  /* 100% black */
}

/* Button styling */
#wpda-create-order {
  display: block;
  width: 100%;
  padding: 12px 0;
  background-color: #ffc523;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background-color 0.3s, transform 0.2s;
}

#wpda-create-order:hover {
  background-color: #e6b721;
  transform: translateY(-2px);
}

/* Messages */
#wpda-messages {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #000;
}

.wpda-message {
  padding: 10px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.05);
  margin-bottom: 8px;
  border-left: 4px solid #ffc523;
}

/* Responsive */
@media (max-width: 640px) {
  #wpda-root {
    padding: 20px;
  }

  #wpda-dropzone {
    padding: 20px;
  }
}


/* WP Data Append - Modern Checkout Design */

.wpda-container {
  max-width: 1100px;
  margin: 50px auto;
  font-family: "Inter", sans-serif;
  color: #1a1a1a;
}

.wpda-header h1 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 5px;
}

.wpda-header p {
  color: #666;
  font-size: 1rem;
}

.wpda-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.wpda-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 25px;
  transition: box-shadow 0.3s ease;
}

.wpda-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.wpda-step-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.step-number {
  background: #6b7fff;
  color: #fff;
  font-weight: bold;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  margin-right: 10px;
}

.wpda-dropzone {
  border: 2px dashed #ccc;
  border-radius: 10px;
  text-align: center;
  padding: 40px 20px;
  transition: all 0.3s ease;
  background: #fafafa;
  cursor: pointer;
}

.wpda-dropzone:hover,
#wpda-dropzone.dragover {
  border-color: #6b7fff;
  background: rgba(107, 127, 255, 0.05);
}

.wpda-browse {
  color: #6b7fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.wpda-help {
  color: #777;
  font-size: 0.9rem;
  margin-top: 10px;
}

.wpda-services label {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.wpda-services input[type="checkbox"] {
  accent-color: #6b7fff;
  margin-right: 10px;
}

.wpda-services label:hover {
  background: rgba(107, 127, 255, 0.08);
}

.wpda-stats p {
  margin: 6px 0;
  font-size: 0.95rem;
}

.wpda-btn-primary {
  background: #6b7fff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpda-btn-primary:hover {
  background: #596bff;
  transform: translateY(-2px);
}

.wpda-summary-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  position: sticky;
  top: 80px;
}

.wpda-summary-card h3 {
  font-weight: 700;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.summary-line.total {
  font-weight: 700;
  font-size: 1.1rem;
}

.wpda-messages {
  margin-top: 15px;
}

.wpda-message {
  background: rgba(107, 127, 255, 0.1);
  border-left: 4px solid #6b7fff;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .wpda-layout {
    grid-template-columns: 1fr;
  }

  .wpda-summary-card {
    position: static;
    margin-top: 20px;
  }
}

/* Select dropdown styling */
.wpda-select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.wpda-select:focus {
  border-color: #6b7fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 127, 255, 0.15);
}

.wpda-select option {
  padding: 8px;
}

/* Offer % input styling */
.wpda-input {
  width: 120px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  text-align: center;
  background: #fff;
}

.wpda-input:focus {
  border-color: #6b7fff;
  box-shadow: 0 0 0 3px rgba(107, 127, 255, 0.08);
  outline: none;
}

/* Contact card styles */
#wpda-contact {
  margin-top: 25px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Signature pad */
.signature-wrapper {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  padding: 10px;
  text-align: center;
}

#wpda-signature-pad {
  border: 1px dashed #aaa;
  border-radius: 6px;
  background-color: #fff;
  cursor: crosshair;
}

#wpda-clear-signature {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* Tier pricing card above summary */
.wpda-tier-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wpda-tier-card h5 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}

#wpda-tier-list li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* Tooltip styles for offer percentage help */
.wpda-tooltip-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 5px;
}

.wpda-help-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: #6b7fff;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  transition: all 0.3s ease;
}

.wpda-help-icon:hover {
  background: #596bff;
  transform: scale(1.1);
}

.wpda-tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 280px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 10px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -140px;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.4;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wpda-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.wpda-tooltip-wrapper:hover .wpda-tooltip-text {
  visibility: visible;
  opacity: 1;
}