/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #DEE0E3;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Mobile background */
@media (max-width: 768px) {
    .hero::before {
        background-image: url('lorenzo-vianna-bg-mobile.png');
    }
}

/* Desktop background */
@media (min-width: 769px) {
    .hero::before {
        background-image: url('lorenzo-vianna-bg-web.jpg');
    }
}

/* Container */
.container {
    max-width: 1920px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 auto;
}

/* Columns */
.column {
    display: flex;
    align-items: center;
    padding: 2rem;
}

.column-left {
    justify-content: flex-end;
}

.column-right {
    justify-content: flex-start;
}

/* Form Container */
.form-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tag */
.tag {
    display: inline-block;
    background: #3D3A39;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Headline */
.headline {
    font-size: 2rem;
    font-weight: 700;
    color: #3D3A39;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Subtext */
.subtext {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3D3A39;
    margin-bottom: 0.5rem;
}

.form-input {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3D3A39;
    box-shadow: 0 0 0 3px rgba(61, 58, 57, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.country-select {
    padding: 0.875rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
    min-width: 100px;
    flex-shrink: 0;
}

.country-select:focus {
    outline: none;
    border-color: #3D3A39;
    box-shadow: 0 0 0 3px rgba(61, 58, 57, 0.1);
}

.phone-input {
    flex: 1;
}

/* Submit Button */
.submit-btn {
    background: #3D3A39;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: #2a2827;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(61, 58, 57, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.submit-btn:disabled:hover {
    background: #999;
    transform: none;
    box-shadow: none;
}

/* Success Message */
.success-message {
    display: none;
    background: #4caf50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    animation: slideIn 0.4s ease-out;
}

.success-message.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        align-items: flex-start;
    }

    .hero::before {
        background-position: center top;
        position: absolute;
    }

    .container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .column-left {
        display: none;
    }

    .column-right {
        justify-content: center;
        align-items: flex-start;
        padding-top: 0;
        min-height: 100vh;
    }

    .column {
        padding: 1.5rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
        margin-top: 500px;
    }

    .headline {
        font-size: 1.75rem;
    }

    .subtext {
        font-size: 0.9375rem;
    }

    .country-select {
        min-width: 95px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero::before {
        background-position: center top;
    }

    .column-right {
        padding-top: 0;
    }

    .column {
        padding: 1rem;
    }

    .form-container {
        padding: 1.5rem 1.25rem;
        margin-top: 240px;
    }

    .headline {
        font-size: 1.5rem;
    }

    .tag {
        font-size: 0.6875rem;
        padding: 0.4rem 1rem;
    }

    .country-select {
        min-width: 90px;
        font-size: 0.85rem;
        padding: 0.875rem 0.5rem;
    }
}

/* Accessibility */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #f44336;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #4caf50;
}

/* Footer */
.footer {
    background: #3D3A39;
    color: #fff;
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.875rem;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}
