.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.roof-types-grid1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.roof-types-grid2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.roof-type-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.roof-type-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.roof-type-card.selected {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.roof-type-card img {
    width: 100%;
    max-width: 150px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.roof-type-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.calculator-form {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}
.calculator-leftright {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
}

.calculator-left {
    text-align: center;
}

.calculator-left img {
    max-width: 90%;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}


.calculate-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px !important;
    border-radius: 6px;
    font-size: 16px !important;
    cursor: pointer;
    width: 100%;
}

.calculate-btn:hover {
    background: #0056b3;
}

.btn-reset {
    background: #0B64C3;
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-reset:hover {
    background: #1679e2ff;
}


.calculator-dropdowns {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.calculator-dropdowns h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
}

.dropdown-group label {
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.dropdown-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
}

.dropdown-group select:focus {
    outline: none;
    border-color: #007bff;
}

.dropdown-group select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.yes-no-questions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.question-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.question-label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
    text-align: center;
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.radio-option label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.radio-option input[type="radio"]:checked + label {
    font-weight: bold;
    color: #007bff;
}

.form-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: span 2;
}

.form-field label {
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 7px;
    padding-left: 12px;
    padding-right: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
    height: auto;
}

.gdpr-consent {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"]:checked + label {
    color: #007bff;
}

@media (max-width: 768px) {
    .dropdown-grid {
        grid-template-columns: 1fr;
    }
    
    .yes-no-questions {
        grid-template-columns: 1fr;
    }
    
    .form-fields {
        grid-template-columns: 1fr;
    }
    
    .form-field.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .roof-types-grid1 {
        grid-template-columns: repeat(2, 1fr);
    }
      .roof-types-grid2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .roof-types-grid1 {
        grid-template-columns: 1fr;
    }
    .roof-types-grid2 {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* jQuery Validation Styles */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    background-color: #fdf2f2;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 10px;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #27ae60;
    background-color: #f8fff8;
}

.form-group.has-error label {
    color: #e74c3c;
    font-weight: 600;
}

/* Error message animation */
.error-message {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}