/* Clean Minimalist Resi Checker Styles - Refined */

body {
    background-color: #f8f8f8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #444444;
}

/* Base Styles for Form and Result Card */
.resi-form {
    max-width: 480px;
    margin: 40px auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resi-card {
    max-width: 640px;
    margin: 24px auto;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.resi-card h3 {
    margin: 0 0 20px 0;
    color: #333333;
    font-size: 22px;
    font-weight: 600;
}

.resi-card h4 {
    margin: 28px 0 16px 0;
    color: #555555;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.resi-card p {
    line-height: 1.6;
    color: #666666;
    margin-bottom: 12px;
}

.resi-card strong {
    color: #444444;
    font-weight: 500;
}

/* Form Elements */
.resi-form input, 
.resi-form select {
    padding: 14px 16px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    background: #fcfcfc;
    transition: all 0.2s ease;
    outline: none;
    color: #555555;
}

.resi-form input:focus, 
.resi-form select:focus {
    border-color: #cccccc;
    background: #ffffff;
}

.resi-form input::placeholder {
    color: #b0b0b0;
}

.resi-form button {
    padding: 16px 20px;
    background: #f0f0f0;
    color: #555555;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    letter-spacing: 0;
}

.resi-form button:hover {
    background: #e8e8e8;
    transform: none;
    box-shadow: none;
}

.resi-form button:active {
    transform: none;
    box-shadow: none;
}

.resi-form button:disabled {
    background: #f5f5f5;
    color: #c0c0c0;
    border-color: #e8e8e8;
    cursor: not-allowed;
    transform: none;
}

/* Timeline Styles - Simplified */
.resi-timeline {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 1px solid #e0e0e0;
    position: relative;
}

.resi-timeline-item {
    margin-bottom: 20px;
    position: relative;
    padding: 0;
    background: transparent;
    border-left: none;
}

.resi-timeline-item::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #d8d8d8;
    border: none;
    border-radius: 50%;
    position: absolute;
    left: -23.5px;
    top: 6px;
    box-shadow: none;
}

.resi-timeline-item div:first-child {
    font-weight: 500;
    color: #555555;
    margin-bottom: 2px;
    font-size: 13px;
}

.resi-timeline-item div:last-child {
    color: #777777;
    font-size: 13px;
    line-height: 1.5;
}

/* Spinner and Progress Bar */
.spinner {
    border: 2px solid #e8e8e8;
    border-top: 2px solid #aaaaaa;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px auto;
}

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

.crmp-quota-progress {
    width: 100%;
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.crmp-quota-progress-bar {
    height: 100%;
    background: #cccccc;
    transition: width 0.4s ease;
    border-radius: 2px;
}

/* General Information and Warning Styles */
.resi-rate-limit-info,
.crmp-rate-limit-warning,
.crmp-rate-limit-exceeded {
    margin-top: 20px;
    padding: 16px 20px;
    background: #fcfcfc;
    border-radius: 10px;
    border: 1px solid #eeeeee;
    color: #666666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .resi-form,
    .resi-card {
        max-width: 95%;
        margin: 24px auto;
        padding: 20px;
    }
}