/**
 * DeMV Platform - Vehicle Purchase System Styling
 * Cyberpunk-themed styling for the vehicle purchase flow
 */

/* Purchase Modal */
.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.purchase-modal .modal-content {
    background-color: #0a0a1a;
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3), 0 0 40px rgba(0, 238, 255, 0.1);
    position: relative;
}

.purchase-modal .modal-header {
    background: linear-gradient(90deg, rgba(10, 10, 26, 0.9) 0%, rgba(30, 30, 60, 0.9) 100%);
    padding: 20px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.purchase-modal .modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.purchase-modal .gradient-text {
    background: linear-gradient(90deg, #6c63ff 0%, #00eeff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

.purchase-modal .close-button {
    background: none;
    border: none;
    color: #6c63ff;
    font-size: 1.5rem;
    cursor: pointer;

}

.purchase-modal .close-button:hover {
    color: #00eeff;
    transform: scale(1.1);
}

.purchase-modal .modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

/* Purchase Steps */
.purchase-steps {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.purchase-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(108, 99, 255, 0.3);
    transform: translateY(-50%);
    z-index: 0;
}

.purchase-steps .step {
    background-color: #0a0a1a;
    border: 2px solid rgba(108, 99, 255, 0.3);
    color: #6c63ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    position: relative;
    z-index: 1;
}

.purchase-steps .step.active {
    display: block;
    background: linear-gradient(135deg, #6c63ff 0%, #00ffcc 100%);
    color: #0a0a1a;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.purchase-steps .step::after {
    content: attr(data-step);
    position: absolute;
    bottom: -25px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Step Content */
.purchase-modal .step-content {
    display: none;
    padding: 20px;
}

.purchase-modal .step-content.active {
    display: block;
}

/* Hide vehicle summary in steps 2, 3, and 4 - using multiple selectors for specificity */
#purchase-modal .step-content[data-step="2"] .vehicle-summary,
#purchase-modal .step-content[data-step="3"] .vehicle-summary,
#purchase-modal .step-content[data-step="4"] .vehicle-summary,
.purchase-modal .step-content[data-step="2"] .vehicle-summary,
.purchase-modal .step-content[data-step="3"] .vehicle-summary,
.purchase-modal .step-content[data-step="4"] .vehicle-summary,
.modal-body .step-content[data-step="2"] .vehicle-summary,
.modal-body .step-content[data-step="3"] .vehicle-summary,
.modal-body .step-content[data-step="4"] .vehicle-summary,
.step-content-container .step-content[data-step="2"] .vehicle-summary,
.step-content-container .step-content[data-step="3"] .vehicle-summary,
.step-content-container .step-content[data-step="4"] .vehicle-summary {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.step-header {
    margin-bottom: 30px;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6c63ff 0%, #00ffcc 100%);
    border-radius: 3px;
}

.step-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    max-width: 800px;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    margin: 30px 0 20px;
    color: #fff;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #6c63ff, #00ffcc);
    border-radius: 2px;
}

/* Order Summary */
.order-summary {
    margin-top: 20px;
}

/* Terms and Conditions Styling */
.terms-agreement {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(10, 10, 26, 0.5);
}

.terms-agreement label {
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    line-height: 1.4;
}

.terms-agreement input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #6c63ff;
}

.cyber-link {
    color: #00eeff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 238, 255, 0.3);
}

.cyber-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 238, 255, 0.8);
}

.legal-disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    line-height: 1.4;
}

/* Vehicle Summary */
.vehicle-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
    background: rgba(10, 10, 26, 0.4);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 5px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}



.vehicle-summary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.vehicle-image {
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;

}

.vehicle-image:hover img {
    transform: scale(1.05);
}

.vehicle-details {
    display: flex;
    flex-direction: column;
}

