/* Scoped styles with GeneratePress compatibility */
.gp-hookes-law-calculator {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 25px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: inherit; /* Inherit GeneratePress typography */
}

.gp-hookes-law-calculator h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #222222;
    text-align: center;
}

.gp-form-group {
    margin-bottom: 20px;
}

.gp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
}

.gp-form-group input,
.gp-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    font-size: 16px;
    line-height: 1.5;
    background: #ffffff;
    transition: border-color 0.3s;
}

.gp-form-group input:focus,
.gp-form-group select:focus {
    border-color: var(--gp-global-link-color, #007bff);
    outline: none;
    box-shadow: none;
}

.gp-control-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.gp-calculate-btn,
.gp-reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s;
}

.gp-calculate-btn {
    background: var(--gp-global-link-color, #007bff);
    color: #ffffff;
}

.gp-calculate-btn:hover {
    background: var(--gp-global-link-hover-color, #0056b3);
}

.gp-reset-btn {
    background: #6c757d;
    color: #ffffff;
}

.gp-reset-btn:hover {
    background: #5a6268;
}

.gp-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 3px;
    background: #f8f9fa;
    display: none;
}

.gp-result.show {
    display: block;
}

.gp-result h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #222222;
}

.gp-result p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #444444;
}

.gp-hookes-info {
    margin-top: 10px;
    padding: 10px;
    background: #f0f9ff;
    border-radius: 3px;
}

/* Responsive design */
@media (max-width: 768px) {
    .gp-hookes-law-calculator {
        padding: 20px;
        margin: 0 15px 30px;
    }

    .gp-hookes-law-calculator h1 {
        font-size: 24px;
    }

    .gp-control-buttons {
        flex-direction: column;
        gap: 10px;
    }
}