/**
 * IDM_VTON Generator CSS Styles
 */

/* Button container styling to prevent wrapping */
.hero-cta {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* More specific selector to override template styles */
.idm-image-editor-scope .hero-cta {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    justify-content: center;
    align-items: center;
}

/* Button styling */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 10px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cta-button i {
    margin-right: 8px;
}

.cta-button.primary {
    background-color: #0078D4;
    color: white;
}

.cta-button.primary:hover {
    background-color: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.cta-button.secondary {
    background-color: #f3f2f1;
    color: #333;
    border: 1px solid #ddd;
}

.cta-button.secondary:hover {
    background-color: #e6e6e6;
    transform: translateY(-2px);
}

/* Form section container */
.form-section {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 20px 0;
}

/* Form styling */
#upload-form {
    width: 100%;
    box-sizing: border-box;
}

#upload-form table {
    width: 100%;
    border-collapse: collapse;
}

#upload-form td {
    padding: 10px;
    vertical-align: top;
}

#upload-form input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#upload-form input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#upload-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

#upload-form button[type="submit"] {
    background-color: #0078D4;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.8rem;
    transition: background-color 0.3s ease;
}

#upload-form button[type="submit"]:hover {
    background-color: #106ebe;
}

/* Loading animation */
.loading-section, #loading-gif {
    width: 100%;
    position: relative;
    text-align: center;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#loading-gif img {
    max-width: 200px;
    height: auto;
}

/* Result display */
.result-section, #result-image {
    width: 100%;
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    display: block;
}

#result-image img {
    max-width: 100%;
    height: auto;
    border: 3px solid #0078D4;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Image preview */
#preImage1, #preImage2, #preImage3, #preImage4 {
    margin-top: 10px;
    margin-bottom: 10px;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#preImage1 img, #preImage2 img, #preImage3 img, #preImage4 img {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 3px;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    transition: transform 0.2s ease;
}

#preImage1 img:hover, #preImage2 img:hover, #preImage3 img:hover, #preImage4 img:hover {
    transform: scale(1.02);
    border-color: #0078D4;
}

/* Radio buttons */
input[type="radio"] {
    margin-right: 5px;
}

/* Links */
a {
    color: #0078D4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Error messages */
.error-message {
    color: #D13438;
    background-color: #FFF4F4;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #D13438;
}

/* Success messages */
.success-message {
    color: #107C10;
    background-color: #F4FDF4;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #107C10;
}

/* Insufficient points message */
.insufficient-points {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #D13438;
    border-radius: 8px;
    background-color: #FFF4F4;
}

.insufficient-points h4 {
    color: #D13438;
    margin-bottom: 15px;
}

.insufficient-points p {
    margin-bottom: 15px;
}

.insufficient-points .recharge-button {
    background-color: #0078D4;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

.insufficient-points .countdown-text {
    color: #666;
    font-size: 1.8rem;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Form responsive */
    #upload-form {
        padding: 1px;
        margin: 1px;
    }
    
    #upload-form table, #upload-form tbody, #upload-form tr, #upload-form td {
        display: block;
    }
    
    #upload-form table {
        font-size: 1.8rem;
    }
    
    #upload-form tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }
    
    #upload-form td {
        padding: 5px 0;
        text-align: left;
    }
    
    #upload-form td:first-child {
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    #upload-form input[type="file"],
    #upload-form input[type="number"],
    #upload-form textarea {
        width: 100%;
        padding: 10px;
        font-size: 1.8rem;
    }
    
    #upload-form button[type="submit"] {
        width: 100%;
        padding: 15px;
        font-size: 1.8rem;
        margin-top: 10px;
    }
    
    /* Images responsive */
    #loading-gif img {
        max-width: 150px;
    }
    
    #result-image img {
        max-width: 100%;
        margin: 10px 0;
    }
    
    #preImage1 img, #preImage2 img {
        max-width: 100%;
        height: auto;
    }
    
    /* Insufficient points responsive */
    .insufficient-points {
        margin: 10px;
        padding: 15px;
    }
    
    .insufficient-points h4 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .insufficient-points p {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .insufficient-points .recharge-button {
        width: 100%;
        padding: 15px;
        font-size: 1.8rem;
        text-align: center;
        box-sizing: border-box;
    }
    
    .insufficient-points .countdown-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    /* Form responsive for smaller screens */
    #upload-form tr {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    #upload-form input[type="file"],
    #upload-form input[type="number"],
    #upload-form textarea {
        padding: 8px;
    }
    
    #upload-form button[type="submit"] {
        padding: 12px;
    }
    
    #loading-gif img {
        max-width: 120px;
    }
    
    /* Insufficient points for smaller screens */
    .insufficient-points {
        margin: 5px;
        padding: 10px;
    }
    
    .insufficient-points .recharge-button {
        padding: 12px;
        font-size: 1.8rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #upload-form {
        padding: 5px;
    }
    
    #upload-form tr {
        padding: 5px;
        margin-bottom: 8px;
    }
    
    #upload-form textarea {
        min-height: 60px;
    }
}
