/* File: assets/css/frontend.css */


/* General Form Styling */
.device-buyback-form-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    position: relative;
}

.form-row {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    gap: 20px;
    margin-bottom: 20px;
}

.form-column {
    flex: 1; /* Distributes available space equally among columns */
    min-width: 250px; /* Ensures columns don't get too small */
}

.device-buyback-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-progress {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
    display: none;
}

.progress-step {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    color: #888;
    font-size: 14px;
    position: relative;
    cursor: default;
}

.progress-step.active {
    color: #0081C8;
    font-weight: 600;
}

.progress-step:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
}

.progress-step.active:after {
    background-color: #0081C8;
}

.form-step {
    display: none;
    padding: 30px;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
}

.form-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button.prev-step,
button.next-step,
button.submit-form,
button.skip-upload {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.prev-step {
    background-color: #f5f5f5;
    color: #333;
}

button.next-step,
button.submit-form {
    background-color: #0081C8;
    color: white;
}

button.next-step:disabled,
button.submit-form:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button.skip-upload {
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    padding: 6px 12px;
}

/* Device Type Selection */
.device-type-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.device-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 160px;
}

.device-type-option:hover {
    border-color: #0081C8;
    background-color: #f9f9f9;
}

.device-type-option.selected {
    border-color: #0081C8;
    background-color: #f0f9ff;
}

.device-icon {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
}

.phone-icon {
    background-image: url('https://recy-cell.ca/wp-content/uploads/2025/02/Capture_d_ecran__le_2025-02-26_a_11.11.54-removebg-preview.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.tablet-icon {
    background-image: url('/wp-content/plugins/Product Selling Form/assets/img/apple/ipad/Apple-iPad-9.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Condition Selection */
.condition-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.condition-option {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.condition-option:hover {
    border-color: #0081C8;
    background-color: #f9f9f9;
}

.condition-option.selected {
    border-color: #0081C8;
    background-color: #f0f9ff;
}

.condition-option h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.condition-description ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 14px;
}

.condition-description li {
    margin-bottom: 5px;
}

/* Image Upload */
.image-upload-container {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.image-upload-container:hover {
    border-color: #0081C8;
}

.image-upload-container input[type="file"] {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.image-preview {
    margin-top: 15px;
    max-width: 100%;
    display: none;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

/* Summary Section */
.form-summary {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.form-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.summary-content {
    font-size: 14px;
    color: #666;
}

.summary-content .summary-item {
    display: flex;
    margin-bottom: 8px;
}

.summary-content .summary-label {
    font-weight: 600;
    width: 120px;
    color: #333;
}

/* Form Messages */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .device-buyback-form-wrapper {
        padding: 0 15px;
    }

    .form-step {
        padding: 8px;
    }

    .progress-step {
        font-size: 12px;
        padding: 10px 5px;
    }

    .device-type-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .condition-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
.brand-icon img{
    margin-bottom: 0!important;
}
.device-brand-option span,.device-model-option span{
    font-weight: 400;
    font-size:17px;
}
#device-brand-options,
#device-model-options {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border-bottom: 1px solid #eee;
    padding: 24px 0;
    justify-content: center;
}



.device-brand-option,
.device-model-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 10px 5px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 160px;
}

.device-brand-option:hover,
.device-model-option:hover {
    border-color: #0081C8;
    background-color: #f9f9f9;
}

.device-brand-option.selected,
.device-model-option.selected {
    border-color: #0081C8;
    background-color: #f0f9ff;
}

.device-brand-option span {
    text-transform: capitalize;
}

.device-image {
    object-fit: contain;
    height: 120px!important;
    margin-bottom: 20px;
    width: 100%;
}

#device-storage ,#tab-version{
    display: flex;
    gap:10px
}

.storage-option,.radio-option {
    margin-bottom:10px;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size:16px;
}

/* preview phone */
.container-preview{
    display:grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
#preview-name{
    text-transform: capitalize;
    color:#188DCB;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

#price-text{
    text-transform: capitalize;
    color:#188DCB;
    font-size: 15px;
    font-weight: 600;
    
}
#preview-price{
    text-transform: capitalize;
    color:#42DF95;
    font-size: 22px;
    font-weight: 700;
    text-align:center;
    margin-bottom:0;
}

.phone-preview-image{
    text-align: center;;
}
.phone-preview{
    padding:5px; 
    padding-top: 20px;
    border-radius: 8px;
    background-color: #E5F2FA;
    height:fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    position:sticky;
    top: 0;
}
img#phone-preview{
    width: 100%;
    height: 120px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.price-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center ;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.condition-description{
    display:none;
}

.condition-option.selected .condition-description{
    display:block;
}


@media screen and (max-width: 768px) {
    .form-group select, .form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"] {
        padding: 10px 0px;
    }
    .device-buyback-form-wrapper {
        padding: 0;
        width: 100%;
        margin: 0 auto !important;
    }

    #device-brand-options,
    #device-model-options {
        grid-template-columns: repeat(2, 1fr);
        gap:5px;
    }

    .device-brand-option,
    .device-model-option {
        width: 100%
    }

    #device-image {
        width: 125px !important;
    }
    .container-preview{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .phone-preview{
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        padding-top: 10px   ;
    }

    .price-card{
        display: block;
        text-align: center;
        width: 60%;
        margin: 10px 0 20px 0;
    }

    #phone-preview{
        height: 60px!important;
    }
    #preview-name{
        margin-bottom: 0;
    }
}