/* Paper Submission System - Professional Minimal Responsive Design */

/* ========================================
   1. RESET & BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pss-payment-wrapper,
.pss-submission-form-wrapper,
.pss-status-check-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
}

/* ========================================
   2. CONTAINERS & LAYOUT
   ======================================== */
.pss-payment-wrapper {
    min-height: 500px;
    padding: 0;
}

.pss-payment-step {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
    min-height: 400px;
}

.pss-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */
h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: #4a5568;
}

.pss-info-text {
    font-size: 15px;
    color: #718096;
    margin-bottom: 24px;
}

/* ========================================
   4. FORMS & INPUTS
   ======================================== */
.pss-compact-form {
    margin: 30px 0;
}

.pss-form-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 20px;
}

.pss-form-row input[type="email"],
.pss-form-row input[type="text"],
.pss-form-group input[type="text"],
.pss-form-group input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
}

.pss-form-row input:focus,
.pss-form-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.pss-form-group {
    margin-bottom: 24px;
}

.pss-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.pss-form-group .required {
    color: #e53e3e;
}

.pss-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #718096;
}

/* ========================================
   5. BUTTONS
   ======================================== */
.pss-btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.pss-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pss-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.pss-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.4);
}

.pss-btn-secondary {
    background: #718096;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pss-btn-secondary:hover:not(:disabled) {
    background: #4a5568;
}

.pss-btn-pay {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #ffffff;
    width: 100%;
    box-shadow: 0 4px 6px rgba(72, 187, 120, 0.3);
}

.pss-btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(72, 187, 120, 0.4);
}

.pss-btn-back {
    background: transparent;
    color: #667eea;
    padding: 10px 20px;
    border: 2px solid #667eea;
    margin-bottom: 20px;
}

.pss-btn-back:hover {
    background: #667eea;
    color: #ffffff;
}

.pss-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.pss-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.4);
}

.pss-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.pss-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.4);
}

.pss-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   6. CARDS & SUBMISSIONS
   ======================================== */
.pss-submission-cards {
    margin-top: 30px;
}

.pss-submission-cards h3 {
    margin-bottom: 8px;
    font-size: 24px;
    color: #1a202c;
}

.pss-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pss-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.pss-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pss-card-id {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.pss-card-body {
    padding: 24px;
}

.pss-card-body h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #2d3748;
    line-height: 1.4;
}

.pss-card-info {
    display: grid;
    gap: 14px;
}

.pss-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f7fafc;
}

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

.pss-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.pss-value {
    color: #2d3748;
    font-size: 15px;
}

.pss-price {
    font-size: 22px;
    font-weight: 700;
    color: #48bb78;
}

