.contactUs {
    padding: 80px 90px;
    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
}

/* Ensure all elements use border-box sizing for consistent width calculations */
.contactUs *,
.contactUs *::before,
.contactUs *::after {
    box-sizing: border-box;
}
@media (min-width: 569px) and (max-width: 1024px) {
    .contactUs {
        padding: 17px 40px;
    }
}

@media (max-width: 568px) {
    .contactUs {
        padding: 17px 16px;
    }
}

.contactUs .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1440px;
    width: 100%;
}

@media (max-width: 568px) {
    .contactUs .container {
        flex-direction: column;
    }
}

.contactUs .formBlock {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
    max-width: 600px;
    flex: 1;
}

.contactUs .formBlock h2 {
    max-width: 400px;
    font-family: sans-serif;
    font-size: 40px;
    margin-bottom: 10px;
    color: #00d4aa;
    @media (max-width: 600px) {
        font-size: 20px;
    }
}

.formBlock p {
    line-height: 1.6;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .formBlock {
        order: 1;
    }

    .formBlock h2 {
        font-size: 1.6rem;
        max-width: none;
    }
}

.imageBlock {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imageBlock img {
    max-width: 100%;
    border-radius: 10px;
    height: auto;
}

@media (max-width: 768px) {
    .imageBlock {
        order: 2;
    }
}
.contact-form {
    width: 100%;
}

.form-step {
    width: 100%;
    animation: fadeIn 0.3s ease;
}

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

.input {
    width: 100%;
    padding: 12px;
    border: 1px solid #8fa3b3;
    background: transparent;
    color: white;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input:focus {
    outline: none;
    border-color: #00d4aa;
    box-shadow: 0 0 5px rgba(240, 108, 121, 0.3);
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

textarea.input {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.error {
    color: #00d4aa;
    font-size: 12px;
    margin-top: -15px;
    margin-bottom: 15px;
    padding: 0;
}

.nextButton {
    background: transparent;
    border: 1px solid #00d4aa;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    color: #00d4aa;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nextButton:hover {
    background: #00d4aa;
    color: white;
    transform: translateY(-2px);
}

.nextButton:active {
    transform: translateY(0);
}

.sendButton {
    background: #00d4aa;
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.sendButton:hover {
    background: #00b894;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(240, 108, 121, 0.3);
}

.sendButton:active {
    transform: translateY(0);
}
.loading-indicator {
    text-align: center;
    padding: 40px 0;
}

.loading-indicator p {
    color: #8fa3b3;
    font-size: 16px;
}

.success-message {
    text-align: center;
    padding: 40px 0;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    border-radius: 8px;
}

.success-message h3 {
    color: #4caf50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.success-message p {
    color: white;
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 480px) {
    .contactUs {
        padding: 20px 16px;
    }

    .container {
        gap: 20px;
    }

    .formBlock h2 {
        font-size: 1.4rem;
    }

    .input {
        padding: 10px;
        font-size: 16px;
    }

    .nextButton,
    .sendButton {
        padding: 12px;
        font-size: 16px;
    }
}

/* Styles for very small mobile devices (320px and below) */
@media (max-width: 320px) {
    .contactUs {
        padding: 15px 8px;
    }

    .contactUs .container {
        gap: 15px;
        max-width: 100%;
        padding: 0;
    }

    .contactUs .formBlock {
        max-width: 100%;
        gap: 15px;
        padding: 0;
    }

    .formBlock h2 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .formBlock p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .input {
        padding: 8px;
        font-size: 16px;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    textarea.input {
        min-height: 80px;
        resize: none;
    }

    .nextButton,
    .sendButton {
        padding: 10px 8px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .error {
        font-size: 11px;
        margin-top: -12px;
        margin-bottom: 12px;
    }

    .success-message {
        padding: 20px 10px;
        margin: 0 -8px;
    }

    .success-message h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .success-message p {
        font-size: 14px;
    }

    .loading-indicator {
        padding: 20px 0;
    }

    .loading-indicator p {
        font-size: 14px;
    }
}
.input.valid {
    border-color: #4caf50;
}

.input.invalid {
    border-color: #00d4aa;
    box-shadow: 0 0 5px rgba(240, 108, 121, 0.3);
}
.nextButton:focus,
.sendButton:focus,
.input:focus {
    outline: 2px solid #00d4aa;
    outline-offset: 2px;
}
