/* PSA Card Submission Form Styles */
.psa-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.psa-form-header {
    background: linear-gradient(135deg, #0e4973 0%, #57a2d3 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.psa-form-logo {
    margin-bottom: 20px;
}

.form-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.form-logo:hover {
    transform: scale(1.05);
}

.psa-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.form-subtitle {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

/* Progress Bar */
.psa-progress-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.psa-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.psa-step.active,
.psa-step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: background 0.3s ease;
}

.psa-step.active .step-number {
    background: #fff;
    color: #1e3c72;
}

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

.step-title {
    font-size: 12px;
    text-align: center;
}

/* Form Steps */
.psa-form-step {
    display: none;
    padding: 40px;
    min-height: 400px;
}

.psa-form-step.active {
    display: block;
}

.psa-form-step h3 {
    margin: 0 0 30px 0;
    font-size: 24px;
    color: #1e3c72;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Pricing Table */
.psa-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.psa-pricing-table th {
    background: #1e3c72;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.psa-pricing-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.psa-pricing-table tr:hover {
    background: #f8f9fa;
}

.psa-pricing-table input[type="radio"] {
    transform: scale(1.2);
}

/* Card Count Only Option */
.card-count-only-option {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.card-count-only-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

/* Card Entry Options */
.card-entry-options {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.form-group small {
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

/* Buttons */
.psa-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.psa-btn-primary {
    background: #0e4973;
    color: white;
}

.psa-btn-primary:hover {
    background: #57a2d3;
    transform: translateY(-2px);
}

.psa-btn-secondary {
    background: #57a2d3;
    color: white;
}

.psa-btn-secondary:hover {
    background: #0e4973;
}

.psa-btn-success {
    background: #28a745;
    color: white;
}

.psa-btn-success:hover {
    background: #218838;
}

.psa-btn-tertiary {
    background: #ffc107;
    color: #212529;
}

.psa-btn-tertiary:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* Card Entry Form */
.card-entry-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
}

.card-entry-form h4 {
    margin: 0 0 20px 0;
    color: #1e3c72;
}

/* Cards List */
.cards-list {
    margin-top: 30px;
}

.cards-list h4 {
    margin: 0 0 20px 0;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
}

.card-item:hover {
    border-color: #1e3c72;
}

.card-info {
    flex: 1;
}

.card-info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

.card-info-item {
    font-size: 14px;
}

.card-info-item strong {
    color: #1e3c72;
}

.remove-card {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.remove-card:hover {
    background: #c82333;
}

/* Modal */
.psa-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.psa-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.psa-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.psa-close:hover {
    color: #000;
}

.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.file-upload-area input[type="file"] {
    margin-bottom: 15px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: #1e3c72;
    font-size: 18px;
}

/* Total Calculation */
.total-calculation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.total-final {
    border-top: 2px solid #1e3c72;
    padding-top: 15px;
    font-size: 18px;
}

/* Attestation */
.attestation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
}

.attestation label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

/* Navigation */
.psa-form-navigation {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    position: relative;
}

/* Dynamic Navigation Button */
.psa-dynamic-btn {
    position: absolute;
    right: 40px;
    bottom: 30px;
    min-width: 120px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.psa-dynamic-btn.psa-btn-primary {
    background-color: #0e4973;
    border-color: #0e4973;
    color: white;
}

.psa-dynamic-btn.psa-btn-primary:hover {
    background-color: #57a2d3;
    border-color: #57a2d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 73, 115, 0.3);
}

.psa-dynamic-btn.psa-btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.psa-dynamic-btn.psa-btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Completion Message */
.completion-message {
    text-align: center;
    padding: 40px;
}

.completion-message h3 {
    color: #28a745;
    font-size: 32px;
    margin-bottom: 20px;
}

.submission-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

/* Loading Overlay */
.psa-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.psa-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e3c72;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .psa-form-container {
        margin: 10px;
    }
    
    .psa-form-header {
        padding: 30px 20px;
    }
    
    .form-logo {
        width: 60px;
        height: 60px;
    }
    
    .psa-form-header h2 {
        font-size: 24px;
    }
    
    .form-subtitle {
        font-size: 14px;
    }
    
    .psa-progress-bar {
        gap: 20px;
    }
    
    .step-title {
        font-size: 10px;
    }
    
    .psa-form-step {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .card-entry-options {
        flex-direction: column;
    }
    
    .card-info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .psa-form-navigation {
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .psa-dynamic-btn {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 10px;
    }
    
    .psa-modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Error States */
.form-group.error input,
.form-group.error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Success States */
.form-group.success input,
.form-group.success select {
    border-color: #28a745;
}

/* Card Count Only Styles */
.card-count-only-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.card-count-only-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #856404;
}

.card-count-only-notice strong {
    color: #dc3545;
}

/* Hidden Elements */
.hidden {
    display: none !important;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}