/* css/weight-loss-calculator.css */
.weight-loss-calculator {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    background: #ffffff;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .weight-loss-calculator {
        padding: 2rem;
    }
}

.wlc-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.wlc-header h2 {
    color: #166534;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .wlc-header h2 {
        font-size: 2.5rem;
    }
}

.wlc-header p {
    color: #15803d;
    font-size: 1rem;
    margin: 0;
    padding: 0 1rem;
    line-height: 1.4;
}

.wlc-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.wlc-form-group {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.wlc-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #166534;
    font-weight: 500;
    font-size: 1.1rem;
}

.wlc-form-group input,
.wlc-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #16a34a;
    border-radius: 8px;
    background: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
}

.wlc-form-group input:focus,
.wlc-form-group select:focus {
    border-color: #15803d;
    box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.1);
}

.wlc-form-group input::placeholder {
    color: #9ca3af;
}

/* Style for select dropdown arrow */
.wlc-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.wlc-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .wlc-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.wlc-button {
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 1rem;
    background: linear-gradient(to right, #16a34a, #15803d);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wlc-button:hover {
    background: linear-gradient(to right, #15803d, #166534);
    transform: translateY(-1px);
}

.wlc-results {
    margin: 2rem 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wlc-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .wlc-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wlc-result-card {
    background: #f0fdf4;
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
}

.wlc-result-card h4 {
    color: #166534;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.wlc-result-card p {
    color: #15803d;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.wlc-summary {
    background: #f0fdf4;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.wlc-summary h4 {
    color: #166534;
    margin: 0 0 1rem 0;
}

.wlc-summary ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.wlc-summary li {
    color: #15803d;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.wlc-summary li:before {
    content: "•";
    color: #16a34a;
    position: absolute;
    left: 0;
}

/* Fix for mobile viewport height */
@media (max-width: 767px) {
    .weight-loss-calculator {
        min-height: 100vh;
        padding-bottom: 4rem;
    }
    
    .wlc-form-group {
        margin-bottom: 1rem;
    }
    
    .wlc-form-group label {
        font-size: 1rem;
    }
    
    .wlc-form-group input,
    .wlc-form-group select {
        padding: 0.625rem;
    }
}

/* Animation for results */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wlc-results.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}