/* Main wrapper for the calculator */
.lec-wrapper {
    background: #fdf6f8; /* Light pink background */
    border: 1px solid #f9dbe6;
    padding: 25px;
    border-radius: 12px;
    max-width: 450px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Form layout */
#lec-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lec-field-group {
    width: 100%;
    margin-bottom: 12px;
}

.lec-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.lec-wrapper input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #f9dbe6;
    border-radius: 8px;
    box-sizing: border-box; /* Important for 100% width */
    font-size: 16px;
}

.lec-wrapper input[type="text"]:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 2px #e91e6330;
    outline: none;
}

/* Heart icon */
.lec-icon {
    color: #e91e63; /* Pink color */
    margin: 10px 0;
    animation: lec-beat 1.3s infinite;
}

/* Submit button */
#lec-submit {
    background-color: #e91e63; /* Pink */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

#lec-submit:hover {
    background-color: #c2185b;
}

#lec-submit:disabled {
    background-color: #f8bbd0;
    cursor: not-allowed;
}

/* Results Area */
#lec-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #f9dbe6;
    text-align: center;
}

.lec-result-header {
    font-size: 1.2em;
    font-weight: 600;
    color: #c2185b;
}

.lec-result-percentage {
    font-size: 3.5em;
    font-weight: 700;
    color: #e91e63;
    margin: 10px 0;
}

.lec-result-message {
    font-size: 1.1em;
    color: #555;
    font-style: italic;
}

/* Error message */
.lec-error {
    color: red;
    font-weight: 600;
}

/* Heartbeat animation */
@keyframes lec-beat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}