/**
 * CONSTATATOR HOMEPAGE INTEGRATION CSS - COMPLETE REDESIGN
 * Complete styling for Romanian multi-step constatator form
 * Integrated with Bootstrap 5 and homepage design
 * 
 * STEP BREAKDOWN:
 * Step 0: Entity Type Selection (PFA/Company)
 * Step 1: Entity Validation (CNP/CUI with ONRC API)
 * Step 2: Document Selection with Pricing
 * Step 3: Payment Processing (Multi-gateway)
 * Step 4: e-Factura ANAF SPV Invoice Generation
 * Step 5: Account Creation
 * Step 6: Completion with Success Animation
 */

/* ==========================================================================
   STEP 0: ENTITY TYPE SELECTION STYLES
   ========================================================================== */
.constatator-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}

.entity-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.entity-type-card {
    border: 3px solid #e9e9ef;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.entity-type-card:hover {
    border-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.entity-type-card.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.entity-type-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.entity-type-card:hover i {
    transform: scale(1.1);
}

.entity-type-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.entity-type-description {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
}

.entity-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .entity-type-selection {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Progress indicator styles */
.progress-indicator {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.step-indicator {
    width: 100px;
    height: 120px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: inline;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: #007bff;
    color: white;
}

/* ==========================================================================
   STEP 1: ENTITY VALIDATION STYLES  
   ========================================================================== */
.validation-input-group {
    position: relative;
    margin-bottom: 25px;
}

.validation-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.validation-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.validation-input.valid {
    border-color: #28a745;
    background: #f8fff9;
}

.validation-input.invalid {
    border-color: #dc3545;
    background: #fff8f8;
}

.validation-message {
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.validation-message.success {
    color: #28a745;
}

.validation-message.error {
    color: #dc3545;
}

.manual-input-toggle {
    margin-top: 20px;
    text-align: center;
}

.manual-input-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    display: none;
}

.manual-input-section h4 {
    color: #495057;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ==========================================================================
   STEP 2: DOCUMENT SELECTION STYLES
   ========================================================================== */
.entity-info-display {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #90caf9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.entity-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.entity-info-icon {
    font-size: 1.5rem;
    color: #1976d2;
    margin-right: 10px;
}

.entity-info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1976d2;
    margin: 0;
}

.entity-info-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.entity-detail-item {
    display: flex;
    align-items: center;
}

.entity-detail-label {
    font-weight: 600;
    color: #495057;
    margin-right: 8px;
}

.entity-detail-value {
    color: #212529;
}

.document-selector {
    margin-bottom: 25px;
}

.document-options {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.document-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.document-option:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, #e7f3ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.1);
}

.document-option.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.document-option .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #28a745;
}

.document-option.selected .price {
    color: #fff;
}

.document-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.document-option-title {
    font-weight: 600;
    color: #212529;
}

.document-option-price {
    font-weight: 700;
    color: #007bff;
    font-size: 1.1rem;
}

.document-option-description {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
}

.purpose-selector {
    margin-top: 25px;
}

.purpose-selector select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.purpose-selector select:focus {
    border-color: #007bff;
    outline: none;
}

/* ==========================================================================
   LOADING OVERLAY STYLES
   ========================================================================== */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   PROGRESS CONTAINER & INDICATORS
============================================== */
.progress-container {
    background: linear-gradient(359deg, #fefeff 0%, #dae0fd 100%);
    padding: 20px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.step-indicator {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    background: rgba(250, 249, 253, 0.432);
    border-radius: 20px;
    margin: 0 5px;
    position: relative;
    transition: all 0.3s ease;
    min-width: 90px;
    color: #1c46ff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(135, 148, 245, 0.339);
}

.step-indicator i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.step-indicator small {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
}

.step-indicator.active {
    background: rgb(0 31 145);
    background: linear-gradient(90deg, rgba(0, 31, 145, 1) 0%, rgba(0, 123, 255, 0.8) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.step-indicator.completed {
    background: rgba(40, 167, 69, 0.8);
    color: white;
}

.step-indicator:after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid #e9ecef;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    z-index: 1;
}

.step-indicator.active:after {
    border-left-color: #007bff;
}

.step-indicator.completed:after {
    border-left-color: #28a745;
}

.step-indicator:last-child:after {
    display: none;
}

/* Progress Bar Enhancement */
.progress {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease-in-out;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 10px;
}

/* ==============================================
   STEP CONTENT STYLES
============================================== */
.step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step.active {
    display: block;
    opacity: 1;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    padding: 20px 25px;
}

.card-header h4 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.card-header h4 i {
    color: #007bff;
    margin-right: 10px;
}

.card-body {
    padding: 25px;
}

/* ==============================================
   FORM SECTIONS
============================================== */
.form-section {
    background: #fafbff;
    padding: 25px;
    margin: 20px;
    border-radius: 12px;
    border: 1px solid #dfdcff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ==============================================
   ENTITY TYPE SELECTION BUTTONS
============================================== */
.type-btn {
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #dee2e6;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #495057;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.type-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.type-btn:hover:before {
    left: 100%;
}

.type-btn:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff, #e7f3ff);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    color: #0056b3;
}

.type-btn.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.3);
}

.type-btn i {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.type-btn:hover i {
    transform: scale(1.1);
}

.type-btn h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.type-btn p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==============================================
   DOCUMENT SELECTION OPTIONS
============================================== */
.document-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.document-option:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, #e7f3ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.1);
}

.document-option.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.document-option .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #28a745;
}

.document-option.selected .price {
    color: #fff;
}

/* ==========================================================================
   STEP 3: MODERNIZED BANK CARD STYLE PAYMENT METHODS
   ========================================================================== */

/* Payment Methods Container - Updated for Requirements */
#payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
    gap: 20px;
    margin: 30px 0;
    perspective: 1000px;
    justify-content: center;
}

/* Individual Payment Method Card - Compact Bank Card Style */
.payment-method {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-height: 160px;
    max-width: 250px;
    width: 100%;
    transform-style: preserve-3d;
}

.payment-method:hover {
    transform: translateY(-5px) rotateX(3deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.payment-method.selected {
    border: 2px solid #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3), 0 15px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px) scale(1.02);
}

/* Payment Method Radio Button (Hidden) */
.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    z-index: -1;
}

/* Payment Method Label - Compact Card Surface */
.payment-method-label {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px;
    cursor: pointer;
    margin: 0;
    color: white;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.payment-method-label:hover {
    color: white;
    text-decoration: none;
}

/* Card Header with Logo and Security Badge - Compact */
.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

/* Payment Provider Logo - Compact */
.payment-method-label img {
    width: 55px;
    height: auto;
    max-height: 35px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.payment-method:hover .payment-method-label img {
    transform: scale(1.1) rotate(2deg);
}

/* Security Badge */
.payment-security-badge {
    background: rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Payment Method Text Content - Compact */
.payment-method-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.method-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.method-description {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Payment Features */
.method-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.method-feature {
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Selected State Checkmark - Compact */
.payment-method.selected::after {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 3;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.4);
    animation: checkmarkPop 0.3s ease-out;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Card Holographic Overlay */
.payment-method::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.payment-method:hover::before {
    opacity: 0.7;
}

/* Provider-Specific Card Gradients */
.payment-method[data-method="stripe"] {
    background: linear-gradient(135deg, #635bff 0%, #4c44d4 25%, #3730a3 100%);
}

.payment-method[data-method="stripe"].selected {
    border-color: #635bff;
    box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.payment-method[data-method="paypal"] {
    background: linear-gradient(135deg, #0070ba 0%, #005ea6 25%, #003087 100%);
}

.payment-method[data-method="paypal"].selected {
    border-color: #0070ba;
    box-shadow: 0 0 0 4px rgba(0, 112, 186, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.payment-method[data-method="netopia"] {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 25%, #a93226 100%);
}

.payment-method[data-method="netopia"].selected {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.payment-method[data-method="bank_transfer"] {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #1a252f 100%);
}

.payment-method[data-method="bank_transfer"].selected {
    border-color: #2c3e50;
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Processing Animation */
.payment-processing {
    position: relative;
    overflow: hidden;
}

.payment-processing::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
    z-index: 10;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Responsive Design - Updated for compact cards */
@media (max-width: 768px) {
    #payment-methods {
        grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
        gap: 15px;
    }

    .payment-method {
        min-height: 140px;
        max-width: 220px;
    }

    .payment-method-label {
        padding: 15px;
    }

    .method-name {
        font-size: 14px;
    }

    .method-description {
        font-size: 11px;
    }

    .payment-method-label img {
        width: 45px;
        max-height: 30px;
    }
}

@media (max-width: 480px) {
    #payment-methods {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .payment-method {
        min-height: 120px;
        max-width: 200px;
    }

    .payment-method-header {
        flex-direction: column;
        gap: 8px;
    }

    .payment-security-badge {
        align-self: flex-start;
        font-size: 8px;
        padding: 4px 8px;
    }

    .method-name {
        font-size: 13px;
    }

    .method-description {
        font-size: 10px;
    }
}

/* Additional payment method styles for legacy support */
.payment-method[data-method="netopia-legacy"] {
    border-left: 4px solid #e31e24;
}

.payment-method[data-method="netopia-legacy"].selected {
    background: linear-gradient(135deg, #e31e24 0%, #c71920 100%);
    color: white;
}

.payment-method[data-method="netopia-legacy"].selected .method-name,
.payment-method[data-method="netopia-legacy"].selected .method-description {
    color: white;
}

/* Bank Transfer Card */
.payment-method[data-method="bank_transfer"] {
    border-left: 4px solid #28a745;
}

.payment-method[data-method="bank_transfer"].selected {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.payment-method[data-method="bank_transfer"].selected .method-name,
.payment-method[data-method="bank_transfer"].selected .method-description {
    color: white;
}

/* Payment Processing Animation */
.payment-processing {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin: 20px 0;
}

.payment-processing.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.payment-processing .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 20px;
}

.payment-processing h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.payment-processing p {
    margin: 0;
    opacity: 0.9;
}

/* Payment Success/Error States */
.payment-result {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.payment-result.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.payment-result.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.payment-result i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.payment-result h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

/* Order Summary Enhancement for Step 3 */
#order-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

#order-summary h5 {
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.order-item:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #495057;
    background: rgba(0, 123, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.order-item-name {
    flex: 1;
}

.order-item-price {
    font-weight: 600;
    color: #28a745;
}

/* Responsive Design for Payment Methods */
@media (min-width: 768px) {
    #payment-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    #payment-methods {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .payment-method-label {
        padding: 25px 30px;
    }

    .payment-method-label img {
        width: 80px;
        height: 50px;
        margin-right: 25px;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Payment Method Hover Effects */
.payment-method:hover .method-name {
    color: #007bff;
}

.payment-method.selected:hover .method-name {
    color: white;
}

/* Loading state for payment buttons */
.btn-payment-loading {
    position: relative;
    color: transparent !important;
}

.btn-payment-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btn-loading-spinner 1s linear infinite;
}

@keyframes btn-loading-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==============================================
   PRINT STYLES
============================================== */
@media print {

    .step-indicators,
    .btn,
    .alert-container,
    #loadingOverlay,
    .progress-container {
        display: none !important;
    }

    .step {
        display: block !important;
        opacity: 1 !important;
        page-break-inside: avoid;
    }

    .constatator-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}