/**
 * Label Pricing Form Styles
 * Matches Sinalite.com interface design
 */

.label-pricing-form-wrapper {
    max-width: 500px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.label-pricing-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label .info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #2196F3;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Shape Options */
.shape-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shape-option {
    flex: 1;
    min-width: 80px;
    padding: 12px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.shape-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.shape-option input[type="radio"]:checked + .shape-icon {
    color: #2196F3;
}

.shape-option input[type="radio"]:checked ~ .shape-label {
    font-weight: 600;
    color: #2196F3;
}

.shape-option:has(input:checked) {
    border-color: #2196F3;
    background: #e3f2fd;
}

.shape-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 5px;
    color: #666;
}

.shape-label {
    display: block;
    font-size: 12px;
    color: #333;
}

/* Wind Options */
.wind-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wind-option {
    flex: 1;
    min-width: 70px;
    padding: 10px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wind-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.wind-option input[type="radio"]:checked + .wind-icon {
    transform: scale(1.1);
}

.wind-option:has(input:checked) {
    border-color: #2196F3;
    background: #e3f2fd;
}

.wind-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.wind-label {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    color: #333;
}

/* Price Display */
.lpf-price-display {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.lpf-loading {
    text-align: center;
    padding: 30px;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lpf-price-result .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-label {
    font-weight: 600;
    font-size: 16px;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
}

.regular-price {
    color: #999;
    text-decoration: line-through;
}

.sale-price-row {
    margin-bottom: 5px;
}

.sale-price {
    color: #d32f2f;
    font-size: 28px;
}

.price-per-unit {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.shipping-info {
    background: #e8f5e9;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    color: #2e7d32;
}

.delivery-estimate {
    background: #fff3e0;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 13px;
}

.delivery-estimate strong {
    color: #e65100;
}

.estimate-note {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin: 5px;
}

.btn-primary {
    background: #ff6600;
    color: #fff;
    width: calc(100% - 10px);
}

.btn-primary:hover {
    background: #e65c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background: #666;
    color: #fff;
    width: calc(100% - 10px);
}

.btn-secondary:hover {
    background: #555;
}

.btn-link {
    background: transparent;
    color: #2196F3;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-link:hover {
    text-decoration: underline;
}

.lpf-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Error Display */
.lpf-error {
    background: #ffebee;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #d32f2f;
}

.error-message {
    color: #c62828;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 600px) {
    .label-pricing-form-wrapper {
        margin: 15px;
    }

    .shape-options {
        gap: 8px;
    }

    .shape-option {
        min-width: 60px;
        padding: 10px 5px;
    }

    .shape-icon {
        font-size: 24px;
    }

    .wind-options {
        gap: 5px;
    }

    .wind-option {
        min-width: 60px;
        padding: 8px 5px;
    }

    .wind-icon {
        font-size: 20px;
    }

    .sale-price {
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
