@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

.card-section {
    display: flex;
    justify-content: center;
    color: #fff;
    perspective: 1000px;
    padding-bottom: 20px;
    background-image: url('images/vetmed-card-stain-2.png');
    background-size: cover;
}
h5, .h5 {
    color: #fff;
}
.card-container {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-container.flipped {
    transform: rotateY(180deg);
}
.number {
    letter-spacing: 2px;
    transition: all 0.2s ease;
    color:#fff;
    margin-top:10px;
}
input:focus {
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.card-container {
    font-family: "Poppins", sans-serif;
    position: relative;
    height: 225px;
    width: 100%;
    max-width: 375px;
    z-index: 100;
    transition: 0.6s;
    transform-style: preserve-3d;
}
.card-container:hover {
    transform: rotateY(180deg);
}
.card-container .card {
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 25px;
    border-radius: 25px;
    backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backface-visibility: hidden; /* Ensure backface-visibility is set */
    transform-style: preserve-3d;
}
.front-face {
  backface-visibility: hidden;
}
.front-face header,
.front-face .logo {
  display: flex;
  align-items: center;
  color:#dedede;
}
.front-face header {
  justify-content: space-between;
}
.front-face .logo img {
  width: 48px;
  padding-bottom:12px;
}
/* Card brand label (e.g. Visa) — darker + bolder so it reads on the light card. */
.front-face header .logo .light-gray-text {
  color: #999;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
}
.front-face .chip {
  width: 50px;
  margin-top: 10px;
}
.front-face .card-details {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

/* Card text was <h5>/<h6> (broke heading order); now divs — keep the bold look. */
.card-details .number {
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    margin-top:10px;
}
.card-details .name {
    color: #fff;
    font-weight: 700;
    margin-top: 10px;
}
.front-face .card-exp {
    font-size: 14px;
    font-weight: 700;
}
.card.back-face {
  border: none;
  padding: 15px 25px 25px 25px;
  transform: rotateY(180deg);
  backface-visibility: hidden; /* Ensure backface-visibility is set */
}
.card.back-face .card-note {
  font-size: 8px;
  color: #000;
}
.card.back-face .magnetic-strip {
  position: absolute;
  top: 40px;
  left: 0;
  height: 45px;
  width: 100%;
  background: #000;
}
.card.back-face .signature {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 80px;
  height: 40px;
  width: 85%;
  border-radius: 6px;
  background: repeating-linear-gradient(#fff,
      #fff 3px,
      #efefef 0px,
      #efefef 9px);
}
.signature i {
  color: #000;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  background-color: #fff;
  margin-right: -40px;
  z-index: -1;
}
.card.back-face .card-line {
  font-size: 8px;
  margin-top: 15px;
}
.light-gray-text{
    color:#dedede;
}
.valid-date {
    color: #fff;
}
.margin-chip{
    margin-top:35px;
}