*, *::before, *::after {
    font-family: 'Poppins', sans-serif !important;
}

input,
textarea,
select,
button {
    font-family: 'Poppins', sans-serif;
    line-height: normal;
    letter-spacing: normal;
    font-size: 13px;
}

body {
    background: #000b3a;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    padding-top: 40px;
    padding-bottom: 120px;
    background: url('./assets/header-bg.svg') no-repeat center;
    background-size: cover;
    background-position: center center;
}

.header .img {
    height: 40px;
}

.header .columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .column {
    flex: 1;
}

.header img.report {
    margin-left: auto;
    display: block;
}

.header .logos {
    display: flex;
    gap: 40px;
}

.header h1 {
    margin-top: 100px;
    align-self: stretch;
    flex-grow: 0;
    font-family: Poppins;
    font-size: 40px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: left;
    color: #ffffff;
}

.header p {
    align-self: stretch;
    flex-grow: 0;
    font-family: Poppins;
    font-size: 20px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: left;
    color: #ffffff;
    margin: 0;
    margin-bottom: 20px;
}

.header .input-wrapper {
    margin-top: 50px;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 14px;
    width: 400px;
    height: 56px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}
.header .input-wrapper input {
    border: none;
    width: 400px;
    outline: none;
    padding: 0 16px 0 16px;
    font-size: 16px;
    color: #6c757d;
    background-color: transparent;
    margin-right: 132px;
    box-sizing: border-box;
}
.header .input-wrapper button {
    height: 40px;
    width: 132px;
    text-align: center;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 8px 8px 8px;
    border-radius: 20px;
    background-color: #003fcd;
    font-family: Poppins;
    font-size: 18px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    color: #fff;
    border: 0;
    cursor: pointer;
    margin-right: 8px;
    position: absolute;
    right: 0;
    top: 8px;
}
.header .input-wrapper button:hover {
    background-color: #0035b0;
}
.header .input-wrapper button:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}
.header .input-wrapper button:disabled:hover {
    background-color: #94a3b8;
}

.features {
    padding: 100px 0px;
    background: url('./assets/features-bg.svg') no-repeat center;
    background-size: cover;
    background-position: center center;
}

.features .columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 780px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.features .column.icon {
    flex: 0 0 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.features .column.content {
    flex: 1;
    margin-left: 20px;
}

.features h1 {
    align-self: stretch;
    flex-grow: 0;
    font-family: Poppins;
    font-size: 36px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.22;
    letter-spacing: normal;
    text-align: center;
    color: #ffffff;
}

.features h2 {
    margin-top: 0px;
    flex-grow: 0;
    font-family: Poppins;
    font-size: 28px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: left;
    color: #ffffff;
}

.features p {
    align-self: stretch;
    flex-grow: 0;
    font-family: Poppins;
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: left;
    color: #ffffff;
}

.reports {
    padding: 100px 0px;
    background: url('./assets/reports-bg.svg') no-repeat center;
    background-size: cover;
    background-position: center center;
}

.reports h1 {
    align-self: stretch;
    flex-grow: 0;
    font-family: Poppins;
    font-size: 36px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.22;
    letter-spacing: normal;
    text-align: center;
    color: #ffffff;
}

.reports p {
    align-self: stretch;
    flex-grow: 0;
    font-family: Poppins;
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: center;
    color: #ffffff;
    margin-bottom: 70px;
}

.reports img {
    margin: 0 auto;
    display: block;
}
.reports button {
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    padding: 10px 25px;
    border-radius: 100px;
    box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    background-color: #f3f2ff;
    margin: 40px auto 20px;
    font-family: Poppins;
    font-size: 18px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: center;
    color: #003fcd;
    cursor: pointer;
}
.reports button:hover {
    background-color: #e5e3ff;
}

.footer {
    padding: 60px 0;
}

.footer .columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer .column {
    flex: 0 1 auto;
}
.footer .column.middle {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.footer .column.middle a {
    margin-left: 20px;
}
.footer .column.last {
    text-align: right;
}

.footer .column.last a {
    margin-left: 20px;
}
.footer p {
    flex-grow: 0;
    font-family: Poppins;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: right;
    color: #fbf8ff;
}
.footer a {
    color: #fbf8ff;
    text-decoration: none;
}
.footer a:hover {
    opacity: 0.8;
}

#modal, #success-modal {
    display: none;
}
#modal.active, #success-modal.active {
    display: block;
}

