@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

body, fieldset, legend, div, h1, h2, h3, h4, h5, h6, p, ul, li {
    font-family: 'Nunito Sans', sans-serif;
    font-optical-sizing: auto;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

fieldset, .frame-gray {
    border: 1px solid gray;
    border-radius: 1rem;
    padding: 1rem;
    margin: 1.12rem 0;
}

fieldset .secondary, .frame-lightgray {
    border: 1px solid lightgray;
    border-radius: 1rem;
    padding: 1rem;
    margin: 0 0 1.12rem 0;
}

legend, .legend-like {
    background-color: white;
    color: #1e5288;
    font-size: 1.27rem;
    font-weight: bold;
    padding: 0.5rem;
}

fieldset .secondary legend, .legend-secondary-like {
    background-color: white;
    color: #1e5288;
    font-size: 1.12rem;
    font-weight: bold;
    padding: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
    border-radius: 0.5rem !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.radius {
    border-radius: 1rem;
}

.no-bullet {
    list-style-type: none;
}


/* MARGIN AND PADDING UTILITIES */

.margin-element-sm {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.margin-element {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.margin-element-lg {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.marg-top-05 {
    margin-top: 0.5rem;
}

.marg-left-1 {
    margin-left: 1rem;
}

.pad-element {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pad-1 {
    padding: 1rem;
}

.pad-left-05 {
    padding-left: 0.5rem;
}

.pad-left-1 {
    padding-left: 1rem;
}

.borderLeftRight {
    border-left: 2px solid gray;
    border-right: 2px solid gray;
}


/* ALIGNMENT STYLES */

@media only screen and (max-width: 40em) {
    .align-small-center-large-right {
        text-align: center;
    }
}

@media only screen and (min-width: 41em) {
    .align-small-center-large-right {
        text-align: right;
    }
}


/* FRAME STYLES */

.frame-logo {
    border-bottom: 1px solid gray;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}


/* RADIO BUTTONS STYLED AS BUTTONS */

.radio-group-as-buttons input[type="radio"] {
    display: none;
}

.radio-group-as-buttons label {
    background-color: #f6f6f6;
    border: 1px solid #ccc;
    border-radius: 7px;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-top: 8px;
    margin-right: 8px;
    padding: 8px 16px;    
    user-select: none;
}

.radio-group-as-buttons input[type="radio"]:checked + label {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;    
}

label {
    font-size: 1rem;
}

.checkbox-group div {
    margin-bottom: 5px;
}


/* ERROR MESSAGE AND SUCCESS */

.success {
    background-color: #1e5288;
    border: 2px solid #1e5288;    
    border-radius: 1rem;
    color: whitesmoke;
    font-weight: bold;
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;    
    width: 74%;
}

.error {
    background-color: darkred;
    border: 2px solid darkred;
    border-radius: 1rem;    
    color: whitesmoke;
    font-weight: bold;
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;    
    width: 74%;    
}


/* styles */

select, input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

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

.checkbox-group, .radio-group {
    margin-left: 10px;
    margin-bottom: 15px;
}

input[type="checkbox"], input[type="radio"] {
    margin-right: 8px;
    margin-bottom: 8px;
    transform: scale(1.2);
}

input[type="checkbox"] + label, input[type="radio"] + label {
    display: inline;
    margin-left: 5px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 8px;
}

/* Required field indicator */
label[for*="manufacturer"]:after,
label[for*="product"]:after,
label[for*="teamMember"]:after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

/* Hidden elements */
.hidden {
    display: none;
}

/* URL input container styling */
.add-url-container {
    margin-top: 10px;
    margin-left: 20px;
    padding: 10px;
    background-color: #ecf0f1;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

.add-url-container label {
    font-size: 14px;
    font-weight: normal;
    color: #34495e;
    margin-bottom: 5px;
}

.add-url-container input[type="url"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
}

/* Checkbox group enhancements */
.checkbox-group > div {
    margin-bottom: 15px;
    padding: 1px 0;
}

.checkbox-group > div > label {
    margin-left: 8px;
    font-weight: normal;
}

/* Form validation feedback */


/* Loading state for product dropdown */
#product option:first-child {
    color: #6c757d;
    font-style: italic;
}
