/* File: inc/setup-wizard-adf/assets/css/license.css — Polished Design */
:root {
  --primary:       #2d3e50;
  --primary-hover: #2d3e50;
  --bg-panel:      #ffffff;
  --bg-muted:      #eef3f8;
  --border:        #d1dce7;
  --text:          #2e3a45;
  --text-muted:    #6b7a8f;
  --danger:        #e53e3e;
  --success:       #2f855a;
  --radius:        12px;
  --transition:    0.3s ease;
}

/* License Step Container */
.sb-wizard-panel.license-step {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-muted);
}

/* Card Wrapper */
.license-card {
  position: relative;
  /*max-width: 500px;*/
  width: 100%;
  background: var(--bg-panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.license-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.08);
}

/* Header Section */
.license-header {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}
.license-header h3 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.license-subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.9;
}
.license-header::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: #fff;
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Floating Success Icon */
.license-icon {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border-radius: 50%;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.license-icon .dashicons-yes {
  font-size: 2rem;
  color: var(--success);
}

/* Body Content */
.license-body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.license-intro {
  font-size: 1.1rem;
  color: var(--text);
  text-align: center;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.field-input {
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(0,160,210,0.15);
}

.field-error,
.field-success {
  font-size: 0.875rem;
  min-height: 1.2em;
  display: none;
  transition: color var(--transition);
  text-align: center;
  margin-top: -0.5rem;
}
.field-error.visible {
  display: block;
  color: var(--danger);
}
.field-success.visible {
  display: block;
  color: var(--success);
}

/* Footer Section */
.license-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.actions {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Button Styles */
.sb-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), transform 0.1s;
  text-align: center;
}
.sb-btn-primary {
  background: var(--primary);
  color: #fff;
}
.sb-btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.license-heading h3 {
  color: #fff !important;
}

.sb-btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
}
.sb-btn-danger:hover:not(:disabled) {
  background: #c53030;
}
.sb-btn-back {
  background: none;
  color: var(--text-muted);
  border: none;
  font-size: 0.9rem;
}
.sb-btn-back:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Spinner */
.spinner-wrapper {
  text-align: center;
}
.sb-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.sb-spinner.active {
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 520px) {
  .license-card { margin: 0 1rem; }
  .license-body { padding: 1.5rem; gap: 1rem; }
  .license-header { padding: 3rem 1rem 1rem; }
  .actions { flex-direction: column; }
  .sb-btn { width: 100%; }
}
