/**
 * Confirmation Modal Redesign
 * Modern, intuitive design with proper contrast and card-based layout
 * Follows existing theme and emphasizes total payment section
 */

/* ===== MODAL STRUCTURE ===== */
.confirmation-modal {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.confirmation-modal .modern-header {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
}

.confirmation-modal .modern-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.confirmation-modal .modern-footer {
    background: #f8f9fa;
    border: none;
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
}

/* ===== SECTION LAYOUT ===== */
.confirmation-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    color: #2E8B57;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* ===== CARD-BASED LAYOUT ===== */
.confirmation-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.confirmation-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== ITEMS SECTION ===== */
.confirmation-items {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 1rem;
    min-height: 60px;
}

/* ===== PAYMENT SUMMARY - EMPHASIZED ===== */
.summary-card-emphasized {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
    position: relative;
    overflow: hidden;
}

.summary-card-emphasized::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

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

.summary-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 1rem 0;
    border-radius: 1px;
}

.total-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ===== CUSTOMER INFO ===== */
.info-item {
    margin-bottom: 1rem;
}

.info-label {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #2d3436;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

/* ===== PAYMENT METHOD ===== */
.payment-method {
    color: #2d3436;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.payment-method i {
    margin-right: 0.5rem;
    color: #2E8B57;
}

/* ===== NOTICE SECTION ===== */
.confirmation-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #2196f3;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.notice-icon {
    color: #2196f3;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
}

.notice-content {
    flex: 1;
}

.notice-title {
    color: #1976d2;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notice-text {
    color: #455a64;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===== BUTTONS ===== */
.btn-modern {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-emphasis {
    background: linear-gradient(135deg, #2E8B57, #228B22);
    border: none;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
    transform: translateY(0);
}

.btn-emphasis:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

.btn-outline-secondary.btn-modern {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary.btn-modern:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .confirmation-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .confirmation-modal .modern-header {
        padding: 1rem;
    }

    .confirmation-modal .modal-body {
        padding: 1rem !important;
    }

    .confirmation-modal .modern-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .confirmation-card {
        padding: 1rem;
    }

    .summary-card-emphasized {
        padding: 1rem;
    }

    .total-label {
        font-size: 1rem;
    }

    .total-amount {
        font-size: 1.2rem;
    }

    .btn-modern {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-modern:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .confirmation-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .section-header i {
        margin-bottom: 0.25rem;
    }

    .confirmation-notice {
        flex-direction: column;
        text-align: center;
    }

    .notice-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
.confirmation-modal *:focus {
    outline: 2px solid #2E8B57;
    outline-offset: 2px;
    border-radius: 4px;
}

.confirmation-modal .btn:focus {
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.25);
}

/* ===== LOADING STATE ===== */
.confirmation-items .text-center {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .summary-card-emphasized {
        background: #2E8B57;
        border: 2px solid #000;
    }

    .confirmation-card {
        border: 2px solid #6c757d;
    }

    .total-amount {
        color: #FFD700;
        text-shadow: 1px 1px 2px #000;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .confirmation-modal .modern-footer {
        display: none;
    }

    .confirmation-modal {
        box-shadow: none;
        border: 1px solid #000;
    }

    .summary-card-emphasized {
        background: #f8f9fa !important;
        color: #000 !important;
        border: 2px solid #000;
    }
}