/**
 * XSigns Shortcode Form Styles
 */

#xsigns-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#xsigns-form .form-group {
    margin-bottom: 20px;
}

#xsigns-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1e2a3a;
}

#xsigns-form select,
#xsigns-form input[type="number"],
#xsigns-form input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

#xsigns-form select:focus,
#xsigns-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.price-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
}

.price-summary-header {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-summary-icon {
    font-size: 18px;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.price-summary-label {
    color: #475569;
}

.price-summary-value {
    font-weight: 600;
    color: #1e293b;
    font-family: monospace;
    font-size: 15px;
}

.price-summary-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid #cbd5e1;
    font-size: 18px;
}

.price-summary-total .price-summary-label {
    font-weight: 800;
    color: #0f172a;
    font-size: 16px;
}

.price-summary-total .price-summary-value {
    font-weight: 900;
    color: #2563eb;
    font-size: 24px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.price-error {
    color: #dc2626 !important;
    font-weight: bold;
}

.price-error-message {
    background: #fee2e2;
    border: 1px solid #dc2626;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #991b1b;
    font-size: 14px;
    display: none;
}

#xsigns-form #add-to-cart-btn {
    width: 100%;
    padding: 14px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#xsigns-form #add-to-cart-btn:hover {
    background: #1d4ed8;
}

#xsigns-form #add-to-cart-btn:active {
    transform: scale(0.98);
}

#xsigns-form .upload-progress {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#xsigns-form .progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

#xsigns-form .progress-fill {
    height: 100%;
    background: #2563eb;
    width: 0%;
    transition: width 0.3s ease;
}

#xsigns-form .progress-text {
    font-size: 12px;
    color: #475569;
    min-width: 40px;
}

#xsigns-form .uploaded-images-preview {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#xsigns-form .preview-wrapper {
    position: relative;
    display: inline-block;
}

#xsigns-form .preview-wrapper img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

#xsigns-form .remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#xsigns-form .remove-image:hover {
    background: #dc2626;
}

@media (max-width: 640px) {
    #xsigns-form {
        padding: 16px;
        margin: 10px;
    }
    
    .price-summary-total .price-summary-value {
        font-size: 20px;
    }
}