.rebate-check-wrapper {
    background-color: #212121; /* Dark background matching the image */
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #333333;
    max-width: 1050px;
    margin: 0 auto;
    box-sizing: border-box;
}

.rebate-check-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: flex-end;
}

.rebate-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rebate-field label {
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.rebate-field input, .rebate-field select {
    background-color: #2a2a2a;
    border: 1px solid #4a4a4a;
    color: #ffffff;
    height: 50px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.rebate-field input::placeholder {
    color: #6a6a6a;
    font-weight: 500;
}

.rebate-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    text-align: center;
    color: #eeeeee;
}

.rebate-field select option {
    background: #2a2a2a;
    color: #fff;
    text-align: left;
}

.rebate-field select:focus, .rebate-field input:focus {
    border-color: #ffd700;
}

.rebate-field input:disabled, .rebate-field input[readonly] {
    background-color: #2a2a2a;
    color: #6a6a6a;
    cursor: not-allowed;
}

.submit-field {
    flex: 0 0 auto;
    margin-top: 0;
}

#rebate-submit-btn {
    background: linear-gradient(to right, #ffd438, #fff8b3);
    color: #111111;
    border: none;
    border-radius: 10px;
    height: 50px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    white-space: nowrap;
}

#rebate-submit-btn svg {
    margin-right: 4px;
    stroke: #111111;
    stroke-width: 2.5;
}

#rebate-submit-btn:hover {
    box-shadow: 0 4px 15px rgba(255, 212, 56, 0.3);
    transform: translateY(-1px);
}

#rebate-submit-btn:disabled {
    background: #444 !important;
    color: #888 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
#rebate-submit-btn:disabled svg {
    stroke: #888;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(17, 17, 17, 0.3);
    border-radius: 50%;
    border-top-color: #111111;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal styles */
.rebate-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.rebate-modal-content {
    background-color: #212121;
    padding: 30px;
    border: 1px solid #333;
    width: 90%;
    max-width: 480px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    animation: modalSlideUp 0.3s ease-out;
    max-height: 85vh;
    overflow-y: auto;
}

/* Modal type-specific borders */
.rebate-modal-content.modal-success {
    border-color: #4caf50;
    border-width: 2px;
}
.rebate-modal-content.modal-error {
    border-color: #f44336;
    border-width: 2px;
}
.rebate-modal-content.modal-warning {
    border-color: #ff9800;
    border-width: 2px;
}
.modal-success .rebate-modal-header h3 {
    color: #4caf50;
}
.modal-error .rebate-modal-header h3 {
    color: #f44336;
}
.modal-warning .rebate-modal-header h3 {
    color: #ff9800;
}

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

.rebate-modal-header h3 {
    margin: 0;
    color: #ffd438;
    font-size: 20px;
    font-weight: 600;
}

.rebate-modal-body p {
    color: #eee;
    font-size: 15px;
    line-height: 1.5;
    margin: 20px 0;
    text-align: left;
}

/* Details panel inside modal */
.rebate-modal-details {
    margin-top: 16px;
    padding: 16px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
    font-size: 13px;
}

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

.detail-label {
    color: #aaa;
    font-weight: 500;
}

.detail-value {
    color: #fff;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.detail-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #444, transparent);
    margin: 12px 0;
}

.detail-section-title {
    color: #ffd438;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-updated {
    opacity: 0.6;
    font-size: 11px;
}

.rebate-modal-close-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.rebate-modal-close-btn:hover {
    background-color: #444;
}

/* Scrollbar for modal */
.rebate-modal-content::-webkit-scrollbar {
    width: 6px;
}
.rebate-modal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}
.rebate-modal-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 900px) {
    .rebate-check-row {
        flex-wrap: wrap;
    }
    .submit-field {
        flex: 1 1 100%;
    }
    .rebate-field {
        flex: 1 1 calc(50% - 8px);
    }
}
@media (max-width: 500px) {
    .rebate-field {
        flex: 1 1 100%;
    }
    .rebate-modal-content {
        max-width: 95%;
        padding: 20px;
    }
}
