/**
 * RHF Calculator Styles
 */

.rhf-calculator-section {
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.rhf-calculator-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    color: #333;
}

.rhf-calculator-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.rhf-calculator-image {
    flex: 0 0 auto;
    max-width: 300px;
}

.rhf-calculator-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.rhf-calculator {
    flex: 1;
    min-width: 280px;
}

.rhf-calc-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.rhf-calc-field {
    flex: 1;
    min-width: 100px;
}

.rhf-calc-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.rhf-calc-input-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.rhf-calc-input-group input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 1em;
    min-width: 0;
}

.rhf-calc-input-group input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #4CAF50;
}

.rhf-calc-unit {
    background: #f0f0f0;
    padding: 10px 12px;
    font-size: 0.9em;
    color: #666;
    border-left: 1px solid #ddd;
    white-space: nowrap;
}

.rhf-calc-units {
    margin-bottom: 15px;
}

.rhf-calc-units select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    background: #fff;
    cursor: pointer;
}

.rhf-calc-output {
    padding: 15px;
    background: #fff;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    font-size: 1.1em;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.rhf-calc-output:empty {
    border-color: #ddd;
}

.rhf-calc-output:empty::before {
    content: 'Enter your dimensions above';
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    .rhf-calculator-wrapper {
        flex-direction: column;
    }

    .rhf-calculator-image {
        max-width: 100%;
    }

    .rhf-calc-inputs {
        flex-direction: column;
    }

    .rhf-calc-field {
        min-width: 100%;
    }
}
