/* Tailwind CSS imports */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* CSS Custom Properties for theming */
@layer base {
  body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'BlinkMacSystemFont', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  }
  
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 84% 4.9%;
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96%;
    --accent-foreground: 222.2 84% 4.9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221 48.7% 76.1%;
    --radius: 0.5rem;
    --pay-hero-height: 280px;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 84% 4.9%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 94.1%;
  }
}

/* Pay page hero and glass container styles (no inline styles; CSP friendly) */

.pay-bg { position: fixed; inset: 0; z-index: 0; background-image: url('https://d372puazxph6i4.cloudfront.net/v2/static/heros/hero-2560.avif'); background-size: cover; background-position: center; filter: blur(0px); }

.pay-hero { position: relative; height: var(--pay-hero-height); display: grid; place-items: center; }
.pay-hero-bg { position: absolute; inset: 0; background-image: url('https://d372puazxph6i4.cloudfront.net/v2/static/heros/hero-2560.avif'); background-size: cover; background-position: center; }
.pay-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15)); }
.pay-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1120px; padding: 1.5rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.pay-hero-title { font-size: 2rem; font-weight: 700; margin-top: 1rem; }
.pay-hero-subtitle { margin-top: .25rem; color: rgba(255,255,255,0.92); }
.pay-hero-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.4); color: rgba(255,255,255,0.9); background: transparent; }
.pay-hero-back-arrow { font-size: 18px; }
.pay-hero-back-text { font-size: 14px; font-weight: 600; }

/* Glass container used below hero */
.content-container { position: relative; z-index: 1; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border-radius: 16px; margin-top: 0.25rem; padding: 0.25rem; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); border: 1px solid rgba(255,255,255,0.2); }

/* Modern payment form styles */
.cp-form { display: grid; gap: 16px; }
.cp-field { display: grid; gap: 6px; }
.cp-label { font-size: 0.875rem; color: #374151; font-weight: 600; }
.cp-input { height: 44px; border-radius: 12px; border: 1px solid #E5E7EB; padding: 0 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cp-input:focus { outline: none; border-color: #60A5FA; box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.cp-row { display: grid; grid-template-columns: 1fr 160px; gap: 12px; }
.cp-col { display: grid; gap: 6px; }
.cp-col-narrow { display: grid; gap: 6px; }
.cp-error { color: #DC2626; font-size: 0.875rem; }
.cp-button { height: 48px; border-radius: 12px; background: linear-gradient(135deg,#2563EB,#7C3AED); color:#fff; font-weight: 600; border: none; padding: 0 18px; cursor: pointer; box-shadow: 0 6px 12px rgba(37,99,235,.25); transition: transform .05s ease, filter .15s ease; }
.cp-button:hover { filter: brightness(1.05); }
.cp-button:active { transform: translateY(1px); }
.cp-button:disabled { opacity: .6; cursor: not-allowed; }
.cp-hint { font-size: 0.75rem; color: #6B7280; }