.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 8px;
    width: 600px; /* You can keep a fixed width */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center modal */
    max-height: 90vh; /* Optional: prevent modal from exceeding viewport */
    overflow: auto; /* Scroll if content is too tall */
}

.modal-content h2 {
    flex-grow: 1;
    font-family: Poppins;
    font-size: 20px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: left;
    color: #191b24;
    margin-top: 0px;
}
.modal-content h3 {
    font-family: Poppins;
    font-size: 16px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: left;
    color: #191b24;
    margin-top: 30px;
}

.modal-content a {
    flex-grow: 0;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: left;
    color: #003fcd;
}


.modal-content .columns {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}
.modal-content .column {
    flex: 1;
}

.modal-content label {
    flex-grow: 0;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: left;
    color: #020817;
    margin-bottom: 8px;
    display: block;
}
.modal-content input {
    width: 100%;
    box-sizing: border-box;
    height: 32px;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: solid 1px #e2e8f0;
    background-color: #fff;
}

.modal-content p {
    flex-grow: 0;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: left;
    color: #191b24;
}
.modal-content button {
    height: 40px;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    border-radius: 100px;
    background-color: #003fcd;
    font-family: Poppins;
    font-size: 16px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: center;
    color: #fff;
    border: 0;
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
}
.modal-content button:hover {
    background-color: #0035b0;
}
.modal-content button:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}
.modal-content button:disabled:hover {
    background-color: #94a3b8;
}
.modal-content .error {
    color: #dc0000;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 13px;
}

#close-modal, #close-modal-success {
    position: absolute;
    top: 35px;
    right: 35px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
#close-modal:hover, #close-modal-success:hover {
    opacity: 0.7;
}

.modal-content.success {
    text-align: center;
}

.modal-content.success img {
    height: 90px;
}

