/* Underlimning Calculator Styles */

.underlimning-calculator {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.underlimning-calculator label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.underlimning-calculator .required {
    color: #d32f2f;
    font-weight: normal;
    font-size: 0.9em;
}

.underlimning-calculator input[type="text"],
.underlimning-calculator input[type="email"],
.underlimning-calculator input[type="tel"],
.underlimning-calculator input[type="number"],
.underlimning-calculator select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.underlimning-calculator input[type="text"]:focus,
.underlimning-calculator input[type="email"]:focus,
.underlimning-calculator input[type="tel"]:focus,
.underlimning-calculator input[type="number"]:focus,
.underlimning-calculator select:focus {
    outline: none;
    border-color: #4CAF50;
}

.underlimning-calculator input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

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

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.form-group.half-width {
    flex: 0 0 calc(50% - 7.5px);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Room Entries */
.room-entry {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.room-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.remove-room-btn {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s;
}

.remove-room-btn:hover {
    background: #d32f2f;
}

.room-info-box {
    background: #f0f8ff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

/* Buttons */
.button,
#add-room-btn {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.button:hover,
#add-room-btn:hover {
    background: #45a049;
}

.submit-button {
    background: #2196F3;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #1976D2;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Calculations Section */
.calculations-section {
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 6px;
    padding: 20px;
    margin: 30px 0;
}

.calculations-section h3 {
    margin-top: 0;
    color: #f57c00;
}

/* Warning Message */
#min-price-warning {
    margin: 20px 0;
}

/* Form Messages */
#form-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

#form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#form-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half-width {
        flex: 0 0 100%;
    }
    
    .name-fields {
        grid-template-columns: 1fr;
    }
    
    .underlimning-calculator {
        padding: 10px;
    }
}