/* ============================================
   DEVIN PAGES CONSOLIDATED STYLES
   Nebenkosten-Assistent - Pages Stylesheet
   (without devin-layout.css)
   ============================================ */

/* ============================================
   1. BKA FORM STYLES
   ============================================ */

/* Devin Original Color Variables */
:root {
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --heading-color: #151515;
    --default-color: #444444;
}

/* Devin Form Container */
.devin-form-wrapper {
    background: #f8f9fa;
    padding: 60px 0;
    min-height: 100vh;
}

.devin-form-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header Section */
.form-header {
    background: linear-gradient(to right, rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.95)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px;
    text-align: center;
}

.form-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0 10px;
}

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.form-header i {
    color: rgba(255, 255, 255, 0.9);
}

/* Progress Steps */
.progress-wrapper {
    background: #f8f9fa;
    padding: 30px 40px;
    border-bottom: 1px solid #e9ecef;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.progress-bar-line {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    z-index: 0;
}

.progress-bar-fill {
    position: absolute;
    top: 20px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    transition: width 0.4s ease;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 4px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6c757d;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
    color: white;
    transform: scale(1.1);
}

.step-label {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
}

.step-item.active .step-label {
    color: #3498db;
    font-weight: 600;
}

/* Form Body */
.form-body {
    padding: 50px 40px;
}

.step {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.step.active {
    display: block;
}

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

.step-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* File Upload Area */
.file-upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-area:hover {
    border-color: #3498db;
    background: #e8f4f8;
}

.file-upload-area.dragover {
    border-color: #3498db;
    background: #d6eaf8;
    transform: scale(1.02);
}

.file-upload-area.has-file {
    border-color: #28a745;
    background: #f0fff4;
}

.upload-icon {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 20px;
}

.file-upload-area h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Tenant Cards */
.tenant-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.tenant-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tenant-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tenant-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
}

.tenant-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.remove-tenant-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #dc3545;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-tenant-btn:hover {
    background: #c82333;
    transform: rotate(90deg);
}

/* Add Tenant Button */
.add-tenant-btn {
    width: 100%;
    padding: 15px;
    border: 2px dashed #3498db;
    border-radius: 10px;
    background: #e8f4f8;
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 20px;
}

.add-tenant-btn:hover {
    background: #3498db;
    color: white;
    border-style: solid;
}

/* Summary Box */
.summary-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.summary-box h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

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

.summary-section {
    background: white;
    margin-bottom: 15px;
}

/* Price Box */
.price-box {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.price-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.btn {
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

/* ============================================
   2. PAYMENT PAGE STYLES
   ============================================ */

.payment-wrapper {
    background: #f8f9fa;
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.payment-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.payment-header {
    background: linear-gradient(to right, rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.95)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.payment-header .payment-icon {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.payment-header .payment-icon i {
    font-size: 45px;
    color: #3498db;
}

.payment-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.payment-header p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

.payment-body {
    padding: 40px;
}

/* Payment Form Card */
.payment-form-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
}

.payment-form-card h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Payment Form Elements */
#payment-form {
    margin-top: 0;
}

#payment-element {
    margin-bottom: 25px;
    min-height: 200px;
    padding: 10px 0;
}

/* Payment Submit Button */
.payment-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

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

/* Payment Spinner */
.payment-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: payment-spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

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

/* Payment Error Message */
.payment-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    display: none;
    font-size: 0.95rem;
}

.payment-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Payment Trust Badges - Enhanced */
.payment-trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid #e9ecef;
}

.payment-trust-badge {
    text-align: center;
    color: #6c757d;
    transition: all 0.3s ease;
}

.payment-trust-badge:hover {
    transform: translateY(-5px);
}

.payment-trust-badge i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 0.75rem;
    display: block;
    transition: all 0.3s ease;
}

.payment-trust-badge:hover i {
    color: #2980b9;
    transform: scale(1.1);
}

.payment-trust-badge p {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    color: #495057;
}

/* Summary Card */
.summary-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.summary-card h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.summary-card .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.summary-card .summary-item:last-child {
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #dee2e6;
}

