/* device-selling.css */

/* General Body and Container Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, "Inter", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light background for the whole page */
}

.device-selling-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.device-selling-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff; /* White background for the form steps */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Header Styles */
.selling-header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: #2c3e50; /* Darker, professional blue-grey */
    font-weight: 700;
}

.selling-header p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* Search Styles */
.device-search,
.device-search-step {
    margin-bottom: 30px;
}

.device-search input,
.device-search-step input {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    font-size: 17px;
    border: 2px solid #ddd;
    border-radius: 30px; /* More rounded */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.device-search input:focus,
.device-search-step input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); /* Green glow on focus */
}

/* Quick Links */
.quick-links {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between buttons */
}

.quick-links span {
    color: #555;
    margin-right: 15px;
    font-weight: 500;
    font-size: 1.05em;
}

.quick-link-btn {
    background: #e0e0e0;
    border: none; /* Removed border */
    padding: 10px 20px;
    border-radius: 25px; /* More rounded */
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quick-link-btn:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Category Cards */
.device-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px; /* More rounded */
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px; /* Ensure consistent height */
}

.category-card:hover {
    border-color: #4CAF50;
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Stronger shadow */
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px; /* Thicker top border */
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
    transform-origin: left;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 65px; /* Slightly larger icons */
    margin-bottom: 20px;
    color: #777; /* Softer icon color */
    transition: color 0.3s ease;
}

.category-card:hover .category-icon {
    color: #4CAF50;
}

.category-card h3 {
    font-size: 1.4em;
    margin: 0;
    color: #333;
    font-weight: 600;
}

/* Step Styles */
.selling-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out; /* Slightly longer, smoother fade */
}

.selling-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Lighter border */
    justify-content: space-between; /* Space out title and device display */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.step-header h2 {
    flex-grow: 1;
    margin: 0;
    color: #2c3e50;
    font-size: 2.2em;
    font-weight: 700;
    text-align: left; /* Align title to left */
}

.device-display {
    margin-left: 30px;
    background: #f9f9f9; /* Lighter background for display */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex; /* Use flex for centering image */
    align-items: center;
    justify-content: center;
    min-width: 120px; /* Ensure it doesn't collapse */
}

.device-display img {
    max-width: 120px; /* Smaller image in header */
    height: auto;
    display: block;
    border-radius: 5px; /* Slightly rounded image */
}

/* Brand and Model Cards */
.brands-grid,
.models-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.brand-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px; /* Consistent height */
}

.brand-card:hover {
    border-color: #4CAF50;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.brand-card.selected {
    border-color: #4CAF50;
    background: #e6ffe6; /* Lighter green tint */
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3); /* Green outline */
}

