/*
 * Basic styles for the Emolument Calculator web application.
 *
 * The layout follows the minimalist aesthetic of the provided mock‑ups.
 * Cards are evenly spaced in a responsive grid, with clear icons and
 * legible typography.  Colours are chosen to match the blue and green
 * accents seen in the screenshots and provide sufficient contrast
 * against the light background.
 */

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #f9f9fb;
    color: #333;
}

.main-header {
    text-align: center;
    padding: 2rem 1rem;
}

.main-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #2a2a2a;
}

.main-header p {
    margin-top: 0.25rem;
    color: #666;
    font-size: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5ef;
    text-decoration: none;
    color: #333;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card .icon {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 0.75rem;
}

.card span {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.main-footer {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
}

/* Styles for the form layout on service pages (e.g., condominio.php) */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.panel {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5ef;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel .panel-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #fff;
}

.panel.blue .panel-header {
    background-color: #1a73e8;
}

.panel.green .panel-header {
    background-color: #0f9d58;
}

.panel .panel-body {
    padding: 1.5rem;
    flex: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.form-row label {
    flex: 1;
    margin-right: 0.5rem;
}

.form-row .options {
    display: flex;
    gap: 1rem;
}

.form-row .options label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    cursor: pointer;
}

.form-row .options input[type="radio"] {
    margin-right: 0.25rem;
}

.panel-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

button {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

button.primary {
    background-color: #1a73e8;
    color: #fff;
}

button.primary:hover {
    background-color: #1665c1;
}

button.secondary {
    background-color: #f1f3f5;
    color: #333;
}

button.secondary:hover {
    background-color: #e1e4e8;
}

/* Style anchor links that behave like secondary buttons */
a.secondary {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    background-color: #f1f3f5;
    color: #333;
    transition: background-color 0.15s ease;
}
a.secondary:hover {
    background-color: #e1e4e8;
}

/* Botão de cópia para resultados */
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.4rem;
    color: #1a73e8;
    vertical-align: middle;
}

.copy-btn:hover {
    color: #0f5bb5;
}

table.results {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table.results th,
table.results td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e5ef;
    text-align: left;
    font-size: 0.95rem;
}

table.results th {
    background-color: #f5f5f9;
    font-weight: 600;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}