.summary-card .summary-item span:first-child {
    color: #6c757d;
    display: flex;
    align-items: center;
}

.summary-card .summary-item .text-muted {
    color: #6c757d !important;
}

.summary-card .summary-item .fw-bold {
    font-weight: 600;
    color: #2c3e50;
}

.price-highlight {
    font-size: 2rem;
    color: #3498db;
    font-weight: 700;
}

/* Payment Form (legacy support) */
#submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

#submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner Animation (legacy) */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

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

/* Payment Messages (legacy) */
#payment-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: none;
    font-size: 0.95rem;
}

#payment-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#payment-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Security Badges (legacy) */
.secure-badges {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.secure-badge:last-child {
    margin-bottom: 0;
}

.secure-badge i {
    font-size: 1.1rem;
    color: #3498db;
}

/* Back Link */
.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #2980b9;
    text-decoration: none;
}

.back-link i {
    margin-right: 5px;
}

/* Stripe Element Styling */
.StripeElement {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease;
}

.StripeElement--focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.StripeElement--invalid {
    border-color: #dc3545;
}

.StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

/* ============================================
   3. PAYMENT SUCCESS PAGE STYLES
   ============================================ */

.success-wrapper {
    background: #f8f9fa;
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.success-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.success-header {
    background: linear-gradient(135deg, #00d084 0%, #00a868 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: checkmark 0.6s ease-in-out;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-icon i {
    font-size: 45px;
    color: #00d084;
}

.success-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.success-header p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

.success-body {
    padding: 40px;
}

/* Status Card */
.status-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #00d084;
}

.status-card h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.status-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.status-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.status-item i {
    font-size: 24px;
    width: 30px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.status-item.completed i {
    color: #00d084;
}

.status-item.pending i {
    color: #ffa500;
}

.status-item.processing i {
    color: #3498db;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

.status-item .flex-grow-1 {
    flex-grow: 1;
}

.status-item strong {
    display: block;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 4px;
}

.status-item .text-muted {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Info Box */
.info-box {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-box h6 {
    color: #3498db;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

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

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

.detail-item .text-muted {
    color: #6c757d;
}

.detail-item strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Alert Box */
.alert-info-custom {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.alert-info-custom i {
    color: #3498db;
}

.alert-info-custom strong {
    color: #2c3e50;
    font-size: 1.05rem;
}

.alert-info-custom p {
    color: #495057;
    line-height: 1.6;
}

/* ============================================
   4. STATUS PAGE STYLES
   ============================================ */

.status-hero {
    background: #212529;
    background: linear-gradient(to bottom, rgba(13, 110, 253, 0.9), rgba(13, 110, 253, 0.8)), url("../img/hero-bg.jpg") center center / cover;
    min-height: 100vh;
    padding: 120px 0 60px 0;
    position: relative;
}

.status-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 50px;
    margin-bottom: 40px;
}

.status-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 25px;
}

.status-header h2 {
    color: #212529;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 2rem;
}

.status-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Job Info Card */
.job-info-card {
    border: 1px solid rgba(13, 110, 253, 0.1);
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.08);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.15);
}

.job-info-card .card-body {
    padding: 25px;
}

.job-info-card .card-title {
    color: #0d6efd;
    font-weight: 600;
    font-size: 1.35rem;
}

.job-info-card small {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    color: #6c757d;
}

.job-info-card p {
    font-weight: 500;
    color: #212529;
    font-size: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #e9ecef 0%, #dee2e6 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-icon {
    position: absolute;
    left: -38px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.timeline-item.completed .timeline-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.timeline-item.active .timeline-icon {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    animation: timelinePulse 2s infinite;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
}

.timeline-item.failed .timeline-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

@keyframes timelinePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 30px rgba(13, 110, 253, 0.6);
        transform: scale(1.05);
    }
}

.timeline-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.timeline-item.completed .timeline-content {
    border-left-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
}

.timeline-item.active .timeline-content {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(10, 88, 202, 0.05) 100%);
    border-left-color: #0d6efd;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.1);
}

.timeline-content h5 {
    margin: 0 0 8px 0;
    color: #212529;
    font-weight: 600;
    font-size: 1.15rem;
}

.timeline-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.3);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10%, -10%);
    }
}

