body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

#pam-budget-simulator {
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    background: #f5f7fa;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    box-sizing: border-box;
}

#pam-budget-simulator h2 {
    color: #00796b;
    text-align: center;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.8em;
}

.description {
    text-align: justify;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.pam-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pam-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pam-label {
    display: block;
    margin: 16px 0 8px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.pam-select, .pam-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s;
    -webkit-appearance: none; /* Remove default styling for select */
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300796b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.3%2011.6-1.5%2017.4l131.2%20163c4.7%205.9%2011.4%209.1%2018%209.1s13.3-3.2%2018-9.1l131.2-163.1c2.8-5.8%202.3-12.5-1.5-17.4z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 1em top 50%;
    background-size: 0.6em auto;
}

.pam-select:focus, .pam-input:focus {
    border-color: #00796b;
    outline: 3px solid rgba(0,121,107,0.2);
    box-shadow: 0 0 0 4px rgba(0,121,107,0.2);
}

.pam-options {
    margin: 16px 0;
    padding: 0;
    border: none;
}

.pam-legend {
    display: block;
    margin: 16px 0 8px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
    padding: 0;
}

.pam-options label {
    display: flex;
    align-items: center;
    margin: 12px 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 1em;
    position: relative;
    padding-left: 30px;
}

.pam-options input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.pam-options label span {
    position: relative;
}

.pam-options label span::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #00796b;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.pam-options input[type="checkbox"]:checked + span::before {
    background-color: #00796b;
    border-color: #00796b;
}

.pam-options input[type="checkbox"]:checked + span::after {
    content: "✔";
    position: absolute;
    left: -26px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.pam-options input[type="checkbox"]:focus + span::before {
    box-shadow: 0 0 0 3px rgba(0,121,107,0.3);
}

.pam-btn {
    background: linear-gradient(135deg, #00796b, #00695c);
    color: white;
    border: none;
    padding: 18px 28px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,121,107,0.3);
}

.pam-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,121,107,0.4);
}

.pam-result-card {
    margin-top: 24px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 8px solid #43a047;
    animation: slideIn 0.5s ease-out forwards;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pam-result-line {
    margin: 14px 0;
    padding: 12px 16px;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    font-size: 1.05em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pam-strong {
    font-weight: bold;
    color: #00796b;
    font-size: 1.1em;
    min-width: 120px;
    margin-right: 10px;
}

#exchange-rate-info {
    text-align: right;
    font-size: 0.9em;
    color: #555;
    display: block;
    margin-top: 10px;
}

@media (max-width: 600px) {
    #pam-budget-simulator {
        padding: 16px;
        margin: 16px;
    }

    .pam-result-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .pam-strong {
        min-width: unset;
        margin-right: 0;
        margin-bottom: 5px;
    }
}
