* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #f4f7f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.calculator-wrapper {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.calculator-header {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.calculator-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.calculator-header p {
    font-size: 14px;
    opacity: 0.85;
}

.calculator-body {
    padding: 25px 20px;
}

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

input[type="number"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
}

input[type="number"]:focus, select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.calc-btn {
    width: 100%;
    padding: 14px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.calc-btn:hover {
    background: #f57c00;
}

.results-container {
    background: #f8faff;
    padding: 20px;
    border-top: 1px solid #eee;
}

.results-container h3 {
    font-size: 16px;
    color: #0d47a1;
    margin-bottom: 15px;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.result-card {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e6ed;
}

.rc-label {
    font-size: 13px;
    color: #666;
}

.rc-value {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.rc-value.highlighted {
    color: #0d47a1;
    font-size: 16px;
}

.seo-diverter {
    background: #fff4e5;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.seo-diverter p {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

.exact-btn {
    display: inline-block;
    background: #d32f2f;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 5px;
    transition: background 0.3s;
}

.exact-btn:hover {
    background: #b71c1c;
}

.embed-instructions {
    max-width: 500px;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.embed-instructions h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
}

.embed-instructions p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.embed-instructions textarea {
    width: 100%;
    height: 80px;
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: none;
    background: #f9f9f9;
}

.widget-footer {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
}

.widget-footer a {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 600;
}

.widget-footer a:hover {
    text-decoration: underline;
}
