/* Prava PAN Collection iframe Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: transparent;
  min-height: 100vh;
  padding: 0;
  color: #191A1A;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  padding: 0;
}

.card-form {
  background: transparent;
  padding: 16px;
}

/* Status messages */
.status {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
}

.status.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.status.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}

.status.info {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.hidden {
  display: none !important;
}

/* Form Layout */
.form-fields {
  margin-bottom: 12px;
}

.form-row {
  margin-bottom: 8px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.form-group {
  width: 100%;
}

/* Container for Skyflow iframes */
.skyflow-element {
  min-height: 56px;
}

/* Validation feedback */
.validation-feedback {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.field-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.field-status .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  font-size: 10px;
}

.field-status.valid {
  color: #16a34a;
}

.field-status.invalid {
  color: #dc2626;
}

.field-status.empty {
  color: #9ca3af;
}

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 12px 24px;
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}

.submit-btn:hover:not(:disabled) {
  background-color: #4338ca;
}

.submit-btn:disabled {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Loader */
.loader {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 360px) {
  .validation-feedback {
    grid-template-columns: 1fr 1fr;
  }
}
