/* Order Form Wrapper */
.imei-order-form-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
}

.imei-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 0 1px #E0E0E0;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.imei-header {
    text-align: center;
    margin-bottom: 40px;
}

.imei-header h1 {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 700;
}

.imei-header p {
    color: #718096;
    font-size: 16px;
    line-height: 1.6;
}

/* Service Info Box */
.imei-service-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    animation: slideDown 0.3s ease-out;
}

.imei-service-info-header h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

.imei-service-info-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.imei-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.imei-info-row:last-child {
    border-bottom: none;
}

.imei-info-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
	min-width: 100px;;
}

.imei-info-value {
    color: #2d3748;
    font-weight: 500;
    text-align: left;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.imei-form-group {
    margin-bottom: 25px;
}

.imei-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.imei-form-label .imei-required {
    color: #e53e3e;
}

/* Select2 Styling */
.select2-container--default .select2-selection--single {
    height: 55px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 15px !important;
    transition: all 0.3s ease !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 51px !important;
    color: #2d3748 !important;
    padding-right: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 51px !important;
    left: 15px !important;
}

.select2-container--default .select2-results__option {
    text-align: right !important;
    padding: 12px 15px !important;
}

.select2-search--dropdown {
    padding: 10px !important;
}

.select2-search__field {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

/* Input Wrapper */
.imei-input-wrapper {
    position: relative;
    font-family: math !important;
    display: flex;
    justify-content: left;
}
.imei-form-input {
    padding: 0 45px 0 15px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    direction: ltr !important;
    text-align: left !important;
}
.imei-form-input.success:focus {
    box-shadow: none;
}
.imei-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.imei-form-input.error {
    border-color: #e53e3e;
}
.imei-form-input.success {
    border-color: #48bb78;
    margin: 0;
    border-radius: 10px;
    box-shadow: none;
    max-width: 90%;
}

.imei-check-digit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 39px;
    background: #48bb78;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: math !important;
}

.imei-check-digit.show {
    opacity: 1;
}

.imei-error-message {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.imei-error-message.show {
    display: block;
}

.imei-success-message {
    color: #48bb78;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.imei-success-message.show {
    display: block;
}

/* Info Box */
.imei-info-box {
    background: #edf2f7;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.imei-info-box svg {
    width: 24px;
    height: 24px;
    color: #667eea;
    flex-shrink: 0;
}

.imei-info-box p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Service Info Box */
.imei-service-info {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.imei-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.imei-info-header .dashicons {
    color: #667eea;
}

.imei-info-description {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

.imei-info-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.imei-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
}

.imei-meta-item .dashicons {
    color: #667eea;
}

/* Submit Button */
.imei-submit-btn {
    width: 100%;
    height: 55px;
    background: #3362d3;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.imei-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.imei-submit-btn:active {
    transform: translateY(0);
}

.imei-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.imei-submit-btn svg {
    width: 20px;
    height: 20px;
}

/* Modal Styles */
.imei-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.imei-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.imei-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000000;
}

.imei-modal-overlay.show .imei-modal {
    transform: scale(1);
}

.imei-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.imei-modal-header h2 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 5px;
}

.imei-modal-header p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.imei-modal-body {
    padding: 30px;
}

.imei-order-detail {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.imei-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.imei-detail-row:last-child {
    border-bottom: none;
}

.imei-detail-label {
    color: #718096;
    font-size: 14px;
}

.imei-detail-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 15px;
}

.imei-detail-value.imei-value {
    direction: ltr;
    letter-spacing: 1px;
}

.imei-price-section {
    background: #3362d3;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.imei-price-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 8px;
}

.imei-price-value {
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.imei-modal-footer {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
}

.imei-modal-btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.imei-modal-btn.cancel {
    background: #edf2f7;
    color: #4a5568;
}

.imei-modal-btn.cancel:hover {
    background: #e2e8f0;
}

.imei-modal-btn.confirm {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.imei-modal-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.4);
}

/* Order History */
.imei-order-history-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
}

.imei-history-header {
    text-align: center;
    margin-bottom: 30px;
}

.imei-history-header h2 {
    color: #2c3e50;
    margin: 0;
}

