/*
Theme Name: Device4Cash Child
Theme URI: http://example.com/device4cash-child
Description: Child theme for the Device4Cash WordPress theme
Author: Your Name
Author URI: http://example.com
Template: device4cash
Version: 1.0.0
Text Domain: device4cash-child
*/
/* Main Container Styles */
.device-tradein-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}
.price-block {
    text-align: center;
    gap: 8px;
}

.price-block strong {
    font-size: 2rem;
    color: #4a6cf7;
	
}
.summary-value .price-block .variation-id {
    font-size: 17.6px !important;
    color: #A9A9A9 !important;
    float: none;
    margin-top: 0px;
}
.summary-value .price-block {
    text-align: justify;
    gap: 8px;
}
.price-block .variation-id {
    font-size: 17.6px;
    color:#A9A9A9;
    float: inline-end;
    margin-top: -51px;
}
@media(max-width:767px){
	.price-block .variation-id {
    font-size: 17.6px;
    color: #A9A9A9;
    float: inline-end;
    margin-top: -51px;
}
}

.step-indicator:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding-top: 30px;
    color: #9e9e9e;
    font-weight: 500;
    font-size: 14px;
}

.step:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step.active:before {
    background: #4a6cf7;
    color: white;
}

.step.active {
    color: #4a6cf7;
    font-weight: 600;
}

/* Form Steps Container */
.form-steps {
    margin: 2rem 0;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

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

/* Form Headings */
.form-step h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

/* Options Container */
.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.option-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.option-card:hover {
    border-color: #4a6cf7;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.1);
}

.option-card.selected {
    border-color: #4a6cf7;
    background-color: #f5f8ff;
    position: relative;
}

.option-card.selected:after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #4a6cf7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.grading-description-box {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #555;
    font-size: 0.95em;
    min-height: 50px; /* Prevents layout shifting when content changes */
}
.option-card img {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 0.5rem;
}
.product-image {
    max-width: 150px !important;
    max-height: 200px !important;
   
}

.option-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.radio-group input[type="radio"]:checked {
    border-color: #4a6cf7;
}

.radio-group input[type="radio"]:checked:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: #4a6cf7;
    border-radius: 50%;
}

/* Price Display */
.price-display {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.price-display h3 {
    margin-top: 0;
    color: #555;
    font-size: 1.1rem;
}

#calculated-price {
    font-size: 2rem;
    font-weight: 700;
    color: #4a6cf7;
    margin: 0.5rem 0;
}

.variation-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #4a6cf7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.prev-btn, .next-btn, .submit-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prev-btn {
    background: #f5f5f5;
    color: #666;
}

.prev-btn:hover {
    background: #e0e0e0;
}

.next-btn, .submit-btn {
    background: #4a6cf7;
    color: white;
}

.next-btn:hover, .submit-btn:hover {
    background: #3a5bd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Summary Section */
.summary {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.summary h3 {
    margin-top: 0;
    color: #555;
}

#selection-summary p {
    margin: 0.5rem 0;
    color: #333;
}

.option-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

.option-card .no-products-msg {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #a00;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .device-tradein-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .step-indicator {
        margin-bottom: 2rem;
    }
	.product-image {
    max-width: 100px !important;
    max-height: 170px !important;
   
}
    
    .step {
        font-size: 12px;
        padding-top: 25px;
    }
    
    .step:before {
        width: 25px;
        height: 25px;
    }
    
    .options-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .form-step h2 {
        font-size: 1.4rem;
    }
}