/* style2.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #000428;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 15px calc(60px + 1rem);
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.header-logo {
    width: 100%;
    max-width: 450px;
    text-align: center;
    margin: 0 auto 15px;
    padding: 10px 0;
}

.header-logo img {
    width: 120px;
    height: auto;
}

.form-container {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.form-header {
    background: #f26522;
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.image-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.main-image {
    width: 100%;
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.curve-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: white;
    border-radius: 100% 100% 0 0;
    transform: translateY(50%);
}

.acea-brand {
    position: absolute;
    bottom: 10%;
    right: 20px;
    text-align: right;
    z-index: 2;
}

.acea-logo {
    width: 100px;
    height: auto;
}

.form-content {
    padding: 2rem 1.5rem;
}

.form-title {
    color: #1a1b41;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 1rem 0;
    text-align: center;
    line-height: 1.2;
}

.form-subtitle {
    color: #f26522;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-description {
    color: #1a1b41;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.input-group {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    color: #f26522;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
}

.privacy-section {
    margin: 1.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 3px;
    min-width: 16px;
    height: 16px;
}

.privacy-text {
    font-size: 0.8rem;
    color: #1a1b41;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #f26522;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
}

.footer {
    background: #a52a45;
    color: white;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.75rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Media Queries */
@media screen and (max-width: 360px) {
    .page-container {
        padding: 10px 10px calc(60px + 1rem);
    }

    .form-content {
        padding: 1.5rem 1rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 1rem;
    }

    .input-label {
        font-size: 0.9rem;
    }

    .privacy-text {
        font-size: 0.75rem;
    }
}

@media screen and (min-width: 361px) and (max-width: 480px) {
    .form-container {
        width: 100%;
    }
    
    .header-logo img {
        width: 100px;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .form-container {
        width: 95%;
    }

    .acea-logo {
        width: 120px;
    }

    .form-title {
        font-size: 2rem;
    }
}

@media screen and (min-width: 769px) {
    .page-container {
        max-width: 1200px;
    }

    .form-container {
        max-width: 500px;
    }

    .acea-logo {
        width: 140px;
    }

    .header-logo img {
        width: 150px;
    }
}

@media screen and (min-height: 800px) {
    .page-container {
        justify-content: center;
    }
}

/* Fix per dispositivi Apple */
@supports (-webkit-touch-callout: none) {
    .page-container {
        padding-bottom: calc(80px + 1rem);
    }
}

/* Fix per schermi molto alti */
@media screen and (min-height: 1000px) {
    .form-container {
        margin: 2rem auto;
    }
}

/* Fix per schermi molto stretti e alti (come fold) */
@media screen and (max-width: 320px) and (min-height: 600px) {
    .page-container {
        padding: 5px 5px calc(60px + 1rem);
    }
    
    .form-content {
        padding: 1rem;
    }
}