/* Proof of Payment Button */
.proof-of-payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 12px 24px;
    border: 1px solid #8800FF;
    background-color: white;
    color: #8800FF;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.proof-of-payment-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.proof-of-payment-button svg {
    margin-left: 8px;
}

.proof-of-payment-button:hover {
    background-color: #f0f5ff;
}

/* Dialog Styles */
.proof-of-payment-dialog,
.payment-instructions-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.dialog-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1;
    animation: dialogAppear 0.3s ease-out;
}

@keyframes dialogAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #eaeaea;
}

.dialog-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.dialog-close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.dialog-close:hover {
    color: #333;
}

.dialog-body {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Two Column Layout */
.pop-two-column {
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 24px;
}

.form-column {
    flex: 1 1 450px;
}

.cart-column {
    flex: 1 1 250px;
}

.cart-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
}

.cart-summary h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 8px;
}

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eaeaea;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.item-quantity {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.item-price {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.addon-item .item-name {
    color: #5271ff;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-weight: 700;
    font-size: 16px;
}

.empty-cart {
    text-align: center;
    color: #888;
    padding: 20px 0;
}

/* Payment Instructions Section */
.payment-instructions {
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 18px;
}

.payment-instructions h4 {
    font-size: 18px;
    margin: 0 0 14px 0;
    color: #333;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.payment-instructions p {
    font-size: 15px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.6;
}

.payment-methods {
    background-color: #f5f9ff;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.payment-methods img {
    max-width: 200px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-code-wrapper {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
    border: 1px solid #efefef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-code-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.payment-qr-code {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.qr-code-label {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-align: center;
}

.bank-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.payment-method {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
}

.payment-method strong {
    min-width: 120px;
    margin-right: 10px;
}

.payment-method span {
    font-weight: 600;
}

.payment-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    background-color: #f9f9f9;
    padding: 14px;
    border-radius: 8px;
    border-left: 4px solid #5271ff;
    margin-top: 16px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* Proceed to Upload Button */
.proceed-button-container {
    margin-top: 24px;
    text-align: center;
}

.proceed-to-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background-color: #8800FF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.proceed-to-upload-button:hover {
    background-color: #7700dd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(136, 0, 255, 0.3);
}

/* Form Styles */
#proof-of-payment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-field input,
.form-field textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #5271ff;
    outline: none;
}

.form-field textarea {
    min-height: 80px;
    resize: vertical;
}

.form-field.file-upload {
    position: relative;
}

.form-field.file-upload input[type="file"] {
    padding: 12px;
    border: 1px dashed #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.form-field.file-upload .file-preview {
    margin-top: 10px;
    max-width: 100%;
}

.form-field.file-upload .file-image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
}

.form-field.file-upload .file-document-preview {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.form-actions button {
    flex: 1;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form-actions .cancel-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.form-actions .cancel-button:hover {
    background-color: #eeeeee;
}

.form-actions .submit-button {
    background-color: #8800FF;
    border: 1px solid #8800FF;
    color: white;
}

.form-actions .submit-button:hover {
    background-color: #7700dd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(136, 0, 255, 0.3);
}

/* Status Messages */
.form-status {
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    display: none;
}

.form-status.error {
    background-color: #fef0f0;
    border: 1px solid #ffd1d1;
    color: #d93025;
}

.form-status.success {
    background-color: #f0faf0;
    border: 1px solid #d1f7c4;
    color: #1e8e3e;
}

.form-status.loading {
    background-color: #f5f9ff;
    border: 1px solid #d1e4ff;
    color: #174ea6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(82, 113, 255, 0.3);
    border-radius: 50%;
    border-top-color: #5271ff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dialog-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .dialog-body {
        padding: 16px;
    }
    
    .pop-two-column {
        flex-direction: column;
    }
    
    .form-column {
        order: 2;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .cart-column {
        order: 1;
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-field input,
    .form-field textarea {
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-field.file-upload input[type="file"] {
        width: 100%;
        box-sizing: border-box;
    }
    
    .proceed-to-upload-button {
        padding: 12px 16px;
        font-size: 14px;
    }
} 