/* styles.css */

* { box-sizing: border-box; }

body {
  background: #ffffff;
  font-family: system-ui, -apple-system;
}

/* Layout */
.checkout {
  max-width: 980px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.summary {
  padding: 40px;
  background: transparent;
}

.payment {
  padding: 30px;
}

/* Left side */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 28px;
  height: 28px;
  background: #111;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test {
  background: #ffe3a3;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

h1 {
  font-size: 32px;
  margin: 12px 0 24px;
}

.item, .total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.divider {
  height: 1px;
  background: #e6ebf1;
  margin: 24px 0;
}

/* Right side */
.apple-pay {
  width: 100%;
  background: black;
  color: white;
  padding: 14px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  margin-bottom: 16px;
  cursor: pointer;
}

.or {
  text-align: center;
  color: #8898aa;
  margin-bottom: 16px;
}

label {
  font-size: 13px;
  margin-top: 16px;
  display: block;
}

input, select {
  width: 100%;
  padding: 14px;                 /* slightly bulkier */
  border-radius: 8px;

  background: #fcfcfd;          /* Stripe light gray fill */
  border: 1px solid #d1d5db;     /* softer border */

  font-size: 16px;
  font-weight: 500;              /* tiny bit bulky */
  color: #374151;                /* Stripe gray text */

  margin-top: 6px;
}


/* placeholder example text */
input::placeholder,
select::placeholder {
  color:  #9ca3af;            /* darker gray like Stripe */
  opacity: 1;                  /* IMPORTANT for iPhone Safari */
}


/* labels above inputs */
label,
.field-label {
  color: #374151;
}

/* --- Stripe-style grouped card field --- */

.field-label{
  display:block;
  font-size:13px;
  margin:16px 0 6px;
  color:#111827;
}

.card-fieldset{
  width: 100%;
  border:1px solid #ccd0d5;
  border-radius:6px;
  overflow:hidden;
  background:#fff;
}

.card-fieldset:focus-within{
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(59,130,246,.15);
}

.card-row{
  display:flex;
  align-items:center;
  height:40px;
}

.card-row-top{
  padding-right:8px;
}

.card-input{
  flex:1;
  height:100%;
  border:0 !important;
  outline:0;
  padding:0 12px;
  margin:0 !important;
  border-radius:0 !important;
  background:transparent;
  font-size:16px;
  line-height: 1.2;
  color:#111827; 
}

.card-input::placeholder{
  color: #9ca3af;
  opacity:1;
}

.card-icons{
  display:flex;
  align-items:center;
  gap:6px;
  padding-left:8px;
  padding-right:4px;
}

/* icon placeholders */
.card-icons img{
  display:block;
  height:14px;
  width:auto;
}

.icon-visa{
  height:14px;
  padding:2px 6px;
  background:#fff;
}

.icon-brand{
  height:14px;
  width:18px;
  object-fit:contain;
}

.card-h-divider{
  height:1px;
  background:#ccd0d5;
}

.card-row-bottom{
  padding:0;
}

.card-v-divider{
  width:1px;
  height:100%;
  background:#ccd0d5;
}

.cvc-wrap{
  flex:1;
  display:flex;
  align-items:center;
}

.cvc-icon-img{
  height:16px;
  width:16px;
  object-fit:contain;
  margin-right:10px;
  opacity:.75;
}

/* Pay button */
#submit {
  margin-top: 24px;
  width: 100%;
  padding: 14px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.cvc-wrap {
  position: relative;
  flex: 1;              /* keeps it sizing nicely in your row */
}

.cvc-wrap .card-input {
  width: 100%;
  padding-right: 56px;  /* space so text doesn’t overlap icon */
}

.cvc-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  color: #111;          /* matches input icon color */
}


.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo-badge{
  width:28px;          /* match screenshot */
  height:28px;
  border-radius:999px;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 28px;
}

.infinity-svg{
  width:16px;
  height:16px;
  color:#fff;          /* makes stroke white */
}

/* =========================
   Mobile layout fixes
   Paste at the BOTTOM
   ========================= */

.checkout {
  max-width: 980px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.summary,
.payment{
  padding: 20px;
}

h1{
  font-size: 28px;
}

/* inputs a bit more touch-friendly */
input, select{
  font-size: 16px; /* prevents iOS zoom-on-focus */
}

/* card field becomes a bit taller on mobile */
.card-row{
  height: 44px;
}

.card-icons img{
  height: 13px;
}

/* keep icons from squeezing the card number on small widths */
.card-icons{
  gap: 5px;
}

/* make sure nothing overflows the screen */
.checkout, .summary, .payment, .card-fieldset{
  max-width: 100%;
}

/* Desktop: go back to 2 columns */
@media (max-width: 640px){
  .checkout {
    width: calc(100% - 0px);   /* 👈 THIS is the “wider on mobile” */
    max-width: 100%;
    margin: 8px auto;
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .summary,
  .payment {
    padding: 20px;
  }

  h1 {
    font-size: 28px;
  }

  .card-row{
    height: 40px;
  }

  .card-icons img{
    height: 14px;
  }
}

.logo { color: #fff; }        /* ensures currentColor is white */
.logo-svg { width:16px; height:16px; display:block; }

.checkout-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #6b7c93;
}

.checkout-footer a {
  color: inherit;
  text-decoration: underline;
}

.checkout-legal {
  margin: 8px 0 12px;
}

.checkout-powered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.checkout-powered strong {
  font-weight: 600;
}

.checkout-sep {
  color: #cfd7df;
}

.section-title {
  font-size: 16px;
  font-weight: 600;     /* semibold, not bold */
  color: #1f2937;      /* Stripe-style dark gray */
  margin-bottom: 8px;
}

label[for="email"]{ margin-top: 0; }
#email{ margin-bottom: 22px; }  /* keeps space before Payment method */



/* Make Country select look like Stripe (single chevron, same height as inputs) */
#country{
  height: 48px;                 /* makes it taller like Stripe */
  font-size: 16px;              /* bigger text */
  color: #111827;
  background: #fff;             /* removes the grayish bar look */
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 12px 44px 12px 12px; /* right padding for chevron */
  line-height: 1.2;

  -webkit-appearance: none;     /* kills iOS default arrows */
  -moz-appearance: none;
  appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center; /* single arrow */
  background-size: 18px 18px;
}

/* --- Stripe polish override (safe) --- */
.card-fieldset{
  background:#fcfcfd;
  border-color:#d1d5db;
}

.card-fieldset:focus-within{
  background:#fff;
}

.field-label{
  color:#374151;
  font-weight:500;
}

.card-h-divider,
.card-v-divider{
  background:#e5e7eb;
}



:root {
  --ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
             "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Force all text */
html, body, input, select, textarea, button, label {
  font-family: var(--ui-font) !important;
  font-weight: 400 !important;
}

/* Placeholders often look “heavier” or different */
input::placeholder, textarea::placeholder {
  font-family: var(--ui-font) !important;
  font-weight: 400 !important;
  opacity: 1;
}

/* Make it *feel* thinner like Stripe */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Lighter, whiter inputs 
   FINAL OVERRIDES       */
input, select, .card-fieldset{
  background: #ffffff !important;      /* was #fcfcfd */
  border-color: #e5e7eb !important;    /* was #d1d5db */
}
