/* Package Payment Page Styles */
.package-order-page {
    padding: 60px 0;
    min-height: 100vh;
}

.order-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.order-header {
    background: linear-gradient(135deg, #50bfda 0%, #3da8c4 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.order-title {
    font-family: "Mitr", sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.order-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.package-summary {
    background: #f8f9fa;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

.package-info h4 {
    font-family: "Mitr", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
}

.package-details {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
}

.package-item:last-child {
    border-bottom: none;
}

.package-name {
    font-weight: 500;
    color: #212529;
}

.package-price {
    font-weight: 600;
    color: #50bfda;
    font-size: 18px;
}

.package-duration {
    color: #6c757d;
    font-size: 14px;
}

.order-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h4 {
    font-family: "Mitr", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-family: "Mitr", sans-serif;
    font-weight: 500;
    color: #212529;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: #50bfda;
    box-shadow: 0 0 0 0.2rem rgba(80, 191, 218, 0.25);
    outline: none;
}

/* Payment Methods */
.order-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-method {
    position: relative;
}

.order-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.order-method-label {
    display: block;
    cursor: pointer;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    background: #fff;
}

.order-method-label:hover {
    border-color: #50bfda;
    box-shadow: 0 5px 15px rgba(80, 191, 218, 0.1);
}

.order-radio:checked + .order-method-label {
    border-color: #50bfda;
    background: rgba(80, 191, 218, 0.05);
    box-shadow: 0 5px 15px rgba(80, 191, 218, 0.2);
}

.order-method-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bank-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.bank-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.bank-name {
    font-weight: 600;
    color: #212529;
    font-size: 16px;
}

.bank-info {
    flex: 1;
}

.account-name {
    font-weight: 500;
    color: #212529;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.account-number {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
    font-family: monospace;
}

/* File Upload */
.upload-section {
    margin-top: 15px;
}

.upload-area {
    border: 2px dashed #50bfda;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(80, 191, 218, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    background: rgba(80, 191, 218, 0.1);
    border-color: #3da8c4;
}

.upload-area.dragover {
    background: rgba(80, 191, 218, 0.15);
    border-color: #3da8c4;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #50bfda;
    margin-bottom: 15px;
}

.upload-text {
    font-weight: 500;
    color: #212529;
    margin-bottom: 8px;
    font-size: 16px;
}

.upload-hint {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    margin-top: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
}

.preview-content img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.preview-info {
    flex: 1;
}

.preview-info p {
    margin: 0 0 5px 0;
    font-weight: 500;
    color: #212529;
}

.btn-remove-file {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-file:hover {
    background: #c82333;
}

/* Payment Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

/*.summary-item:nth-last-child(2),
.summary-item:last-child {
    border-bottom: none;
}*/

.summary-item.package-price-item,
.summary-item.vat-item,
.summary-item.withholding-tax-item,
.summary-item.total {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 600;
    font-size: 18px;
    color: #50bfda;
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    margin-top: 10px;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    margin-top: 3px;
}

.form-check-label {
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
}

/* Payment Actions */
.order-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.package-order-submit-btn {
    min-width: 200px;
    font-size: 16px;
    padding: 15px 30px;
    border: 2px solid #50bfda;
    color: #fff;
    background: #50bfda;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.package-order-submit-btn:hover {
    background: #3da8c4;
    color: #fff;
    text-decoration: none;
    border: 2px solid #3da8c4;
}

.cancel-btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 16px;
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cancel-btn:hover {
    background: #6c757d;
    color: #fff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .package-order-page {
        padding: 30px 0;
    }
    
    .order-header {
        padding: 20px;
    }
    
    .order-title {
        font-size: 24px;
    }
    
    .order-form {
        padding: 20px;
    }
    
    .order-method-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .bank-logo {
        min-width: auto;
    }
    
    .order-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .package-order-submit-btn,
    .cancel-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .order-header {
        padding: 15px;
    }
    
    .order-title {
        font-size: 20px;
    }
    
    .order-form {
        padding: 15px;
    }
    
    .form-section h4 {
        font-size: 16px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .upload-text {
        font-size: 14px;
    }
    
    .upload-hint {
        font-size: 12px;
    }
}

/* Loading State */
.package-order-submit-btn.loading {
    position: relative;
    color: transparent;
}

.package-order-submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
} 