@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Roboto+Mono&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 900px;
  background-color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.left-side {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  width: 400px;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.card-inner {
  width: 100%;
  height: 220px;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.card-inner.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-front {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  z-index: 2;
}

.card-back {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  transform: rotateY(180deg);
  padding: 20px 0;
  justify-content: flex-start;
}

.card-magnetic-stripe {
  width: 100%;
  height: 45px;
  background: #000;
  margin-top: 20px;
}

.card-cvv-section {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.card-cvv-section span {
  color: white;
  margin-bottom: 8px;
}

.card-cvv-box {
  background: #fff;
  color: #1e293b;
  width: 100%;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 15px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 600;
  letter-spacing: 2px;
}

.upper-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-chip {
  width: 45px;
  height: 35px;
  background: linear-gradient(135deg, #ffd700 0%, #e6be00 100%);
  border-radius: 6px;
  position: relative;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.card-logo {
  font-weight: 700;
  font-style: italic;
  font-size: 1.5rem;
  color: #fff;
}

.card-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: #fff;
  margin: 30px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-info {
  display: flex;
  justify-content: space-between;
}

.card-info span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
  color: #fff;
}

.card-info div {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 1px;
}

.right-side {
  flex: 1;
  padding: 48px;
  background-color: #fff;
  min-width: 350px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

header p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.payment-form .input-group {
  margin-bottom: 20px;
}

.payment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 8px;
}

.payment-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.payment-form input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background-color: #1e293b;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 20px;
}

.btn-primary:hover {
  background-color: #0f172a;
}

