/* Place to Pay WordPress Plugin - Professional Styles */

.placetopay-payment-form {
  max-width: 600px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Header Section */
.placetopay-header {
  background: linear-gradient(
    90deg,
    rgba(255, 226, 148, 1) 0%,
    rgba(253, 190, 21, 1) 50%,
    rgba(252, 176, 69, 1) 100%
  );
  padding: 32px 40px;
  text-align: center;
  color: #000;
  position: relative;
}

.placetopay-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" fill-opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" fill-opacity="0.03"/><circle cx="25" cy="75" r="1" fill="white" fill-opacity="0.03"/><circle cx="75" cy="25" r="1" fill="white" fill-opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.placetopay-logo {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.placetopay-logo svg {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.placetopay-title {
  position: relative;
  z-index: 1;
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.placetopay-subtitle {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
  line-height: 1.4;
}

/* Payment Summary */
.placetopay-payment-summary {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 24px 40px;
}

.placetopay-amount-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.placetopay-amount-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.placetopay-amount-value {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.placetopay-description-display {
  font-size: 14px;
  color: #475569;
  line-height: 1.4;
}

/* Form Section */
.placetopay-form-section {
  padding: 32px 40px;
}

.placetopay-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.placetopay-section-title svg {
  color: #667eea;
}

/* Form Rows and Columns */
.placetopay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.placetopay-col {
  display: flex;
  flex-direction: column;
}

/* Labels */
.placetopay-form label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

/* Input Fields */
.placetopay-form input,
.placetopay-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.placetopay-form input:focus,
.placetopay-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: #fefefe;
}

.placetopay-form input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Form Actions */
.placetopay-form-actions {
  padding: 0 40px 32px 40px;
}

.placetopay-submit-btn {
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 226, 148, 1) 0%,
    rgba(253, 190, 21, 1) 50%,
    rgba(252, 176, 69, 1) 100%
  );
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.placetopay-submit-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 226, 148, 1) 0%,
    rgba(253, 190, 21, 1) 50%,
    rgba(252, 176, 69, 1) 100%
  );
  transition: left 0.5s;
}

.placetopay-submit-btn:hover:before {
  left: 100%;
}

.placetopay-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.placetopay-submit-btn:active {
  transform: translateY(0);
}

.placetopay-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.placetopay-btn-icon {
  width: 16px;
  height: 16px;
}

/* Loading State */
.placetopay-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Security Footer */
.placetopay-security-footer {
  background: #f8fafc;
  padding: 20px 40px;
  border-top: 1px solid #e2e8f0;
}

.placetopay-security-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.placetopay-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.placetopay-badge svg {
  color: #10b981;
}

/* URL Parameters Notice */
.placetopay-url-params-notice {
  background: linear-gradient(
    90deg,
    rgba(255, 226, 148, 1) 0%,
    rgba(253, 190, 21, 1) 50%,
    rgba(252, 176, 69, 1) 100%
  );
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 40px;
  color: #1e40af;
  font-size: 13px;
  line-height: 1.5;
}

.placetopay-url-params-notice strong {
  font-weight: 600;
}

/* Messages */
.placetopay-message {
  margin: 20px 40px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.placetopay-message.placetopay-success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.placetopay-message.placetopay-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.placetopay-message.placetopay-info {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

/* Error Display */
.placetopay-error {
  margin: 20px 40px;
  padding: 16px 20px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .placetopay-payment-form {
    margin: 20px 16px;
    border-radius: 12px;
  }

  .placetopay-header,
  .placetopay-payment-summary,
  .placetopay-form-section,
  .placetopay-form-actions,
  .placetopay-security-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .placetopay-url-params-notice,
  .placetopay-message,
  .placetopay-error {
    margin-left: 24px;
    margin-right: 24px;
  }

  .placetopay-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .placetopay-security-badges {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .placetopay-amount-display {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

/* Admin Styles */
.placetopay-admin {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.placetopay-admin .form-table th {
  width: 200px;
}

.placetopay-admin .regular-text {
  width: 100%;
  max-width: 400px;
}

/* ========================================
   NOTIFICATION PAGE STYLES - ELEGANT & MINIMALIST
   ======================================== */

/* Base reset and foundation */
.notification-page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container */
.notification-container {
  max-width: 500px;
  width: 90%;
  padding: 60px 40px;
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Success icon */
.notification-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease-out;
}

.notification-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* Typography */
.notification-title {
  font-size: 28px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
  letter-spacing: -0.025em;
}

.notification-message {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

/* Details section */
.notification-details {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}

.notification-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

/* Animations */
@keyframes scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 640px) {
  .notification-container {
    padding: 40px 24px;
    margin: 20px;
  }

  .notification-title {
    font-size: 24px;
  }

  .notification-message {
    font-size: 15px;
  }
}

/* ========================================
   NEXT STEPS SECTION
   ======================================== */

.notification-steps {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0 0 0;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.notification-steps h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 20px 0;
  text-align: center;
  text-transform: uppercase;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
  text-align: center;
}

.step-item {
  counter-increment: step-counter;
  position: relative;
  padding: 12px 0 12px 45px;
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.5;
  text-align: left; /* Texto de cada paso alineado a la izquierda */
}

.step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  background: #e5e7eb;
  color: #6b7280;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.step-item.completed {
  color: #6b7280;
  text-decoration: line-through;
}

.step-item.completed::before {
  background: #ffb300;
  color: white;
  content: "✓";
}

.step-item.current {
  color: #1f2937;
  font-weight: 500;
}

.step-item.current::before {
  background: #ffb300;
  color: white;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.whatsapp-button:hover {
  background: #128c7e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  color: white;
  text-decoration: none;
}

.whatsapp-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* URL Parameters Notice */
.placetopay-url-params-notice {
  background: linear-gradient(135deg, #e0f2fe 0%, #e1f5fe 100%);
  border: 1px solid #81d4fa;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #0277bd;
}

.placetopay-url-params-notice strong {
  color: #01579b;
  display: block;
  margin-bottom: 4px;
}

.placetopay-url-params-notice small {
  font-size: 12px;
  color: #0288d1;
  line-height: 1.4;
  word-break: break-all;
}

/* Document Validation Styles */
.placetopay-form input.valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.placetopay-form input.invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.document-error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  padding: 5px 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-weight: 500;
  animation: fadeInError 0.3s ease-out;
}

@keyframes fadeInError {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error messages */
.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  padding: 5px 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-weight: 500;
  animation: fadeInError 0.3s ease-out;
}

/* Field error state */
.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Success state visual feedback */
.placetopay-form input:valid:not([type="submit"]):not([type="button"]) {
  border-color: #10b981;
}

/* Validation icon for inputs */
.placetopay-form .form-field {
  position: relative;
}

.placetopay-form input.valid::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-weight: bold;
  pointer-events: none;
}

/* Improved focus states */
.placetopay-form input:focus,
.placetopay-form select:focus {
  outline: none;
  border-color: #ffb300;
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
}

/* Document type specific help text */
.document-type-help {
  font-size: 11px;
  color: #6b7280;
  margin-top: 3px;
  font-style: italic;
}
