/* ============================================================
   VGNT Native Widget Styles
   Designed to blend naturally with borders & queues styling
   ============================================================ */

.vgnt-wp-widget-container {
  width: 100%;
  max-width: 860px;
  margin: 30px auto;
  box-sizing: border-box;
}

.vgnt-widget {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(44,122,75,0.06), 0 2px 10px rgba(0,0,0,0.02);
  border: 1px solid #e8f2ec;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
}

/* Header */
.vgnt-header {
  background: linear-gradient(135deg, #005280 0%, #007dc1 100%);
  padding: 30px 40px;
  text-align: center;
  color: #ffffff;
}

.vgnt-header-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.vgnt-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.vgnt-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0;
  font-weight: 400;
}

/* Steps */
.vgnt-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px 0;
}

.vgnt-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.vgnt-step:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.vgnt-step.active { color: #2c7a4b; }
.vgnt-step.done { color: #005280; }

.vgnt-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.vgnt-step.active .vgnt-step-circle {
  background: #2c7a4b;
  border-color: #2c7a4b;
  color: #ffffff;
}

.vgnt-step.done .vgnt-step-circle {
  background: #005280;
  border-color: #005280;
  color: #ffffff;
}

.vgnt-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 10px 18px 10px;
  min-width: 20px;
}

/* Panels */
.vgnt-content {
  padding: 30px 40px;
  min-height: 280px;
}

.vgnt-panel {
  display: none;
  animation: vgntFadeIn .25s ease both;
}

.vgnt-panel.active { display: block; }

@keyframes vgntFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vgnt-panel-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}

/* Country Grid */
.vgnt-countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1.5px solid #e8f2ec;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}

.country-card:hover {
  border-color: #2c7a4b;
  box-shadow: 0 4px 15px rgba(44,122,75,0.08);
  transform: translateY(-1px);
}

.country-card.selected {
  border-color: #2c7a4b;
  background: #e6f4ea;
}

.country-flag {
  font-size: 32px;
  line-height: 1;
}

.country-name-text {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.country-badge {
  font-size: 10px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 6px;
  border-radius: 100px;
  font-weight: 600;
}

/* Form inputs */
.vgnt-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.vgnt-form-group { display: flex; flex-direction: column; gap: 6px; }

.vgnt-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155; /* Slate-700 for better readability */
}

.vgnt-input,
.vgnt-select {
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1; /* Slightly darker slate border for crispness */
  border-radius: 10px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* Custom select styling to override default OS styles */
.vgnt-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 40px;
}

.vgnt-input:hover,
.vgnt-select:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

/* Custom styling for date input */
input[type="date"]#v-start-date {
  position: relative;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zm6.75-4.5h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V15zm0 2.25h.008v.008h-.008v-.008zm2.25-4.5h.008v.008H16.5v-.008zm0 2.25h.008v.008H16.5V15z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}

/* Hide native webkit calendar indicator */
input[type="date"]#v-start-date::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.vgnt-input:focus,
.vgnt-select:focus {
  border-color: #2c7a4b;
  box-shadow: 0 0 0 4px rgba(44,122,75,0.12);
  background: #ffffff;
}

.vgnt-input.error,
.vgnt-select.error { 
  border-color: #ef4444; 
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

/* Custom elegant dropdown selectors */
.vgnt-custom-select {
  position: relative;
  width: 100%;
}

.vgnt-custom-select-trigger {
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.vgnt-custom-select-trigger:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

.vgnt-custom-select.active .vgnt-custom-select-trigger {
  border-color: #2c7a4b;
  box-shadow: 0 0 0 4px rgba(44,122,75,0.12);
}

.vgnt-custom-select-trigger .vgnt-arrow {
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform .2s ease;
}

.vgnt-custom-select.active .vgnt-custom-select-trigger .vgnt-arrow {
  transform: rotate(180deg);
}

.vgnt-custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  z-index: 999;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px;
}

.vgnt-custom-select.active .vgnt-custom-select-options {
  display: block;
  animation: vgntSlideDown 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.vgnt-custom-select-option {
  padding: 10px 12px;
  font-size: 13.5px;
  color: #334155;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.vgnt-custom-select-option:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.vgnt-custom-select-option.selected {
  background: #e6f4ea;
  color: #15803d;
  font-weight: 600;
}

@keyframes vgntSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.vgnt-btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.vgnt-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vgnt-btn-back {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.vgnt-btn-back:hover { background: #e2e8f0; }

.vgnt-btn-primary {
  background: #2c7a4b;
  color: #ffffff;
  margin-left: auto;
}

.vgnt-btn-primary:hover {
  background: #1e5c38;
  transform: translateY(-1px);
}

.vgnt-btn-pay {
  padding: 12px 28px;
  font-size: 14px;
}

/* Product Cards */
.vgnt-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.product-card {
  border: 1.5px solid #e8f2ec;
  border-radius: 12px;
  padding: 18px;
  background: #ffffff;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card:hover {
  border-color: #2c7a4b;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(44,122,75,0.06);
}

.product-card.selected {
  border-color: #2c7a4b;
  background: #e6f4ea;
}

.product-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #2c7a4b;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  text-transform: uppercase;
}

.product-duration {
  font-size: 18px;
  font-weight: 800;
}

.product-type {
  font-size: 11px;
  color: #64748b;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: #2c7a4b;
  margin-top: 10px;
}

.product-price-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

/* Order Summary */
.vgnt-order-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}

.order-label { color: #64748b; }
.order-value { font-weight: 600; }
.order-divider { height: 1px; background: #e2e8f0; }

.order-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
}

.order-total-price { color: #2c7a4b; }

/* Statuses & loading */
.vgnt-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
}

.vgnt-success-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}

.vgnt-success-box .success-icon { font-size: 32px; margin-bottom: 6px; }

.vgnt-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  gap: 10px;
  color: #64748b;
}

.vgnt-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #2c7a4b;
  border-radius: 50%;
  animation: vgnt-spin .8s linear infinite;
}

/* Trust footer */
.vgnt-trust {
  display: flex;
  border-top: 1px solid #e8f2ec;
  background: #f8fafb;
}

.vgnt-trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  border-right: 1px solid #e8f2ec;
}

.vgnt-trust-item:last-child { border-right: none; }

/* Skeleton */
.vgnt-widget-skeleton {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e8f2ec;
  overflow: hidden;
  height: 380px;
  padding: 30px;
}

.vgnt-skeleton-header {
  height: 60px;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 20px;
  animation: shimmer 1.5s infinite;
}

.vgnt-skeleton-body {
  height: 180px;
  background: #f8fafc;
  border-radius: 12px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { opacity: 0.6; }
  50% { opacity: 0.8; }
  100% { opacity: 0.6; }
}

@media(max-width: 576px) {
  .vgnt-form-row { grid-template-columns: 1fr; }
  .vgnt-countries-grid { grid-template-columns: repeat(2, 1fr); }
  .vgnt-products-grid { grid-template-columns: 1fr; }
  .vgnt-content { padding: 20px 16px; }
  .vgnt-steps span { display: none; }
  .vgnt-trust { flex-direction: column; }
  .vgnt-trust-item { border-right: none; border-bottom: 1px solid #e8f2ec; }
  .vgnt-trust-item:last-child { border-bottom: none; }
}