.vehicle-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.vehicle-price {
    font-size: 24px;
    font-weight: 700;
    color: #00ffcc;
    margin-bottom: 15px;
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.vehicle-spec {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-spec i {
    font-size: 18px;
    color: #6c63ff;
}

.vehicle-spec span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.vehicle-description {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;

}

.payment-option input[type="radio"]:checked + label {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.payment-option i {
    font-size: 24px;
    color: #6c63ff;

}

.payment-option input[type="radio"]:checked + label i {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.payment-option .option-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.payment-option .option-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 3px;
}

.payment-option .option-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Payment details sections */
.payment-details {
    background: rgba(10, 10, 26, 0.4);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 5px;
    padding: 25px;
    margin-top: 25px;

}

.payment-details.hidden {
    display: none;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(108, 99, 255, 0.3);
    transform: translateY(-50%);
    z-index: 0;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c63ff 0%, #00ffcc 100%);
    transform: translateY(-50%);
    z-index: 2;

}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 10, 26, 0.6);
    border: 2px solid rgba(108, 99, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    position: relative;
    z-index: 3;

}

.progress-step.active {
    background: linear-gradient(135deg, #6c63ff 0%, #00ffcc 100%);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.progress-step.completed {
    background: #00ffcc;
    border-color: transparent;
}

.progress-step.completed i {
    color: #0a0a1a;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.progress-label {
    font-size: 14px;
    width: 100px;
    margin-left: -30px;
    text-align: center;
}

.progress-label:first-child {
    text-align: left;
    margin-left: 0;
}

.progress-label:last-child {
    text-align: right;
    margin-right: 0;
}

/* Step 1 - 33% */
.progress-bar[data-step="1"]::after {
    width: 0%;
}

/* Step 2 - 50% */
.progress-bar[data-step="2"]::after {
    width: 50%;
}

/* Step 3 - 100% */
.progress-bar[data-step="3"]::after {
    width: 100%;
}

/* Blockchain Payment Option - More Specific */
.payment-options .payment-option label[for="blockchain"] {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;

}

.payment-options .payment-option label[for="blockchain"] i {
    font-size: 24px;
    color: #6c63ff;

}

.payment-options .payment-option input[type="radio"]:checked + label[for="blockchain"] {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.payment-options .payment-option input[type="radio"]:checked + label[for="blockchain"] i {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Blockchain Info Section - More Specific */
#blockchain-details .blockchain-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

#blockchain-details .blockchain-info-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

#blockchain-details .blockchain-icon {
    font-size: 24px;
    color: #00ffcc;
    /* Animation removed to reduce CPU usage */
}

#blockchain-details .blockchain-text h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #00ffcc;
}

#blockchain-details .blockchain-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 16px;

    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00ffcc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Glowing input effect */
.form-group.focus-within::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 4px;

    opacity: 0.5;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

/* Payment Options - Enhanced */
.payment-options {
    margin-bottom: 30px;
}

.payment-option {
    margin-bottom: 15px;
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;

}

.payment-option input[type="radio"]:checked + label {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.payment-option input[type="radio"]:checked + label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #00ffcc, #6c63ff);
    border-radius: 5px 0 0 5px;
}

.payment-option i {
    font-size: 24px;
    color: #6c63ff;

}

.payment-option input[type="radio"]:checked + label i {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.payment-option .option-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.payment-option .option-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 3px;
}

.payment-option .option-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Blockchain Options */
.blockchain-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.blockchain-option {
    position: relative;
    flex: 1;
}

.blockchain-option input[type="radio"] {
    position: absolute;
    /* Use appearance instead of opacity for better performance */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 0;
    height: 0;
}

.blockchain-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;

    text-align: center;
    height: 100%;
}

.blockchain-option input[type="radio"]:checked + label {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.blockchain-option i {
    font-size: 28px;
    color: #6c63ff;
    margin-bottom: 10px;

}

.blockchain-option input[type="radio"]:checked + label i {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.blockchain-option span {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

/* Verification Levels */
.verification-levels {
    margin-top: 25px;
}

.verification-levels h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
}

.verification-levels h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.verification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.verification-option {
    position: relative;
}

.verification-option input[type="radio"] {
    position: absolute;
    /* Use appearance instead of opacity for better performance */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 0;
    height: 0;
}

.verification-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;

    text-align: center;
    height: 100%;
}

.verification-option input[type="radio"]:checked + label {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.verification-option .level-name {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 5px;
}

.verification-option .level-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.verification-option input[type="radio"]:checked + label .level-name {
    color: #00ffcc;
}

/* Buttons */
.cyberpunk-button {
    background: linear-gradient(90deg, #6c63ff 0%, #00ffcc 100%);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;

    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cyberpunk-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

}

.cyberpunk-button:hover::before {
    left: 100%;
}

.cyberpunk-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #5a52e5 0%, #00e6b8 100%);
}

.cyberpunk-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.cyberpunk-button-secondary {
    background: transparent;
    color: #6c63ff;
    border: 1px solid #6c63ff;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;

    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyberpunk-button-secondary:hover {
    background: rgba(108, 99, 255, 0.1);
    color: #00ffcc;
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Modal Footer - Enhanced */
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(108, 99, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 26, 0.8);
    position: sticky;
    bottom: 0;
    z-index: 1;
}

/* Complete Purchase Button */
.btn-complete {
    background: linear-gradient(135deg, #6c63ff 0%, #00eeff 100%);
    color: #ffffff;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.7);
}

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

.btn-complete.disabled {
    background: linear-gradient(135deg, #4a4a6a 0%, #2a2a3a 100%);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* Credit Card Form - Enhanced */
.credit-card-form {
    background: rgba(10, 10, 26, 0.4);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 5px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.credit-card-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.card-icons {
    display: flex;
    gap: 10px;
}

.card-icons i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.card-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.card-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Financing Options - Enhanced */
.financing-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.financing-option {
    position: relative;
}

.financing-option input[type="radio"] {
    position: absolute;
    /* Use appearance instead of opacity for better performance */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 0;
    height: 0;
}

.financing-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;

    height: 100%;
}

.financing-option input[type="radio"]:checked + label {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.financing-option .term {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.financing-option .monthly {
    font-size: 22px;
    font-weight: 700;
    color: #00ffcc;
    margin-bottom: 5px;
}

.financing-option .details {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.financing-info {
    background: rgba(10, 10, 26, 0.4);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.financing-info p {
    margin: 0 0 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.financing-info p:last-child {
    margin-bottom: 0;
}

.financing-info strong {
    color: #fff;
}

/* Confirmation Step - Enhanced */
.confirmation-container {
    text-align: center;
    padding: 20px 0;
}

.confirmation-icon {
    font-size: 60px;
    color: #00ffcc;
    margin-bottom: 20px;

}

.confirmation-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #00ffcc, #33ccff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

.confirmation-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.transaction-id {
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 30px;
    display: inline-block;
}

.transaction-id p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.transaction-id .id {
    font-family: monospace;
    font-size: 16px;
    color: #00ffcc;
    margin-top: 5px;
}

/* Blockchain Info Section */
.blockchain-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

.blockchain-info-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blockchain-icon {
    font-size: 24px;
    color: #00ffcc;
    /* Animation removed to reduce CPU usage */
}

.blockchain-text h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #00ffcc;
}

.blockchain-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Confirmation Summary */
.confirmation-summary {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.confirmation-section {
    background: rgba(10, 10, 26, 0.4);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 5px;
    padding: 25px;
    position: relative;
}

.confirmation-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.confirmation-value {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

/* Terms & Conditions */
.terms-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(108, 99, 255, 0.1);
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.terms-container::-webkit-scrollbar {
    width: 8px;
}

.terms-container::-webkit-scrollbar-track {
    background: rgba(30, 30, 50, 0.3);
    border-radius: 4px;
}

.terms-container::-webkit-scrollbar-thumb {
    background-color: #00ffcc;
    border-radius: 4px;
    border: 2px solid rgba(30, 30, 50, 0.3);
}

.terms-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.terms-content p {
    margin-bottom: 15px;
}

.terms-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-content li {
    margin-bottom: 8px;
}

.terms-link {
    color: #00ffcc;
    text-decoration: none;

}

.terms-link:hover {
    text-decoration: underline;
    color: #6c63ff;
}

.terms-agreement {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.terms-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #00ffcc;
    cursor: pointer;
}

.terms-agreement label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

/* Blockchain Verification */
.blockchain-verification {
    margin: 30px 0;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    padding: 20px;
    background: rgba(26, 26, 37, 0.5);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 150px;
    max-width: 100%;
}

.blockchain-verification .section-title {
    color: #00ffcc;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    text-align: left;
    width: 100%;
}

.verification-badge {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 5px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.verification-badge .verification-icon {
    font-size: 2rem;
    color: #00ffcc;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.verification-badge .verification-content {
    flex: 1;
}

.verification-badge .verification-content h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.2rem;
}

.verification-badge .verification-content p {
    margin: 0 0 15px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.verification-badge.verified .verification-icon {
    color: #00ffcc;
}

.verification-badge.unverified .verification-icon {
    color: #ff3366;
}

.verification-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.verification-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.verification-detail .detail-label {
    color: #999;
}

.verification-detail .detail-value {
    color: #00ffcc;
    font-family: monospace;
}

.btn-verify {
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;

}

.btn-verify:hover {
    background: rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

/* Blockchain Info Content */
.blockchain-info-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.blockchain-icon {
    font-size: 24px;
    color: #00ffcc;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blockchain-text {
    flex: 1;
}

.blockchain-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #00ffcc;
}

.blockchain-text p {
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    text-align: left;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .confirmation-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .confirmation-label {
        font-size: 14px;
    }
    
    .confirmation-value {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .financing-options {
        grid-template-columns: 1fr;
    }
    
    .blockchain-options {
        flex-direction: column;
    }
    
    .verification-grid {
        grid-template-columns: 1fr;
    }
    
    .card-row {
        grid-template-columns: 1fr;
    }
    
    .card-row.three-col {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 15px;
    }
}

/* Confirmation Screen Styling */
.confirmation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-icon {
    font-size: 60px;
    color: #00ffcc;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.7);

}

.confirmation-title {
    font-size: 28px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #00ffcc, #33ccff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

.confirmation-message {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 600px;
}

.transaction-id {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 5px;
    padding: 15px 25px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.transaction-id p {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.transaction-id .id {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 1px;
    color: #00ffcc;
    padding: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

.blockchain-verification {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.blockchain-verification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);

}

.blockchain-info-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.blockchain-icon {
    font-size: 24px;
    color: #00ffcc;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    flex-shrink: 0;
}

.blockchain-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #00ffcc;
}

.blockchain-text p {
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    text-align: left;
}

/* Enhanced Blockchain Payment Section */
#blockchain-details {
    position: relative;
    overflow: hidden;
}

#blockchain-details::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: -1;
}

.blockchain-network-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.blockchain-network-option {
    flex: 1;
    min-width: 150px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 5px;
    padding: 15px;
    position: relative;

    cursor: pointer;
}

.blockchain-network-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.blockchain-network-option.selected {
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.blockchain-network-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.network-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.network-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.network-description {
    font-size: 12px;
    color: #ccc;
    line-height: 1.4;
}

.verification-levels {
    margin-bottom: 25px;
}

.verification-level {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;

    cursor: pointer;
}

.verification-level:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.2);
}

.verification-level.selected {
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.verification-level input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.verification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.verification-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.verification-cost {
    font-size: 14px;
    color: #00ffcc;
}

.verification-description {
    font-size: 13px;
    color: #ccc;
    line-height: 1.4;
}

.blockchain-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.blockchain-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.blockchain-info-title i {
    color: #00ffcc;
    font-size: 18px;
}

.blockchain-info-title h4 {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.blockchain-info-text {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
}

.blockchain-benefits {
    margin-top: 15px;
}

.blockchain-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.blockchain-benefit i {
    color: #00ffcc;
    font-size: 14px;
    margin-top: 3px;
}

.blockchain-benefit-text {
    font-size: 13px;
    color: #e0e0e0;
}

/* Animation removed to reduce CPU usage */

.hidden {
    display: none !important;
}

/* Enhanced confirmation rows */
.confirmation-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-label {
    color: #999;
    font-size: 14px;
}

.confirmation-value {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.total-row {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 204, 0.3);
}

.total-row .confirmation-label,
.total-row .confirmation-value {
    font-size: 18px;
    font-weight: bold;
}

.total-row .confirmation-value {
    color: #00ffcc;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

/* Terms and conditions checkbox */
.terms-container {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

.terms-text {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
}

.terms-text a {
    color: #00ffcc;
    text-decoration: none;

}

.terms-text a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

/* Full-width blockchain verification */
.blockchain-verification.full-width {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    grid-column: 1 / -1; /* Make it span all columns in a grid layout */
}

/* Make sure the verification badge spans the full width */
.verification-badge {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 5px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}
