/* Thank You Page Styles */
.success-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.success-header {
    margin-bottom: 50px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 25px;
    text-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.success-title {
    color: #28a745;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.success-subtitle {
    font-size: 1.3rem;
    color: #495057;
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.5;
}

.transaction-info {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 15px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.transaction-info small {
    color: #495057 !important;
    font-size: 0.95rem;
    font-weight: 500;
}

.transaction-info strong {
    color: #212529 !important;
    font-weight: 700;
}

.purchase-details {
    margin-bottom: 40px;
}

.purchase-details h3 {
    color: #495057;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--main-color, #007bff);
    font-weight: 700;
    font-size: 1.5rem;
}

.purchase-items {
    margin-bottom: 35px;
}

.purchase-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.purchase-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    border-color: var(--main-color, #007bff);
}

.purchase-item .item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.purchase-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.purchase-item .placeholder-image {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #adb5bd;
}

.purchase-item .item-details {
    flex: 1;
}

.purchase-item .item-details h5 {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #212529;
}

.purchase-item .item-details h5 a {
    color: var(--main-color, #007bff);
    text-decoration: none;
    font-weight: 700;
}

.purchase-item .item-details h5 a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.purchase-item .item-type {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
}

.purchase-item .item-description {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 18px;
    line-height: 1.6;
    font-weight: 500;
}

.purchase-item .item-pricing {
    margin-bottom: 18px;
    font-size: 1rem;
}

.purchase-item .item-pricing .quantity {
    font-weight: 700;
    color: #495057;
}

.purchase-item .item-pricing .price {
    color: #6c757d;
    font-weight: 600;
}

.purchase-item .item-pricing .total {
    font-weight: 800;
    color: var(--main-color, #007bff);
    margin-left: 15px;
    font-size: 1.1rem;
}

.purchase-item .item-action {
    margin-top: 15px;
}

.purchase-item .item-action .btn {
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.purchase-item .item-action .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.next-steps {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.next-steps h4 {
    color: var(--main-color, #007bff);
    margin-bottom: 20px;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list li i {
    color: var(--main-color, #007bff);
    width: 20px;
    margin-right: 10px;
}

.action-buttons {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 2px solid #e9ecef;
}

.action-buttons .btn {
    margin: 0 15px;
    padding: 15px 35px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, var(--main-color, #007bff) 0%, #0056b3 100%);
    border-color: var(--main-color, #007bff);
    color: #ffffff;
}

.action-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.action-buttons .btn-outline-secondary {
    background: transparent;
    border-color: #6c757d;
    color: #6c757d;
}

.action-buttons .btn-outline-secondary:hover {
    background: #6c757d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Purchase Summary Sidebar */
.purchase-summary {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 20px;
    border: 1px solid #e9ecef;
}

.purchase-summary h3 {
    color: #495057;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--main-color, #007bff);
    font-weight: 700;
    font-size: 1.4rem;
}

.summary-details {
    margin-bottom: 35px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 1rem;
    color: #495057;
}

.summary-line:last-child {
    border-bottom: none;
}

.summary-line.total {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 20px -20px 0;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--main-color, #007bff);
    font-size: 1.2rem;
    color: #212529;
}

.summary-line span:last-child {
    font-weight: 600;
    color: #212529;
}

.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.contact-info h5 {
    color: #495057;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 15px;
    color: #495057;
    font-weight: 500;
    line-height: 1.5;
}

.contact-methods p {
    margin-bottom: 12px;
    font-weight: 600;
    color: #212529;
}

.contact-methods i {
    color: var(--main-color, #007bff);
    width: 22px;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .success-container {
        padding: 25px;
        margin: 15px;
        border-radius: 15px;
    }
    
    .success-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .success-icon {
        font-size: 4rem;
        margin-bottom: 20px;
    }
    
    .purchase-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .purchase-item .item-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 20px;
    }
    
    .action-buttons .btn {
        display: block;
        width: 100%;
        margin: 15px 0;
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .purchase-summary {
        margin-top: 30px;
        position: static;
        padding: 20px;
    }
    
    .checkout-progress {
        padding: 15px 0;
        min-height: 60px;
    }
    
    .progress-steps {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .step {
        min-width: 80px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .step:not(:last-child)::after {
        top: 15px;
        right: -50%;
        width: 100%;
    }
    
    .next-steps {
        padding: 20px;
        margin: 15px 0;
    }
    
    .steps-list li {
        padding: 12px 0;
        font-size: 0.95rem;
    }
    
    .steps-list li i {
        width: 20px;
        padding: 6px;
        margin-right: 12px;
    }
}

/* Progress Steps for Success Page - Matching checkoutcart design with green success theme */
.checkout-progress {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 20px 0;
    margin-bottom: 30px;
    min-height: 80px;
    display: block !important;
    visibility: visible !important;
}

.progress-steps {
    display: flex !important;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    visibility: visible !important;
}

.step {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    min-width: 120px;
    visibility: visible !important;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.step.active,
.step.completed {
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    border-color: #28a745;
}

.step.completed::after {
    background: #28a745;
}

.step.active .step-number {
    background: white;
    color: white;
    border-color: white;
    transform: scale(1.1);
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    background: transparent;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: white !important;
}

/* Next Steps Section Improvements */
.next-steps {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.next-steps h4 {
    color: #495057;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.3rem;
    border-bottom: 3px solid var(--main-color, #007bff);
    padding-bottom: 10px;
    display: inline-block;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.steps-list li:hover {
    background-color: rgba(0, 123, 255, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list li i {
    color: var(--main-color, #007bff);
    width: 25px;
    margin-right: 15px;
    font-size: 1.1rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
    text-align: center;
    line-height: 1;
}

.steps-list li a {
    color: var(--main-color, #007bff);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted var(--main-color, #007bff);
}

.steps-list li a:hover {
    text-decoration: none;
    border-bottom: 1px solid var(--main-color, #007bff);
}

/* Animation for success icon */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-icon i {
    animation: successPulse 2s ease-in-out infinite;
}