.brand-logo img,
.model-image img {
    max-width: 70px; /* Slightly smaller logos */
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-card h4 {
    margin: 10px 0 5px 0;
    color: #333;
    font-size: 1.15em;
    font-weight: 600;
}

.base-price {
    color: #4CAF50;
    font-weight: 700;
    margin: 5px 0 0 0;
    font-size: 0.95em;
}

.btn-back-to-brands {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    color: #555;
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 8px; /* Space between icon and text */
    margin-bottom: 20px;
}

.btn-back-to-brands:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Condition Styles */
.conditions-list {
    margin-top: 20px;
}

.condition-option {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.condition-option:hover {
    border-color: #4CAF50;
    transform: translateX(8px); /* More pronounced slide */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.condition-option.selected {
    border-color: #4CAF50;
    background: #e6ffe6;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.condition-option input[type="radio"] {
    margin-right: 15px;
    margin-top: 5px; /* Align with text better */
    flex-shrink: 0;
    width: 20px; /* Larger radio button */
    height: 20px;
    accent-color: #4CAF50; /* Green accent color */
}

.condition-option label {
    cursor: pointer;
    flex-grow: 1;
    text-align: left; /* Align label text to left */
}

.condition-option strong {
    color: #333;
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.condition-desc {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

.condition-details {
    background: #f0f8f0;
    border: 1px solid #a5d6a7; /* Softer green border */
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
    animation: slideDown 0.4s ease-out;
    text-align: left; /* Align text to left */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.condition-requirements h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.condition-requirements ul {
    color: #555;
    margin-left: 25px;
    line-height: 1.6;
    list-style: none; /* Remove default bullet */
    padding-left: 0;
}

.condition-requirements li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.condition-requirements li .fas {
    color: #4CAF50; /* Green checkmark */
    font-size: 1em;
    margin-top: 3px;
    flex-shrink: 0;
}

.condition-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 15px;
    justify-content: center; /* Center buttons */
}

.btn-examples,
.btn-defects {
    background: #ffffff;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.btn-examples:hover,
.btn-defects:hover {
    background: #4CAF50;
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

/* Carrier and Storage Styles */
.carriers-list,
.storage-list {
    margin-top: 20px;
}

.carrier-option,
.storage-option {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 25px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.carrier-option:hover,
.storage-option:hover {
    border-color: #4CAF50;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carrier-option.selected,
.storage-option.selected {
    border-color: #4CAF50;
    background: #e6ffe6;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.carrier-option input[type="radio"],
.storage-option input[type="radio"] {
    margin-right: 15px;
    flex-shrink: 0;
    width: 20px; /* Larger radio button */
    height: 20px;
    accent-color: #4CAF50;
}

.carrier-option label,
.storage-option label {
    cursor: pointer;
    flex-grow: 1;
    font-size: 1.05em;
    color: #333;
    font-weight: 500;
    text-align: left;
}

.price-bonus {
    color: #2e7d32; /* Darker green for bonus */
    font-weight: 700;
    font-size: 0.95em;
}

.price-penalty {
    color: #d32f2f; /* Darker red for penalty */
    font-weight: 700;
    font-size: 0.95em;
}

/* Price Display */
.price-display {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #e6ffe6, #d4f8d4); /* Softer gradient */
    border-radius: 15px;
    border: 3px solid #4CAF50; /* Thicker border */
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.15);
}

.price-display h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.price-amount {
    font-size: 4em; /* Larger price font */
    font-weight: bold;
    color: #4CAF50;
    margin: 20px 0;
    text-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.4s ease-out;
    display: inline-block; /* For transform */
}

.price-amount.price-reveal {
    animation: priceReveal 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards; /* Bounce effect */
}

@keyframes priceReveal {
    0% {
        transform: scale(0.5) translateY(20px);
        opacity: 0;
    }
    70% {
        transform: scale(1.1) translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Selling Benefits */
.selling-benefits {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.benefit {
    display: flex;
    align-items: flex-start; /* Align icon to top of text */
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: left; /* Align text to left */
}

.benefit:hover {
    background: #f0f8f0;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.benefit i {
    font-size: 28px; /* Larger icons */
    color: #4CAF50;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 3px; /* Align with text better */
}

.benefit div {
    flex-grow: 1;
}

.benefit h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.benefit p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

/* Button Styles */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    flex-wrap: wrap; /* Allow buttons to wrap */
    gap: 15px; /* Space between buttons */
}

.btn-back {
    background: #f0f0f0;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-flex; /* For icon alignment */
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-next {
    background: linear-gradient(45deg, #4CAF50, #8BC34A); /* Green gradient */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-next:hover {
    background: linear-gradient(45deg, #5cb85c, #9ccc65); /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.btn-add-to-box {
    background: linear-gradient(135deg, #28a745, #218838); /* Stronger green gradient */
    color: white;
    border: none;
    padding: 18px 35px; /* Larger button */
    border-radius: 30px;
    cursor: pointer;
    font-size: 20px; /* Larger font */
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-add-to-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-add-to-box:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Info Tip */
.info-tip {
    background: #e0f7fa; /* Light blue background */
    border: 1px solid #80deea; /* Matching border */
    color: #00796b; /* Darker text */
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
}

.info-tip i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Loading and Message Styles */
.loading-spinner {
    text-align: center;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Ensure it takes up space */
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    margin: 0;
    font-size: 1.1em;
}

.no-results {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px dashed #ddd;
}

/* Error and Success Messages */
.error-message,
.success-message {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    max-width: 400px;
    padding: 18px 25px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    animation: slideInRight 0.4s ease-out forwards;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.error-message {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

.success-message {
    background: #e8f5e8;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-icon,
.success-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.error-text,
.success-text {
    flex-grow: 1;
}

.error-close {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.error-close:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

/* Modal Styles */
.condition-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6); /* Darker overlay */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 35px;
    max-width: 650px; /* Slightly wider modal */
    max-height: 90vh; /* Allow more height */
    overflow-y: auto;
    margin: 20px;
    animation: slideInModal 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards; /* Bounce effect */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

@keyframes slideInModal {
    0% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    70% {
        transform: translateY(10px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.6em;
    font-weight: 700;
    text-align: center;
}

.modal-body {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #444;
    text-align: left;
}

.modal-body ul {
    margin-left: 20px;
    padding-left: 0;
    list-style: none;
}

.modal-body li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-body li .fas {
    font-size: 1.1em;
    margin-top: 3px;
    flex-shrink: 0;
}

.modal-close {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    display: block; /* Make it a block element to center */
    margin: 0 auto; /* Center the button */
}

.modal-close:hover {
    background: linear-gradient(45deg, #5cb85c, #9ccc65);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.examples-grid img {
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 10px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px; /* Center with circles */
    left: 20px;
    right: 20px;
    height: 4px;
    background: #ddd;
    z-index: 0;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 10px 0;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px; /* Larger circle */
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Add step numbers to circles */
.progress-step:nth-child(1)::before { content: '1'; }
.progress-step:nth-child(2)::before { content: '2'; }
.progress-step:nth-child(3)::before { content: '3'; }
.progress-step:nth-child(4)::before { content: '4'; }
.progress-step:nth-child(5)::before { content: '5'; }


.progress-step.active {
    color: #4CAF50;
    font-weight: 600;
}

.progress-step.active::before {
    background: #4CAF50;
    box-shadow: 0 0 0 5px rgba(76, 175, 80, 0.3);
}

.progress-step.completed {
    color: #4CAF50;
}

.progress-step.completed::before {
    background: #4CAF50;
    content: '✓'; /* Checkmark for completed steps */
    font-size: 20px;
}

/* Cart Integration Styles */
.device-trade-in-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.device-trade-in-item:last-child {
    border-bottom: none;
}

.device-trade-in-item h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.device-details {
    font-size: 15px;
    color: #666;
}

.device-condition {
    background: #e8f5e8;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #2e7d32;
    display: inline-block;
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .device-selling-container,
    .device-selling-form-container {
        padding: 20px 15px;
    }

    .selling-header h1 {
        font-size: 2.2em;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .step-header h2 {
        font-size: 1.8em;
        text-align: center;
        width: 100%;
    }

    .device-display {
        margin-left: 0;
        margin-top: 15px;
        align-self: center;
        max-width: 150px; /* Adjust size for mobile */
    }

    .device-display img {
        max-width: 100px;
    }

    .brands-grid,
    .models-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .brand-card {
        padding: 15px;
        min-height: 140px;
    }

    .brand-logo img,
    .model-image img {
        max-width: 60px;
        height: 45px;
    }

    .price-amount {
        font-size: 3.2em;
    }

    .selling-benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-back, .btn-next, .btn-add-to-box {
        width: 100%;
        text-align: center;
        justify-content: center; /* Center content for flex */
    }

    .error-message,
    .success-message {
        position: static; /* Make them flow with content */
        margin: 20px auto; /* Center them */
        max-width: 90%;
        animation: fadeIn 0.3s ease; /* Simpler animation for static */
    }

    .modal-content {
        margin: 15px;
        padding: 25px;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .quick-links span {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .selling-header h1 {
        font-size: 1.8em;
    }

    .category-card {
        padding: 30px 15px;
    }

    .category-icon {
        font-size: 50px;
    }

    .brand-card h4 {
        font-size: 1em;
    }

    .condition-option,
    .carrier-option,
    .storage-option {
        padding: 15px;
    }

    .condition-option strong {
        font-size: 1.1em;
    }

    .info-tip {
        font-size: 14px;
        padding: 10px 15px;
    }

    .progress-step {
        font-size: 12px;
    }

    .progress-step::before {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .progress-step.completed::before {
        font-size: 16px;
    }
}