.imei-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.imei-history-table thead {
    color: #222;
}
table.imei-history-table td:first-child, table.imei-history-table th:first-child {
    padding: 10px;
}
.imei-history-table th,
.imei-history-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.imei-history-table tbody tr:hover {
    background: #f8f9fa;
}

.imei-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.imei-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.imei-badge.processing {
    background: #cce5ff;
    color: #004085;
}

.imei-badge.completed {
    background: #d4edda;
    color: #155724;
}

.imei-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.imei-badge.refunded {
    background: #e2e3e5;
    color: #383d41;
}
.imei-view-btn {
    padding: 3px 13px;
    background: #F44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    margin: 0;
    font-weight: normal;
}

.imei-view-btn:hover {
    background: #F44336;
}

/* Order History Modal (for viewing results) */
.imei-result-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* IMEI Result Modal - Clean Structure */
#imei-result-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    max-width: 100%;
    max-height: 100vh;
    transform: scale(1);
    border-radius: 0;
    backdrop-filter: blur(2px);
}

#imei-result-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#imei-result-modal .imei-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

#imei-result-modal .imei-modal-close {
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

#imei-result-modal .imei-modal-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

#imei-result-modal .imei-modal-header {
    padding: 20px 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

#imei-result-modal .imei-modal-header h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

#imei-result-modal .imei-modal-body {
    padding: 20px;
}

#imei-result-modal .imei-result-display {
    line-height: 1.6;
}

#imei-result-modal .imei-result-display p {
    margin: 0 0 10px 0;
    color: #555;
}

#imei-result-modal .imei-result-code {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace !important;
    font-size: 16px;
    margin-top: 15px;
    text-align: left;
}

/* Thank You Page */
.imei-thank-you-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
    text-align: center;
}

.imei-thank-you-header {
    margin-bottom: 40px;
}

.imei-success-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.imei-thank-you-header h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.imei-thank-you-header p {
    color: #7f8c8d;
    margin: 0;
}

/* Countdown Circle */
.imei-countdown-section {
    margin: 30px 0;
}

.imei-countdown-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.imei-countdown-circle svg {
    transform: rotate(-90deg);
}

.imei-progress-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 8;
}

.imei-progress-bar {
    fill: none;
    stroke: #667eea;
    stroke-width: 8;
    stroke-dasharray: 565;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.imei-countdown-number {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
}

.imei-countdown-number span {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    display: block;
}

.imei-countdown-number small {
    font-size: 14px;
    color: #7f8c8d;
}

.imei-checking-status {
    margin-top: 20px;
}

.imei-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.imei-checking-status p {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.imei-checking-status small {
    color: #7f8c8d;
}

/* Result Section */
.imei-result-section {
    background: 0;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #ddd;
    direction: ltr;
}

.imei-result-content {
    background: white;
    border-radius: 8px;
    text-align: left;
    line-height: 1.8;
}

/* Timeout Section */
.imei-timeout-section {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.imei-timeout-icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    background: #ffc107;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.imei-timeout-section h3 {
    color: #856404;
    margin: 0 0 15px 0;
}

.imei-timeout-section p {
    color: #856404;
    margin: 10px 0;
    font-size: 16px;
}

.imei-timeout-section .button {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 16px;
}

/* Empty History */
.imei-empty-history {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.imei-empty-history .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

.imei-empty-history p {
    margin-top: 20px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 640px) {
    .imei-card {
        padding: 25px;
    }
    
    .imei-header h1 {
        font-size: 24px;
    }
    
    .imei-modal-header,
    .imei-modal-body,
    .imei-modal-footer {
        padding: 20px;
    }
    
    .imei-price-value {
        font-size: 24px;
    }
    
    .imei-order-history-container,
    .imei-thank-you-container {
        padding: 25px 20px;
        margin: 20px 15px;
    }
    
    .imei-history-table {
        font-size: 14px;
    }
    
    .imei-history-table th,
    .imei-history-table td {
        padding: 10px 8px;
    }
    
    .imei-countdown-circle svg {
        width: 150px;
        height: 150px;
    }
    
    .imei-countdown-number span {
        font-size: 36px;
    }
}

