/* =========================================
   ORDER SUCCESS PAGE STYLES
   ========================================= */

.success-section {
    padding: 80px 0;
    min-height: 80vh; /* Keeps it centered vertically */
    display: flex;
    align-items: center;
    background: #f9f9f9;
}

.success-card {
    background: #fff;
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #eee;
}

/* --- Typography --- */
.success-card h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.sub-heading {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.email-msg {
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
}
.email-msg strong {
    color: var(--dark);
}

/* --- Order Info Strip --- */
.order-info-strip {
    display: flex;
    justify-content: space-between;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px dashed #ccc;
}

.info-item {
    text-align: left;
    display: flex;
    flex-direction: column;
}
.info-item span {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}
.info-item strong {
    font-size: 1rem;
    color: var(--dark);
    margin-top: 5px;
}

/* --- Buttons --- */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    padding: 12px 30px;
    background: var(--dark);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-primary:hover {
    background: var(--primary);
    color: var(--dark);
}

.btn-outline {
    padding: 12px 30px;
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-outline:hover {
    background: #f4f4f4;
}

.print-link {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    transition: 0.3s;
}
.print-link:hover {
    color: var(--dark);
}

/* --- CSS ANIMATED CHECKMARK --- */
.success-icon-box {
    margin-bottom: 30px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    border-radius: 50%;
    border: 1px solid transparent;
}

.checkmark-circle .background {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
    animation: scaleIn 0.5s ease-out forwards;
}

.checkmark-circle .checkmark {
    border-radius: 5px;
}

.checkmark-circle .checkmark.draw:after {
    animation: checkmark 0.6s ease-out forwards;
    animation-delay: 0.3s;
    transform: scaleX(-1) rotate(135deg);
}

.checkmark-circle .checkmark:after {
    opacity: 1;
    height: 40px;
    width: 20px;
    transform-origin: left top;
    border-right: 4px solid var(--primary); /* Neon Green Check */
    border-top: 4px solid var(--primary);
    content: "";
    left: 22px;
    top: 40px;
    position: absolute;
    display: none; /* JS/CSS animation trigger */
    opacity: 0;
}

/* Keyframes for Animation */
@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 20px;
        opacity: 1;
    }
    40% {
        height: 40px;
        width: 20px;
        opacity: 1;
    }
    100% {
        height: 40px;
        width: 20px;
        opacity: 1;
        transform: scaleX(-1) rotate(135deg);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

/* Force Checkmark Visible for Static */
.checkmark-circle .checkmark:after {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .order-info-strip {
        flex-direction: column;
        gap: 15px;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
}
