@import "components/sections/slider.css";
@import "components/sections/faq.css";
@import "components/sections/testimonials.css";
@import "components/sections/solar-orbit.css";
@import "components/sections/stats.css";
@import "components/sections/chart.css";
@import "components/sections/info-section.css";

.home-section {
    position: relative;
}

.home-header {
    padding: 30px;
    max-width: 60%;
    display: flex;
    flex-direction: column;
}

.home-hero {
    background-image: url('../../assets/images/home-regiepro-hero.webp');
    background-size: cover;
    background-position: center;
    height: 480px;
}

.home-form-container {
    position: absolute;
    top: 180px;
    right: 65px;
    width: 466px;
    z-index: 10;
}

.more-info {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-pink);
    text-decoration: underline;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.more-info::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/assets/images/icons/bottom-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.home-form {
    background: white;
    padding: 30px;
    border: 1px solid var(--color-border);
}

.home-form h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group {
    position: relative;
    margin-bottom: 8px;
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
    background: #FAFAFA;
    padding: 0 4px;
}

.form-group input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background-color: #FAFAFA;
    border-radius: 99px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-border);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
}

.form-group input:read-only {
    background-color: #F5F5F5;
    cursor: not-allowed;
    color: #666;
}

.form-group input:read-only + label {
    background: #F5F5F5;
}

.form-group select {
    color: #999;
}

.form-group select:focus,
.form-group select:valid {
    color: #333;
}

.form-group.error input {
    border-color: #dc3545;
}

.form-group.error label {
    color: #dc3545 !important;
}

.form-group .error-message {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.form-group.error .error-message {
    display: block;
}

.alert {
    padding: 15px;
    margin-top: 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 1300px) {
    .home-form-container {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .home-header h1 {
        font-size: 40px;
        line-height: 1.2;
    }
}

@media (max-width: 1150px) {
    .home-header {
        max-width: 100%;
        padding: 20px 0 0;
    }

    .home-header h1 {
        font-size: 36px;
        width: 100%;
        max-width: 100%;
    }

    .home-section {
        display: flex;
        flex-direction: column;
    }

    .home-header {
        order: 1;
    }

    .home-header h1 {
        font-size: 36px;
        font-style: normal;
        font-weight: 600;
    }

    .home-form-container {
        position: static;
        width: 100%;
        padding: 0;
        order: 2;
    }

    .home-form {
        padding: 20px;
    }

    .home-hero {
        display: none;
    }
}