.payment-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.payment-container h2 {
  font-size: 24px;
  font-weight: 700;
  color: rgb(8, 8, 97);
  margin-bottom: 15px;
  position: relative;
}

.payment-container h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: rgb(8, 8, 97);
  margin: 10px auto 0;
  border-radius: 2px;
}

.payment-container .total {
  font-size: 20px;
  font-weight: 600;
  color: #444;
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
  margin: 15px 0 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Mesaj kutuları */
.payment-container .messages {
  margin: 20px auto;
  max-width: 600px;
}

.payment-container .message {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Mesaj türleri */
.payment-container .message.success {
  background: #e6f9f0;
  color: #207c50;
  border: 1px solid #b6e2c7;
}

.payment-container .message.error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c6c6;
}

.payment-container .message.info {
  background: #e8f4fd;
  color: #1e5f9c;
  border: 1px solid #c6def5;
}


/* Ortak container */
.payment-box {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap; /* mobilde alt alta düşsün */
}

/* KART KONTEYNERİ */
.card-container {
  width: 100%;
  max-width: 400px;
  perspective: 1000px; /* 3D için */
  position: relative;
}


/* Form alanı */
.form-wrapper {
  flex: 1;
  max-width: 400px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Inputlar */
.form-wrapper input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

/* Expiry + CVV yan yana */
.card-info {
  display: flex;
  gap: 15px;
  margin-top: 12px;
}

.expiry-box,
.cvv-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cvv-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

/* Ödeme butonu */
.odeme-btn {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  background: rgb(8, 8, 97);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.odeme-btn:hover {
  background: rgb(35, 35, 143);
}

/* Responsive */
@media (max-width: 900px) {
  .payment-box {
    flex-direction: column;
    align-items: center;
  }

  .form-wrapper {
    width: 100%;
    max-width: 100%;
  }
}

.payment-title {
    width: 100%;
    text-align: center;
}

.form-container .field-container:first-of-type {
    grid-area: name;
}

.form-container .field-container:nth-of-type(2) {
    grid-area: number;
}

.form-container .field-container:nth-of-type(3) {
    grid-area: expiration;
}

.form-container .field-container:nth-of-type(4) {
    grid-area: security;
}

.field-container input {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.field-container {
    position: relative;
}

.form-container {
    display: flex;          /* Grid yerine Flex kullanıyoruz */
    flex-direction: column; /* Inputlar alt alta dizilir */
    gap: 15px;              /* Inputlar arası boşluk */
    max-width: 400px;
    padding: 20px;
    color: #707070;
    position: relative;
    z-index: 100;           /* Kartın üstünde olsun */
}

label {
    padding-bottom: 5px;
    font-size: 13px;
}

input {
    margin-top: 3px;
    padding: 15px;
    font-size: 16px;
    width: 100%;
    border-radius: 3px;
    border: 1px solid #dcdcdc;
}

.ccicon {
    height: 38px;
    position: absolute;
    right: 6px;
    top: calc(50% - 17px);
    width: 60px;
}

/* CREDIT CARD IMAGE STYLING */
.preload * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
}

#ccsingle {
    position: absolute;
    right: 15px;
    top: 20px;
}

#ccsingle svg {
    width: 100px;
    max-height: 60px;
}

.creditcard svg#cardfront,
.creditcard svg#cardback {
    width: 100%;
    -webkit-box-shadow: 1px 5px 6px 0px black;
    box-shadow: 1px 5px 6px 0px black;
    border-radius: 22px;
}

#generatecard{
    cursor: pointer;
    float: right;
    font-size: 12px;
    color: #fff;
    padding: 2px 4px;
    background-color: #909090;
    border-radius: 4px;
    cursor: pointer;
    float:right;
}

/* CHANGEABLE CARD ELEMENTS */
.creditcard .lightcolor,
.creditcard .darkcolor {
    -webkit-transition: fill .5s;
    transition: fill .5s;
}

.creditcard .lightblue {
    fill: #03A9F4;
}

.creditcard .lightbluedark {
    fill: #0288D1;
}

.creditcard .red {
    fill: #ef5350;
}

.creditcard .reddark {
    fill: #d32f2f;
}

.creditcard .purple {
    fill: #ab47bc;
}

.creditcard .purpledark {
    fill: #7b1fa2;
}

.creditcard .cyan {
    fill: #26c6da;
}

.creditcard .cyandark {
    fill: #0097a7;
}

.creditcard .green {
    fill: #66bb6a;
}

.creditcard .greendark {
    fill: #388e3c;
}

.creditcard .lime {
    fill: #d4e157;
}

.creditcard .limedark {
    fill: #afb42b;
}

.creditcard .yellow {
    fill: #ffeb3b;
}

.creditcard .yellowdark {
    fill: #f9a825;
}

.creditcard .orange {
    fill: #ff9800;
}

.creditcard .orangedark {
    fill: #ef6c00;
}

.creditcard .grey {
    fill: #bdbdbd;
}

.creditcard .greydark {
    fill: #616161;
}

/* FRONT OF CARD */
#svgname {
    text-transform: uppercase;
}

#cardfront .st2 {
    fill: #FFFFFF;
}

#cardfront .st3 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
}

#cardfront .st4 {
    font-size: 54.7817px;
}

#cardfront .st5 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
}

#cardfront .st6 {
    font-size: 33.1112px;
}

#cardfront .st7 {
    opacity: 0.6;
    fill: #FFFFFF;
}

#cardfront .st8 {
    font-size: 24px;
}

#cardfront .st9 {
    font-size: 36.5498px;
}

#cardfront .st10 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 300;
}

#cardfront .st11 {
    font-size: 16.1716px;
}

#cardfront .st12 {
    fill: #4C4C4C;
}

/* BACK OF CARD */
#cardback .st0 {
    fill: none;
    stroke: #0F0F0F;
    stroke-miterlimit: 10;
}

#cardback .st2 {
    fill: #111111;
}

#cardback .st3 {
    fill: #F2F2F2;
}

#cardback .st4 {
    fill: #D8D2DB;
}

#cardback .st5 {
    fill: #C4C4C4;
}

#cardback .st6 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
}

#cardback .st7 {
    font-size: 27px;
}

#cardback .st8 {
    opacity: 0.6;
}

#cardback .st9 {
    fill: #FFFFFF;
}

#cardback .st10 {
    font-size: 24px;
}

#cardback .st11 {
    fill: #EAEAEA;
}

#cardback .st12 {
    font-family: 'Rock Salt', cursive;
}

#cardback .st13 {
    font-size: 37.769px;
}

/* FLIP ANIMATION */


.creditcard {
  width: 100%;
  max-width: 400px;
  height: 250px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}

.form-container {
  position: relative;
  z-index: 10; /* form en üstte */
}

.card-container {
  position: relative;
  z-index: 1; /* kart arkada */
}
.creditcard .front,
.creditcard .back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden; /* Arka yüz arkadayken görünmesin */
  border-radius: 22px;
  overflow: hidden;
}
/* Ön yüz */
.creditcard .front {
  transform: rotateY(0deg);
  z-index: 2;
}

/* Arka yüz */
.creditcard .back {
  transform: rotateY(180deg);
}

/* Flip efekti */
.creditcard.flipped {
  transform: rotateY(180deg);
}