/* =========================================================
   GVLS Registration Checkout
   ========================================================= */

body.gvls-registration-checkout {
  background: #f4f7fb;
}

/* Spacing after hero */
body.gvls-registration-checkout .woocommerce {
  padding-top: 2rem;
}

/* Hide default WC page title */
body.gvls-registration-checkout .entry-title,
body.gvls-registration-checkout h1.page-title,
body.gvls-registration-checkout .entry-header { display: none !important; }

/* Password field styling */
body.gvls-registration-checkout .gvls-password-field { margin-bottom: 0; }
body.gvls-registration-checkout .gvls-password-field label {
  font-size: 14px; font-weight: 600; color: #374151;
  margin: 0 0 8px; display: block;
}
body.gvls-registration-checkout .gvls-password-field input[type="password"] {
  width: 100%; min-height: 46px; border-radius: 8px;
  border: 1px solid #d1d5db; padding: 12px 14px;
  font-size: 15px; background: #fff; color: #1f2937;
  box-sizing: border-box; transition: border-color .2s, box-shadow .2s;
}
body.gvls-registration-checkout .gvls-password-field input[type="password"]:focus {
  outline: none; border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* =========================================================
   GVLS Professional Registration Checkout
   Mobile-First, Clean Design
   ========================================================= */

body.gvls-registration-checkout .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

body.gvls-registration-checkout .woocommerce > h2 {
  display: none; /* We use our own hero title */
}

/* Space between hero and form content */
body.gvls-registration-checkout .woocommerce-notices-wrapper,
body.gvls-registration-checkout form.checkout,
body.gvls-registration-checkout .woocommerce-form-login-toggle {
  margin-top: 2rem;
}

body.gvls-registration-checkout .gvls-checkout-container {
  padding-top: 1.5rem;
}

/* ========================================
   2-Column Container (Desktop Only)
======================================== */
body.gvls-registration-checkout .gvls-checkout-container {
  display: block;
}

/* Left Column - Customer Details */
body.gvls-registration-checkout #customer_details {
  width: 100%;
  margin-bottom: 24px;
}

/* Right Column - Sidebar */
body.gvls-registration-checkout .gvls-checkout-sidebar {
  width: 100%;
}

/* Desktop: 2-column layout */
@media (min-width: 921px) {
  body.gvls-registration-checkout .gvls-checkout-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: start;
  }

  body.gvls-registration-checkout #customer_details {
    margin-bottom: 0;
  }

  body.gvls-registration-checkout .gvls-checkout-sidebar {
    position: sticky;
    top: 100px;
  }
}

/* ========================================
   Billing Details
======================================== */
body.gvls-registration-checkout .woocommerce-billing-fields,
body.gvls-registration-checkout #customer_details {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.gvls-registration-checkout .woocommerce-billing-fields h3 {
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 2px solid #f3f4f6;
  font-size: 20px;
  color: #111827;
  font-weight: 700;
}

body.gvls-registration-checkout #customer_details .col-2 {
  display: none !important;
}

body.gvls-registration-checkout #customer_details .col-1 {
  width: 100%;
  float: none;
}

/* ========================================
   Form Fields
======================================== */
body.gvls-registration-checkout .woocommerce-billing-fields__field-wrapper {
  margin: 0;
}

body.gvls-registration-checkout .woocommerce-billing-fields__field-wrapper .form-row {
  margin: 0 0 20px;
  padding: 0;
}

body.gvls-registration-checkout .form-row-first {
  float: left;
  width: calc(50% - 8px);
  margin-right: 16px;
}

body.gvls-registration-checkout .form-row-last {
  float: right;
  width: calc(50% - 8px);
}

body.gvls-registration-checkout .form-row-wide {
  clear: both;
  width: 100%;
}

body.gvls-registration-checkout .woocommerce-billing-fields__field-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

/* Mobile: Stack fields */
@media (max-width: 640px) {
  body.gvls-registration-checkout .form-row-first,
  body.gvls-registration-checkout .form-row-last {
    float: none;
    width: 100%;
    margin-right: 0;
  }
}

/* ========================================
   Status Field Inside Form
======================================== */
body.gvls-registration-checkout .gvls-status-field {
  margin-top: 10px !important;
  padding-top: 20px;
  border-top: 2px solid #f3f4f6;
}

body.gvls-registration-checkout .gvls-status-field label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px;
  display: block;
}

/* ========================================
   Labels & Inputs
======================================== */
body.gvls-registration-checkout .woocommerce form .form-row label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px;
  display: block;
}

body.gvls-registration-checkout .woocommerce form .form-row label .required {
  color: #ef4444;
  margin-left: 2px;
}

body.gvls-registration-checkout .woocommerce form .input-text,
body.gvls-registration-checkout .woocommerce form input[type="text"],
body.gvls-registration-checkout .woocommerce form input[type="email"],
body.gvls-registration-checkout .woocommerce form input[type="tel"],
body.gvls-registration-checkout .woocommerce form input[type="number"],
body.gvls-registration-checkout .woocommerce form textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 12px 14px;
  font-size: 15px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Georgian", sans-serif;
}

