body {
    background-color: #080706;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.checkout-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    perspective: 1200px; 
    background-image: linear-gradient(rgba(8, 7, 6, 0.88), rgba(8, 7, 6, 0.95)), url('https://images.unsplash.com/photo-1512436991641-6745cdb1723f?auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.checkout-container {
    width: 100%;
    max-width: 900px;
    padding: 30px;
    background: rgba(18, 17, 15, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(184, 134, 11, 0.4);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(184, 134, 11, 0.2);
    animation: mainCardEntry 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-main-card:hover {
    transform: translateZ(-30px) rotateX(2deg) rotateY(-2deg);
    border-color: #b8860b;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(184, 134, 11, 0.6);
}

.checkout-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(184, 134, 11, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 25px;
}

@media(max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.left-slide {
    animation: slideFromBackLeft 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.right-slide {
    animation: slideFromBackRight 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animated-field {
    opacity: 0;
    transform: translateZ(-50px) translateY(20px);
    animation: fieldReveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.35s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.65s; }
.delay-5 { animation-delay: 0.8s; }
.delay-6 { animation-delay: 0.95s; }


.interactive-card, .interactive-subcard {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.interactive-card:hover {
    transform: translateZ(-20px) scale(0.98) rotateX(3deg) rotateY(-3deg);
    border-color: #b8860b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 25px rgba(184, 134, 11, 0.5);
    background: rgba(40, 36, 30, 0.98);
}

.interactive-subcard:hover {
    transform: translateZ(-10px) scale(0.97);
    border-color: #b8860b;
    background: rgba(35, 33, 29, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(184, 134, 11, 0.3);
}

.form-section {
    background: rgba(22, 21, 18, 0.85);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.form-section h2, .summary-section h2 {
    font-size: 18px;
    color: #b8860b;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
    padding-bottom: 6px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: #cccccc;
    margin-bottom: 4px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(25, 24, 21, 0.95);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: #b8860b;
    outline: none;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.5);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-method {
    margin: 15px 0;
}

.payment-method label {
    font-size: 13px;
    color: #cccccc;
    display: block;
    margin-bottom: 6px;
}

.radio-group-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(25, 24, 21, 0.95);
    padding: 10px 12px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 8px;
}

.radio-box label {
    margin-bottom: 0;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
}

.place-order-btn {
    width: 100%;
    padding: 12px;
    background: #b8860b;
    color: #000000;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
    transition: all 0.3s ease;
}

.place-order-btn:hover {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.8);
    transform: translateY(-2px);
}

.summary-card {
    background: rgba(25, 24, 21, 0.95);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    margin-bottom: 15px;
}

.summary-card h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.summary-card:hover h3 {
    color: #b8860b;
}

.summary-card p {
    margin: 4px 0;
    color: #aaaaaa;
    font-size: 13px;
}

.summary-card span {
    color: #b8860b;
    font-weight: 600;
}

.summary-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    font-size: 16px;
    font-weight: 700;
}

.summary-price-box span:last-child {
    color: #b8860b;
    text-shadow: 0 0 10px rgba(184, 134, 11, 0.6);
}

.back-to-cart-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    background: transparent;
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.back-to-cart-btn:hover {
    color: #ffffff;
    border-color: #b8860b;
    transform: translateY(-2px);
}

@keyframes mainCardEntry {
    0% {
        opacity: 0;
        transform: translateZ(-200px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) scale(1);
    }
}

@keyframes slideFromBackLeft {
    0% {
        opacity: 0;
        transform: translateZ(-100px) translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) translateX(0);
    }
}

@keyframes slideFromBackRight {
    0% {
        opacity: 0;
        transform: translateZ(-100px) translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) translateX(0);
    }
}

@keyframes fieldReveal {
    0% {
        opacity: 0;
        transform: translateZ(-40px) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) translateY(0);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(20, 19, 17, 0.98);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #b8860b;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 0 40px rgba(184, 134, 11, 0.6);
    animation: mainCardEntry 0.4s ease forwards;
}

.success-icon {
    width: 50px;
    height: 50px;
    background: #b8860b;
    color: #000;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.8);
}

.modal-content h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
}

.modal-content p {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 20px;
}

.continue-shopping-modal-btn {
    padding: 10px 22px;
    background: #b8860b;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-shopping-modal-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(184, 134, 11, 0.8);
}