
/* Confirmation Section */
.confirmation-section {
    padding: 3rem 0 4rem;
    min-height: calc(100vh - 400px);
}

.confirmation-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Success Animation */
.success-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.success-checkmark {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.check-icon {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success-color);
    background-color: var(--bg-white);
    animation: scaleAnimation 0.5s ease-in-out;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotateCircle 4.25s ease-in;
}

.icon-line {
    height: 5px;
    background-color: var(--success-color);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 56px;
    left: 25px;
    width: 25px;
    transform: rotate(45deg);
    animation: checkmarkTip 0.75s 0.3s ease-in-out forwards;
    opacity: 0;
}

.icon-line.line-long {
    top: 48px;
    right: 15px;
    width: 50px;
    transform: rotate(-45deg);
    animation: checkmarkLong 0.75s 0.5s ease-in-out forwards;
    opacity: 0;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(0, 204, 102, 0.2);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 38px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: var(--bg-white);
}

@keyframes scaleAnimation {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes checkmarkTip {
    0% {
        width: 0;
        left: 25px;
        top: 56px;
        opacity: 0;
    }
    54% {
        width: 0;
        left: 25px;
        top: 56px;
        opacity: 1;
    }
    70% {
        width: 25px;
        left: 25px;
        top: 56px;
        opacity: 1;
    }
    84% {
        width: 30px;
        left: 21px;
        top: 56px;
        opacity: 1;
    }
    100% {
        width: 25px;
        left: 25px;
        top: 56px;
        opacity: 1;
    }
}

@keyframes checkmarkLong {
    0% {
        width: 0;
        right: 61px;
        top: 52px;
        opacity: 0;
    }
    65% {
        width: 0;
        right: 61px;
        top: 52px;
        opacity: 1;
    }
    84% {
        width: 55px;
        right: 8px;
        top: 45px;
        opacity: 1;
    }
    100% {
        width: 50px;
        right: 15px;
        top: 48px;
        opacity: 1;
    }
}

/* Confirmation Content */
.confirmation-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.confirmation-content h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-in-out 0.3s both;
}

.confirmation-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-in-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order Number Box */
.order-number-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease-in-out 0.5s both;
}

.order-number-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-number {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Confirmation Message */
.confirmation-message {
    background: #e8f5e9;
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    animation: fadeInUp 0.6s ease-in-out 0.6s both;
}

.message-icon {
    flex-shrink: 0;
}

.message-icon svg {
    color: var(--success-color);
}

.message-text h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.message-text p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.email-note {
    font-size: 0.9rem;
    font-style: italic;
}

/* Next Steps */
.next-steps {
    margin: 3rem 0;
    text-align: left;
    animation: fadeInUp 0.6s ease-in-out 0.7s both;
}

.next-steps h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Order Summary Section */
.order-summary-section {
    margin: 3rem 0;
    text-align: left;
    animation: fadeInUp 0.6s ease-in-out 0.8s both;
}

.order-summary-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.summary-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.summary-box h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* Order Items List */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-white);
    border-radius: 8px;
    align-items: center;
}

.item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    background: var(--bg-light);
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    font-size: 0.9rem;
}

.item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.item-qty {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Address Display */
.address-display {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.address-display p {
    margin-bottom: 0.25rem;
}

.address-display strong {
    color: var(--text-primary);
}

/* Payment Display */
.payment-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-icon {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 5px;
    padding: 0.5rem;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.payment-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Totals Display */
.totals-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.total-row span:last-child {
    font-weight: 600;
}

.total-final {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.discount-text {
    color: var(--success-color) !important;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-in-out 0.9s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #00b359;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Print Section */
.print-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease-in-out 1s both;
}

.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-print:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Help Section */
.help-section {
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-in-out 1.1s both;
}

.help-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.help-icon {
    margin-bottom: 1rem;
}

.help-icon svg {
    color: #ff9800;
}

.help-box h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.help-box p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.contact-item svg {
    color: var(--primary-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.service-hours {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.8;
}

/* Features Strip */
.features-strip {
    background: var(--bg-white);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item img {
    width: 48px;
    height: 48px;
}

.feature-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.mb-15 {
    margin-bottom: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Print Styles */
@media print {
    .header,
    .breadcrumb,
    .action-buttons,
    .print-section,
    .help-section,
    .features-strip,
    .footer {
        display: none !important;
    }
    
    .confirmation-section {
        padding: 0;
    }
    
    .confirmation-content {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .success-animation {
        display: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .confirmation-content {
        padding: 2rem 1.5rem;
    }
    
    .confirmation-content h1 {
        font-size: 1.8rem;
    }
    
    .confirmation-subtitle {
        font-size: 1rem;
    }
    
    .order-number {
        font-size: 1.5rem;
    }
    
    .confirmation-message {
        flex-direction: column;
        text-align: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}