
/* CSS */
body {
    margin: 0;
    padding: 0;
}

.text-container {
    text-align: center;
    padding-top: 150px;
}

.contact {
    padding: 60px 20px 60px 20px;
    background-color: #0a0b10;
    color: #fff;
}

.contact__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact__left {
    width: 50%;
    margin: auto;
}

.contact__label {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.contact__title {
    font-size: 58px;
    line-height: 1.2;
    margin: 0 0 24px;
}

.contact__highlight {
    color: #4200a5;
}

.contact__image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.contact__form {
    flex: 1 1 350px;
    background-color: #12121a;
    padding: 32px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    margin: auto;
}

.contact__field {
    position: relative;
    display: flex;
    align-items: center;
}

.contact__icon {
    position: absolute;
    left: 6px;
    pointer-events: none;
    font-size: 1.1rem;
    color: #777;
}

.contact__field input,
.contact__field textarea {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #ddd;
    font-size: 1rem;
    resize: none;
}

.contact__field input:focus,
.contact__field textarea:focus {
    outline: none;
    border-bottom-color: #6c33ff;
}

.contact__field--textarea {
    align-items: flex-start;
}

.contact__button {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    align-items: center;
    padding: 8px;
    background-color: #5ec900;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact__button:hover {
    background-color: #66cc00;
    transform: translateY(-2px);
}
.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    text-align: center;
    display: none; /* JavaScript will show it when needed */
}

/* Additional styles for form handling */
.contact__form-message {
    display: none;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

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

.contact__form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact__button--loading p {
    display: none;
}

.contact__button--loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.contact__field.error input,
.contact__field.error textarea {
    border-color: #dc3545;
}

.contact__field-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}
/* Responsive */
@media (max-width: 900px) {
    .contact {
        padding: 0px;
    }

    .contact__inner {
        flex-direction: column;
    }

    .contact__form {
        width: 80%;
    }

    .contact__left {
        width: 70%;
    }
}