.download-section i.fa-check-circle {
    opacity: 0.95;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.download-section h4 {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.download-section p {
    font-size: 1.1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.download-btn {
    background: white;
    color: #0d6efd;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: #0d6efd;
    background: #f8f9fa;
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-section a.text-white {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.download-section a.text-white:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Error Section */
#errorSection {
    margin-top: 25px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.15);
}

#errorSection h5 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

/* Payment Success Alert */
#paymentSuccessAlert {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 420px;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.25);
    animation: slideDown 0.5s ease-out;
    border-radius: 10px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   5. SHARED ACTION BUTTONS & BADGES
   ============================================ */

.action-buttons {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    border: none;
    color: white;
    padding: 16px 35px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

.btn-secondary-custom {
    background: white;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary-custom:hover {
    background: #f8f9fa;
    color: var(--accent-color);
    text-decoration: none;
    border-color: #2980b9;
}

/* Badge Styles */
.badge-success {
    background: #00d084;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-warning {
    background: #ffa500;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-info {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Support Info */
.support-info {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

.support-info p {
    margin-bottom: 8px;
}

.support-info a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.support-info a:hover {
    text-decoration: underline;
}

.support-info i {
    color: #3498db;
}

/* ============================================
   6. LOADING & ANIMATIONS
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex !important;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
    display: inline-block;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

/* ============================================
   7. RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    /* Form Responsive */
    .form-header {
        padding: 30px 20px;
    }
    
    .form-header h1 {
        font-size: 1.8rem;
    }
    
    .form-body {
        padding: 30px 20px;
    }
    
    .progress-wrapper {
        padding: 20px 15px;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    /* Payment Responsive */
    .payment-wrapper,
    .success-wrapper {
        padding: 30px 0;
    }
    
    .payment-header,
    .success-header {
        padding: 30px 20px;
    }
    
    .payment-header .payment-icon {
        width: 75px;
        height: 75px;
    }
    
    .payment-header .payment-icon i {
        font-size: 38px;
    }
    
    .payment-header h2,
    .success-header h2 {
        font-size: 1.5rem;
    }
    
    .payment-body,
    .success-body {
        padding: 25px 20px;
    }
    
    .payment-form-card,
    .summary-card {
        padding: 20px;
    }
    
    .payment-trust-badges {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .payment-trust-badge i {
        font-size: 2rem;
    }
    
    .payment-trust-badge p {
        font-size: 0.85rem;
    }
    
    .price-highlight {
        font-size: 1.75rem;
    }
    
    .summary-item {
        font-size: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .summary-card .summary-item:last-child {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .success-icon {
        width: 75px;
        height: 75px;
    }
    
    .success-icon i {
        font-size: 38px;
    }
    
    .status-card,
    .info-box {
        padding: 20px;
    }
    
    .status-item {
        padding: 12px 0;
    }
    
    .status-item i {
        font-size: 20px;
        width: 25px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }
    
    /* Status Page Responsive */
    .status-hero {
        padding: 100px 0 40px 0;
    }

    .status-container {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .status-header h2 {
        font-size: 1.6rem;
    }

    .timeline {
        padding-left: 45px;
    }

    .timeline::before {
        left: 17px;
    }

    .timeline-icon {
        left: -35px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h5 {
        font-size: 1.05rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .download-section {
        padding: 35px 25px;
    }

    .download-section h4 {
        font-size: 1.6rem;
    }

    .download-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    #paymentSuccessAlert {
        min-width: 90%;
        left: 5%;
        transform: none;
    }

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

/* Tags Input Style */
.tags-container {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
    min-height: 60px;
    cursor: text;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tag-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    animation: tagSlideIn 0.2s ease;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tag-remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: white;
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.tags-input {
    border: none;
    background: transparent;
    padding: 4px 0;
    outline: none;
    box-shadow: none !important;
    flex: 1;
}

.tags-input:focus {
    border: none;
    box-shadow: none !important;
}