.pss-card-footer {
    padding: 20px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

/* ========================================
   7. BADGES & STATUS
   ======================================== */
.pss-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pss-badge-pending {
    background: #fef5e7;
    color: #f39c12;
}

.pss-badge-under_review {
    background: #ebf8ff;
    color: #3182ce;
}

.pss-badge-approved,
.pss-badge-verified {
    background: #e6fffa;
    color: #38a169;
}

.pss-badge-rejected {
    background: #fff5f5;
    color: #e53e3e;
}

.pss-badge-unpaid {
    background: #edf2f7;
    color: #718096;
}

.pss-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pss-status-pending { background: #fef5e7; color: #f39c12; }
.pss-status-under_review { background: #ebf8ff; color: #3182ce; }
.pss-status-approved { background: #e6fffa; color: #38a169; }
.pss-status-rejected { background: #fff5f5; color: #e53e3e; }
.pss-status-verified { background: #e6fffa; color: #38a169; }
.pss-status-none { background: #edf2f7; color: #718096; }

/* ========================================
   8. PAYMENT SECTION
   ======================================== */
.pss-payment-header {
    margin-bottom: 30px;
}

.pss-payment-header h2 {
    margin-bottom: 20px;
}

.pss-selected-info {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pss-selected-info p {
    margin: 10px 0;
    color: #2d3748;
    font-size: 15px;
}

.pss-selected-info strong {
    color: #1a202c;
}

.pss-instructions {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.pss-instructions h3 {
    margin: 0 0 12px 0;
    color: #92400e;
    font-size: 18px;
}

.pss-instructions p {
    margin: 8px 0;
    color: #78350f;
}

.pss-qr-display {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pss-qr-display img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pss-upload-section {
    margin-top: 40px;
}

.pss-upload-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #1a202c;
}

/* ========================================
   9. FILE UPLOAD
   ======================================== */
.pss-file-upload {
    margin-bottom: 24px;
}

.pss-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pss-file-label:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-color: #667eea;
}

.pss-file-label input[type="file"] {
    display: none;
}

.pss-file-icon {
    font-size: 48px;
}

.pss-file-text {
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
}

.pss-file-name {
    display: block;
    margin-top: 12px;
    color: #48bb78;
    font-size: 15px;
    font-weight: 600;
}

/* ========================================
   10. MESSAGES & ALERTS
   ======================================== */
.pss-form-message {
    margin: 24px 0;
    padding: 20px;
    border-radius: 8px;
    display: none;
    font-size: 15px;
}

.pss-form-message.success {
    background: linear-gradient(135deg, #e6fffa 0%, #d1f4e8 100%);
    color: #22543d;
    border-left: 4px solid #38a169;
    display: block;
    box-shadow: 0 2px 4px rgba(56, 161, 105, 0.1);
}

.pss-form-message.success strong {
    color: #22543d;
}

.pss-error,
.pss-form-message.error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #742a2a;
    border-left: 4px solid #e53e3e;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.1);
}

/* ========================================
   11. LOADING STATE
   ======================================== */
.pss-loading {
    text-align: center;
    padding: 60px;
}

.pss-loading::after {
    content: "";
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: pss-spin 0.8s linear infinite;
}

@keyframes pss-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   12. SUCCESS CONTAINER
   ======================================== */
.pss-success-container {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #e6fffa 0%, #d1f4e8 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.1);
}

.pss-success-container h3 {
    color: #22543d;
    font-size: 28px;
    margin-bottom: 16px;
}

.pss-success-container p {
    color: #2f855a;
    font-size: 16px;
}

.pss-submission-id {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin: 20px 0;
}

.pss-action-buttons {
    margin: 32px 0;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.pss-action-btn {
    display: inline-block;
    padding: 16px 32px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.pss-primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.pss-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.4);
}

.pss-secondary-btn {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    box-shadow: 0 4px 6px rgba(113, 128, 150, 0.3);
}

.pss-secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(113, 128, 150, 0.4);
}

/* ========================================
   13. STATUS CHECK
   ======================================== */
.pss-status-results {
    margin-top: 30px;
}

.pss-submission-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pss-submission-info {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pss-submission-info p {
    margin: 10px 0;
    font-size: 15px;
}

.pss-qr-code {
    text-align: center;
    padding: 30px;
    background: #f7fafc;
    border-radius: 8px;
    margin: 20px 0;
}

.pss-qr-code img {
    max-width: 300px;
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.pss-payment-instructions {
    background: #fffbeb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #f59e0b;
}

/* ========================================
   14. RESPONSIVE DESIGN
   ======================================== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .pss-payment-step {
        padding: 30px 16px;
    }
    
    .pss-form-container {
        padding: 30px 16px;
    }
    
    h2 {
        font-size: 24px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .pss-payment-step {
        padding: 20px 12px;
    }
    
    .pss-form-container {
        padding: 20px 12px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .pss-form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .pss-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pss-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .pss-qr-display {
        padding: 24px 16px;
    }
    
    .pss-qr-display img {
        max-width: 260px;
    }
    
    .pss-action-buttons {
        flex-direction: column;
    }
    
    .pss-action-btn {
        width: 100%;
    }
    
    .pss-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .pss-file-label {
        padding: 24px;
        flex-direction: column;
    }
    
    .pss-file-icon {
        font-size: 40px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .pss-payment-step,
    .pss-form-container {
        padding: 16px 10px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .pss-card {
        border-radius: 8px;
    }
    
    .pss-card-header,
    .pss-card-body,
    .pss-card-footer {
        padding: 16px;
    }
    
    .pss-selected-info,
    .pss-instructions {
        padding: 16px;
    }
    
    .pss-qr-display {
        padding: 20px 12px;
    }
    
    .pss-qr-display img {
        max-width: 220px;
    }
    
    .pss-btn,
    .pss-submit-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .pss-price {
        font-size: 20px;
    }
}

/* Extra Small (< 360px) */
@media (max-width: 360px) {
    .pss-payment-step,
    .pss-form-container {
        padding: 12px 8px;
    }
    
    .pss-card-header,
    .pss-card-body {
        padding: 12px;
    }
}

/* ========================================
   15. UTILITY CLASSES
   ======================================== */
.pss-text-center {
    text-align: center;
}

.pss-mt-20 {
    margin-top: 20px;
}

.pss-mb-20 {
    margin-bottom: 20px;
}

.pss-hidden {
    display: none;
}

/* ========================================
   16. PRINT STYLES
   ======================================== */
@media print {
    .pss-btn,
    .pss-file-upload,
    .pss-form-row {
        display: none;
    }
    
    .pss-card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}
