.form-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.form-container {
    flex: 1;
}

.total-amount {
    margin-left: 20px;
    align-self: center;
    font-size: 29pt;
    font-weight: bold;
    color: #666666;
}

.payment-container {
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.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: grid;
    grid-column-gap: 10px;
    grid-template-columns: auto auto;
    grid-template-rows: 90px 90px 90px;
    grid-template-areas: "name name" "number number" "expiration security";
    max-width: 400px;
    padding: 20px;
    color: #707070;
}

label {
    padding-top: 3px;
    padding-bottom: 1px;
    font-size: 13px;
}

input {
    margin-top: 2px;
    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;
}

.card-container {
    width: 100%;
    max-width: 400px;
    max-height: 251px;
    height: 54vw;
    padding: 20px;
}

#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: 30.769px;
}

/* FLIP ANIMATION */
.card-container {
    perspective: 1000px;
}

.creditcard {
    width: 100%;
    max-width: 400px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: -webkit-transform 0.6s;
    -webkit-transition: -webkit-transform 0.6s;
    transition: transform 0.6s;
    transition: transform 0.6s, -webkit-transform 0.6s;
    cursor: pointer;
}

.creditcard .front,
.creditcard .back {
    position: absolute;
    width: 100%;
    max-width: 400px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    color: #47525d;
}

.creditcard .back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.creditcard.flipped {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.payment-summary {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    border-radius: 15px;
    padding: 25px;
    margin-left: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.payment-summary .amount-title {
    color: #444;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-summary .amount-title i {
    color: #ff4757;
    margin-right: 8px;
    font-size: 18px;
}

.payment-summary .amount-value {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
}

.payment-summary .amount-value span {
    font-size: 32px;
    font-weight: 700;
    color: #2d3436;
    letter-spacing: -0.5px;
}

.payment-summary .currency {
    font-size: 18px;
    font-weight: 600;
    color: #27ae60;
    margin-left: 8px;
    background: rgba(39, 174, 96, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
}

.payment-summary .divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 20px 0;
}

.payment-info {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    color: #555;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.payment-info i {
    color: #27ae60;
    font-size: 16px;
}

.payment-methods {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.payment-methods img {
    max-width: 120px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.payment-methods img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .form-wrapper {
        flex-direction: column;
    }

    .payment-container {
        padding: 10px;
    }

    .form-container {
        grid-template-areas: 
            "name"
            "number"
            "expiration"
            "security";
        grid-template-columns: 1fr;
        padding: 10px;
        max-width: 100%;
    }

    .payment-summary {
        margin-left: 0;
        margin-top: 30px;
        max-width: 100%;
        min-width: auto;
    }

    .card-container {
        padding: 10px;
    }

    .creditcard {
        max-width: 100%;
    }

    .creditcard .front,
    .creditcard .back {
        max-width: 100%;
    }

    .amount-value span {
        font-size: 28px;
    }

    .currency {
        font-size: 16px;
    }

    input {
        font-size: 14px;
        padding: 12px;
    }

    label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .payment-title h1 {
        font-size: 24px;
    }

    .amount-value span {
        font-size: 24px;
    }

    .currency {
        font-size: 14px;
        padding: 4px 8px;
    }

    .payment-info {
        font-size: 12px;
        padding: 10px;
    }

    .payment-methods {
        padding: 10px;
    }

    .payment-methods img {
        max-width: 80px;
    }

    .field-container {
        margin-bottom: 15px;
    }
}

/* Orta boyutlu ekranlar için ek düzenlemeler */
@media (min-width: 769px) and (max-width: 1024px) {
    .form-wrapper {
        gap: 20px;
    }

    .payment-summary {
        margin-left: 20px;
        min-width: 280px;
    }

    .form-container {
        max-width: 350px;
    }
}