body.gvls-registration-checkout .woocommerce form textarea {
  min-height: 100px;
  resize: vertical;
}

body.gvls-registration-checkout .woocommerce form .input-text:focus,
body.gvls-registration-checkout .woocommerce form select:focus,
body.gvls-registration-checkout .woocommerce form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========================================
   Selects
======================================== */
body.gvls-registration-checkout .woocommerce form select,
body.gvls-registration-checkout #gvls_reg_variation {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 12px 42px 12px 14px;
  font-size: 15px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Georgian", sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

body.gvls-registration-checkout .woocommerce form select:hover {
  border-color: #9ca3af;
}

/* ========================================
   Order Review - Clean Card Design
======================================== */

/* Hide "Your order" heading */
body.gvls-registration-checkout #order_review_heading {
  display: none;
}

body.gvls-registration-checkout .woocommerce-checkout #order_review {
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Remove table styling - make it look like a clean card */
body.gvls-registration-checkout .woocommerce-checkout-review-order-table {
  margin: 0;
  border: none;
  width: 100%;
}

body.gvls-registration-checkout .woocommerce-checkout-review-order-table thead {
  display: none; /* Hide table headers */
}

body.gvls-registration-checkout .woocommerce-checkout-review-order-table tbody,
body.gvls-registration-checkout .woocommerce-checkout-review-order-table tfoot {
  border: none;
}

body.gvls-registration-checkout .woocommerce-checkout-review-order-table tr {
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

body.gvls-registration-checkout .woocommerce-checkout-review-order-table tr:last-child {
  border-bottom: none;
}

body.gvls-registration-checkout .woocommerce-checkout-review-order-table th,
body.gvls-registration-checkout .woocommerce-checkout-review-order-table td {
  border: none;
  padding: 0;
  background: transparent;
  text-align: left;
  font-size: 15px;
  color: #374151;
}

body.gvls-registration-checkout .woocommerce-checkout-review-order-table td {
  text-align: right;
  font-weight: 600;
}

/* Product row */
body.gvls-registration-checkout .woocommerce-checkout-review-order-table .cart_item td {
  font-size: 15px;
}

/* Subtotal row */
body.gvls-registration-checkout .cart-subtotal th,
body.gvls-registration-checkout .cart-subtotal td {
  font-size: 16px;
  color: #1f2937;
}

/* Total row - emphasis */
body.gvls-registration-checkout .order-total th,
body.gvls-registration-checkout .order-total td {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  padding-top: 8px;
}

/* ========================================
   Button
======================================== */
body.gvls-registration-checkout #place_order {
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
  margin-top: 20px;
}

body.gvls-registration-checkout #place_order:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 10px -1px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

body.gvls-registration-checkout #place_order:active {
  transform: translateY(0);
}

/* ========================================
   Hide Unnecessary
======================================== */
body.gvls-registration-checkout .woocommerce-form-coupon-toggle,
body.gvls-registration-checkout .checkout_coupon,
body.gvls-registration-checkout .woocommerce-privacy-policy-text,
body.gvls-registration-checkout .woocommerce-additional-fields {
  display: none !important;
}

/* ========================================
   Messages
======================================== */
body.gvls-registration-checkout .woocommerce-error,
body.gvls-registration-checkout .woocommerce-message,
body.gvls-registration-checkout .woocommerce-info {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 0 0 24px;
  font-size: 14px;
}

body.gvls-registration-checkout .woocommerce-message {
  background: #f0fdf4;
  border-left-color: #22c55e;
  color: #166534;
}

body.gvls-registration-checkout .woocommerce-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
  color: #1e40af;
}

/* ========================================
   Mobile Responsive
======================================== */
@media (max-width: 920px) {
  body.gvls-registration-checkout .woocommerce {
    padding: 24px 16px;
  }

  body.gvls-registration-checkout .woocommerce-billing-fields,
  body.gvls-registration-checkout #customer_details,
  body.gvls-registration-checkout .woocommerce-checkout #order_review {
    padding: 20px;
  }

  body.gvls-registration-checkout .woocommerce > h2,
  body.gvls-registration-checkout .woocommerce-checkout h3,
  body.gvls-registration-checkout .woocommerce-billing-fields h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  body.gvls-registration-checkout .woocommerce {
    padding: 16px 12px;
  }

  body.gvls-registration-checkout .woocommerce-billing-fields,
  body.gvls-registration-checkout #customer_details,
  body.gvls-registration-checkout .woocommerce-checkout #order_review {
    padding: 16px;
  }

  body.gvls-registration-checkout .woocommerce > h2,
  body.gvls-registration-checkout .woocommerce-checkout h3 {
    font-size: 18px;
  }
}