body {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    text-align: center;
}

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

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.form-group-inline {
    flex: 1;
    min-width: 180px;
}

.selectors-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #d1d7dd;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
    background-color: #ffffff;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: bold;
    font-size: 0.95rem;
}

label .required-star {
    color: #d32f2f;
    margin-left: 0.15em;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="string"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d7dd;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="string"] {
    min-height: 44px;
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="string"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
    background-color: #ffffff;
}

input[type="number"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background-color: #45a049;
}

.result {
    margin-top: 30px;
    padding: 20px;
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
    border-radius: 4px;
}

.result h2 {
    color: #2e7d32;
    margin-top: 0;
}

.result-value {
    font-size: 24px;
    color: #1b5e20;
    font-weight: bold;
}

.error {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.text-danger {
    color: #d32f2f;
}

.danger {
    background-color: #d32f2f;
}

.input-with-unit {
    position: relative;
    flex: 1 1 220px;
}

.input-with-unit > input[type="text"],
.input-with-unit > input[type="number"] {
    padding-right: 3.2rem;
}

.unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
    font-size: 0.95rem;
    color: #555;
}
