/*
Theme Name: Meridian Pay
Theme URI: https://meridianglobal.eu
Author: VENDO / Crystal Investment Ltd
Author URI: https://vendonext.com
Description: Payment page theme for Meridian Global Recruitment - matches main site design exactly
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: meridian-pay
*/

/* ============================================
   MERIDIAN GLOBAL RECRUITMENT - PAYMENT THEME
   Matches meridianglobal.eu design exactly
   ============================================ */

/* --- TOKENS --- */
:root {
  --primary:       #1a3c6e;   /* Deep navy - main brand */
  --primary-dark:  #122b52;   /* Darker navy */
  --accent:        #2563eb;   /* Bright blue - CTAs */
  --accent-hover:  #1d4ed8;   /* CTA hover */
  --gold:          #f59e0b;   /* Trust badge gold */
  --white:         #ffffff;
  --off-white:     #f8fafc;
  --light-blue:    #eff6ff;
  --border:        #dbeafe;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --success:       #16a34a;
  --radius:        10px;
  --shadow:        0 4px 24px rgba(26,60,110,0.10);
  --shadow-lg:     0 8px 40px rgba(26,60,110,0.16);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

/* --- HEADER --- */
.site-header {
  background: var(--primary);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.site-logo-text {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
}

.header-secure svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

/* --- PROGRESS BAR --- */
.progress-bar {
  background: var(--primary-dark);
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.progress-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  flex: 1;
  position: relative;
}

.progress-step.done { color: rgba(255,255,255,0.7); }
.progress-step.active { color: var(--white); }

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.progress-step.done .step-num {
  background: var(--success);
  color: white;
}

.progress-step.active .step-num {
  background: var(--accent);
  color: white;
}

.step-divider {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0 8px;
}

/* --- MAIN LAYOUT --- */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .site-main {
    grid-template-columns: 1fr;
    padding: 24px 16px 48px;
    gap: 24px;
  }
}

/* --- PAYMENT CARD --- */
.payment-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.payment-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 28px 32px;
  color: var(--white);
}

.payment-card-header h1 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.payment-card-header p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.payment-card-body {
  padding: 32px;
}

/* Amount display */
.amount-display {
  background: var(--light-blue);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.amount-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.amount-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.amount-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* What you get */
.fee-breakdown {
  margin-bottom: 28px;
}

.fee-breakdown h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.fee-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.fee-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.fee-item-icon svg {
  width: 11px;
  height: 11px;
  fill: white;
}

.fee-item-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.fee-item-text strong {
  color: var(--primary);
}

/* WooCommerce overrides */
.woocommerce-page .woocommerce {
  padding: 0;
}

.woocommerce form.checkout,
.woocommerce-checkout #payment {
  background: transparent;
  border: none;
  padding: 0;
}

.woocommerce #payment div.payment_box {
  background: var(--light-blue);
  border-radius: var(--radius);
}

.woocommerce .woocommerce-info {
  border-top-color: var(--accent);
  background: var(--light-blue);
}

.woocommerce button.button,
.woocommerce input.button,
.woocommerce #place_order {
  background: var(--accent) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 14px 28px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  letter-spacing: 0.01em !important;
}

.woocommerce button.button:hover,
.woocommerce #place_order:hover {
  background: var(--accent-hover) !important;
}

.woocommerce ul.payment_methods {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.woocommerce ul.payment_methods li {
  padding: 10px 0;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
}

.woocommerce form .form-row input.input-text:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Order summary table */
.woocommerce-checkout-review-order table.shop_table {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.woocommerce-checkout-review-order table.shop_table th {
  background: var(--light-blue);
  color: var(--primary);
  font-weight: 600;
  padding: 12px 16px;
  font-size: 0.85rem;
}

.woocommerce-checkout-review-order table.shop_table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.woocommerce-checkout-review-order .order-total td,
.woocommerce-checkout-review-order .order-total th {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  background: var(--light-blue);
}

/* --- SIDEBAR --- */
.payment-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Trust box */
.trust-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.trust-box h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.trust-item:last-child { margin-bottom: 0; }

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.trust-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.trust-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Stats box */
.stats-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: white;
}

.stats-box h3 {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 600;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-bottom: none; }

.stat-label {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.75);
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

/* Refund note */
.refund-note {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.refund-note svg {
  width: 20px;
  height: 20px;
  fill: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}

.refund-note p {
  font-size: 0.82rem;
  color: #166534;
  line-height: 1.5;
}

.refund-note strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.85rem;
}

/* Secure badges */
.secure-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.badge svg {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
}

/* --- FOOTER --- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 40px;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
  .payment-card-header { padding: 20px; }
  .payment-card-body { padding: 20px; }
  .amount-value { font-size: 1.8rem; }
  .header-inner { height: 56px; }
}
