/* Background image applied to the whole body with slight blur */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://i.postimg.cc/DyzFK4q4/girder-sample.jpg') center center fixed;
    background-size: cover;
    color: #333;
    position: relative;
    min-height: 100vh;
}

/* Background blur layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: inherit;
    filter: blur(3px);
    z-index: -1;
}

/* Header style */
.header {
    text-align: center;
    padding: 10px 20px 10px;
    background-color: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    margin: 30px auto 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Title font size */
.header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Description text */
.description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    text-align: justify;    
    margin: 0 auto;
    max-width: 900px;
    padding: 0 20px;
}

.note {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Form container */
.form {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px 30px;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    margin-bottom: 10px !important;
}

/* Headings inside form */
.form h2 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Input and select styling */
input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    background-color: #f9f9f9;
    margin-bottom: -10px;
}

/* Radio button styling */
.toggle-options {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
}

.toggle-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.toggle-options input[type="radio"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

/* Focus state for better UX */
input:focus,
select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
    outline: none;
    background-color: #fff;
}

/* Submit button */
button.submit {
    display: block;
    width: 100%;
    margin: 30px auto 15px;
    padding: 14px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button.submit:hover {
    background-color: #007BFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button.submit:active {
    transform: translateY(0);
}

/* Result display */
.result {
    margin-top: 30px;
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #007BFF;
    border-radius: 6px;
    font-size: 1.1rem;
    text-align: left;
}

.result h2 {
    margin: 0;
    font-size: 1.3rem;
}

#resultValue {
    font-weight: bold;
    color: #007BFF;
}

/* Loading indicator */
#loadingIndicator {
    text-align: center;
    padding: 15px;
    font-style: italic;
    color: #666;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #ddd;
    max-width: 612px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0 0 12px 12px;
}

.footer p {
    margin: 5px 0;
}

/* Style for recommended input fields */
.recommended-input {
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    margin-top: -5px;
    margin-bottom: 4px;
}

/* Warning message style */
.warning-message {
    color: #e74c3c;
    font-size: 0.85rem;
    display: none;
    margin-top: 5px;
    padding: 15px 0;
}

/* Conditional sections */
.conditional-section {
    padding: 15px;
    margin-top: 15px;
    background-color: rgba(245, 245, 245, 0.7);
    border-radius: 8px;
    border-left: 3px solid #007BFF;
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

/* Error message for girder type */
#girder-error {
    display: none;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header, .form, .footer {
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .form {
        padding: 15px;
    }
    
    .form h2 {
        font-size: 1.1rem;
    }
    
    .toggle-options {
        flex-direction: column;
        gap: 10px;
    }
}