/* Basic styling for the calculator */
:root {
    --primary-color: #00a8e8;
    --secondary-color: #333;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #444;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: inherit; /* Inherit font from WordPress theme */
}

.calculator-container {
    background: var(--card-bg);
    max-width: 800px;
    margin: 20px auto;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 2rem;
}

p.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #777;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.option-card {
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.option-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 168, 232, 0.05);
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(0, 168, 232, 0.1);
}

.option-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    object-fit: contain;
    opacity: 0.7;
}

.option-card.selected img {
    opacity: 1;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-next, .btn-calculate {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-next:hover, .btn-calculate:hover {
    background-color: #0086b8;
}

.btn-prev {
    background-color: #eee;
    color: #777;
    margin-right: 10px;
}

.btn-prev:hover {
    background-color: #ddd;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

.result-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 800;
    margin: 20px 0;
}

.result-area {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.contact-info {
    font-size: 0.9rem;
    color: #888;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

@media (max-width: 600px) {
    .calculator-container {
        padding: 20px;
    }
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
}
