/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.moderustic {
    font-family: Moderustic, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    color: #140831;
    background-color: #e4e4e4;
}

/* Section layout */
section {
    padding: 5rem 5rem 0rem;
}

section.hero {
    background-image: url("assets/hero-bg.png");
    background-size: cover;
}

section .panel {
    padding: 0rem;
    margin: 0rem;
    color: #ffffff;
    background-color: #140831;
    border-radius: 1rem;
    height: 100%;
    display: flex;
    overflow: hidden;
    width: 100%;
}

section .panel.light {
    background-color: #ffffff;
    color: #140831;
}

section .panel h2 {
    font-size: 2.5rem;
}

p {
    font-size: 1.5rem;
    padding-top: 1rem;
}

section .panel .text {
    flex-direction: column;
    padding: 4rem;
    flex: 3 1 0%;
}

section .panel .image {
    flex: 2 1 0%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Intro section */
section.intro {
    min-height: auto;
}

section.intro .text h1 {
    font-size: 3rem;
}

section.intro .image {
    background: url("assets/jb.png") right center / contain no-repeat;
    flex: 1 1 0%;
    margin: 3rem;
}

/* Device info section */
section.device-info {
    min-height: auto;
    text-align: center;
}

section.device-info p {
    font-size: 1.5rem;
}

section p {
    font-size: 2rem;
}

/* Value proposition */
section.value-proposition .image {
    background: url("assets/monitoring.jpg") right top / contain no-repeat;
}

/* Partners section */
.partners ul {
    list-style-type: none;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    padding: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.partners ul li {
    margin-right: 2rem;
    display: inline-flex;
    align-items: center;
}

.partners ul li img {
    max-width: 10em;
    height: auto;
}

/* Features section */
.feature {
    display: flex;
    justify-content: start;
    padding: 2rem;
    gap: 2rem;
    align-items: center;
}

.feature img {
    max-height: 7rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
}

footer p {
    font-size: 1rem;
}

/* Form styles */
form {
    padding-top: 2rem;
}

.input-container {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 25rem;
}

.input-container label,
.checkbox-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #aaaaaa;
}

.input-container input,
.input-container select {
    width: 100%;
    padding: 0.625rem;
    background: transparent;
    border: 0.125rem solid #511859;
    border-radius: 0.25rem;
    font-size: 1rem;
    color: #f5f5f5;
    outline: none;
    transition: border-color 0.3s, color 0.3s;
    appearance: none;
}

.input-container input:focus,
.input-container select:focus {
    border-color: #ef59dd;
}

.input-container input::placeholder,
.input-container select::placeholder {
    color: #999999;
}

/* Checkbox styling */
.checkbox-container {
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-container input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 0.125rem solid #511859;
    border-radius: 0.25rem;
    background-color: transparent;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #511859;
    border-color: #511859;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4 8L10 1' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
}

.checkbox-container label {
    margin-bottom: 0;
    color: #aaaaaa;
}

/* Button styles */
button,
.button {
    padding: 0.75rem 1.5rem;
    background-color: #511859;
    color: #f5f5f5;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
}

button:hover,
.button:hover {
    background-color: #ef59dd;
}

button:active {
    transform: scale(0.98);
}

button:focus {
    outline: #f5f5f5 solid 2px;
    outline-offset: 2px;
}

/* Responsive design */
@media screen and (max-width: 800px) {
    section {
        padding: 0.5rem;
    }
    
    section.features .feature {
        flex-direction: column;
        gap: 1rem;
    }
    
    section.partners ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    section .panel {
        flex-direction: column;
    }
    
    section .panel .text {
        padding: 2rem;
    }
    
    section.intro .image {
        margin: 1rem;
        min-height: 200px;
    }
    
    section.intro .text h1 {
        font-size: 2rem;
    }
    
    section .panel h2 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1.2rem;
    }
}