.modal-content.success h2 {
    text-align: center;
    margin-top: 28px;
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 1400px) {
    .container {
        padding: 20px 40px;
    }
    
    .header {
        background-size: cover;
        background-position: center top;
    }
    
    .features {
        background-size: cover;
        background-position: center center;
    }
    
    .reports {
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 1024px) {
    .header {
        background-size: cover;
        background-position: center 20%;
    }
    
    .features {
        background-size: cover;
        background-position: center center;
    }
    
    .reports {
        background-size: cover;
        background-position: center center;
    }
    
    .header .columns {
        flex-direction: column;
    }
    
    .header .logos {
        gap: 25px;
    }
    
    .header h1 {
        margin-top: 60px;
        font-size: 36px;
    }
    
    .header p {
        font-size: 18px;
    }
    
    .features h1 {
        font-size: 32px;
    }
    
    .features h2 {
        font-size: 24px;
    }
    
    .features p {
        font-size: 16px;
    }
    
    .reports h1 {
        font-size: 32px;
    }
    
    .reports p {
        font-size: 16px;
    }
    
    .reports img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header {
        padding-bottom: 30px;
        background: none; /* Remove background image on mobile */
    }
    
    /* Logo layout: 2 rows - first logo on row 1, logo + X + logo on row 2 */
    .header .logos {
        row-gap: 15px;
        column-gap: 50px;
        display: grid;
        grid-template-columns: auto auto auto;
        justify-content: flex-start;
        align-items: center;
    }
    
    .header .logos img:nth-child(1) {
        /* ResilientX logo - first row, spans all 3 columns */
        grid-column: 1 / 4;
        max-height: 60px;
        width: auto;
    }
    
    .header .logos img:nth-child(2) {
        /* First X - hide it */
        display: none;
    }
    
    .header .logos img:nth-child(3) {
        /* Assibro logo - second row, first column */
        max-height: 60px;
        width: auto;
    }
    
    .header .logos img:nth-child(4) {
        /* Second X - hide it */
        display: none;
    }
    
    .header .logos img:nth-child(5) {
        /* Partech logo - second row, third column */
        max-height: 60px;
        width: auto;
    }
    
    .header h1 {
        margin-top: 40px;
        font-size: 28px;
    }
    
    .header p {
        font-size: 16px;
    }
    
    .header .input-wrapper {
        width: 100%;
        margin-top: 40px;
        height: 60px;
    }
    
    .header .input-wrapper input {
        width: 100%;
        font-size: 18px;
        padding: 0 20px;
    }
    
    .header .input-wrapper button {
        height: 44px;
        top: 8px;
    }
    
    /* Show report image on mobile */
    .header img.report {
        display: block;
        max-width: 100%;
        height: auto;
        margin-top: 40px;
    }
    
    .features {
        padding: 30px 0;
        background: none; /* Remove background image on mobile */
    }
    
    .features .columns {
        align-items: flex-start;
        margin-bottom: 25px;
    }
    
    .features .column.icon {
        flex: 0 0 50px;
    }
    
    .features .column.icon img {
        max-width: 50px;
        height: auto;
    }
    
    .features .column.content {
        margin-left: 15px;
    }
    
    .features h1 {
        font-size: 28px;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .features h2 {
        font-size: 22px;
        text-align: left;
    }
    
    .features p {
        text-align: left;
    }
    
    .reports {
        padding: 40px 0;
        background: none; /* Remove background image on mobile */
    }
    
    .reports h1 {
        font-size: 28px;
        text-align: left;
    }
    
    .reports p {
        font-size: 16px;
        margin-bottom: 25px;
        text-align: left;
    }
    
    .reports button {
        font-size: 16px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 40px;
    }
    
    .footer {
        padding: 30px 0;
    }
    
    .footer .columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer .column.first,
    .footer .column.middle,
    .footer .column.last {
        text-align: center;
    }
    
    .footer .column.middle {
        align-items: center;
    }
    
    .footer .column.middle a {
        margin-left: 0;
        margin-right: 10px;
    }
    
    .footer .column.last a {
        margin-left: 10px;
    }
    
    .footer p {
        text-align: center;
    }
    
    .modal-content {
        width: 90%;
        max-width: 500px;
        padding: 24px;
    }
    
    .modal-content .columns {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-content .column {
        width: 100%;
    }
    
    .modal-content .column:first-child {
        margin-bottom: 20px;
    }
    
    /* Larger inputs on mobile */
    .modal-content input {
        width: 100%;
        box-sizing: border-box;
        height: 32px;
        padding: 16px;
        font-size: 16px;
    }
    
    #close-modal, #close-modal-success {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .header .logos {
        row-gap: 10px;
        column-gap: 35px;
    }
    
    .header .logos img:nth-child(1) {
        max-height: 44px;
    }
    
    .header .logos img:nth-child(3),
    .header .logos img:nth-child(5) {
        max-height: 44px;
    }
    
    .header .logos img:nth-child(4) {
        max-height: 26px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .header p {
        font-size: 14px;
    }
    
    .header .input-wrapper button {
        width: 100px;
        font-size: 14px;
        height: 40px;
    }
    
    .header .input-wrapper input {
        font-size: 16px;
    }
    
    .features h1 {
        font-size: 24px;
    }
    
    .features h2 {
        font-size: 20px;
    }
    
    .features p {
        font-size: 14px;
    }
    
    .reports h1 {
        font-size: 24px;
    }
    
    .reports p {
        font-size: 14px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-content input {
        height: 28px;
        padding: 14px;
        font-size: 15px;
    }
}

@media (min-width: 1400px) and (max-width: 1799px) {
    .header {
        background-size: cover;
        background-position: center center;
    }
    
    .features {
        background-size: cover;
        background-position: center center;
    }
    
    .reports {
        background-size: cover;
        background-position: center center;
    }
}

@media (min-width: 1800px) {
    .header {
        background-size: cover;
        background-position: center center;
    }
    
    .features {
        background-size: cover;
        background-position: center center;
    }
    
    .reports {
        background-size: cover;
        background-position: center center;
    }
}