.contact-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 60px);
    margin-top: 60px;
}

.contact-column {
    width: 50%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-column.left {
    background-color: #1A1A1A;
    padding: 20px;
}

.contact-column.right {
     background-color: #1A1A1A;
}

#contact-canvas {
    width: 100%;
    height: 100%;
}

#contact-form {
    width: 80%;
}
#contact-form label,
#contact-form textarea,
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}
#contact-form input, #contact-form textarea {
    padding: 5px;
}
 #contact-form button {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 10px;
    background-color: var(--main-color);
    color: var(--background-color);
    border: none;
 }

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        height: auto;
        margin-top: 60px;
    }

    .contact-column {
        width: 100%;
        height: auto;
        min-height: 50vh;
        padding: 20px;
    }

    .contact-column.left {
        height: 40vh;
        min-height: 40vh;
    }
    .contact-column.right {
        padding-top: 0;
    }

    #contact-form {
        width: 90%;
    }
}

.form-message {
    width: 80%;
    padding: 20px;
    margin-top: 20px;
    border-radius: 0;
    display: none;
    text-align: center;
    font-weight: normal;
    box-sizing: border-box;
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-message.success {
    color: #1A1A1A;
    background-color: rgba(221, 0, 68, 0.2);
    border: 2px solid #FF0055;
}

.form-message.error {
    background-color: #B0003A;
    color: #eee;
    border: none;
}

.form-message a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.form-message a:hover {
    opacity: 0.8;
}

/* Captcha Styles */
.captcha-container {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2A2A2A;
}

.captcha-container label {
    margin-bottom: 10px;
    color: var(--main-color);
    font-weight: bold;
    display: block;
}

.captcha-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

.captcha-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    padding: 10px;
    background-color: #333;
    border-radius: 4px;
    text-align: left;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

.captcha-container input[type="number"] {
    width: 8ch;
    text-align: center;
    font-size: 1.2rem;
    padding: 10px 5px;
    margin: 0;
    flex-shrink: 0;
}

#refresh-captcha {
    display: inline-block;
    color: var(--main-color);
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    vertical-align: top;
    margin-bottom: 0;
    margin-left: 10px;
}

#refresh-captcha:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .captcha-inline {
        gap: 10px;
    }
    
    .captcha-question {
        font-size: 1rem;
        padding: 8px;
    }
    
    .captcha-container input[type="number"] {
        width: 3.5ch; /* Adjusted for smaller font size */
        font-size: 1rem;
        padding: 8px 5px;
    }
    
    #refresh-captcha {
        font-size: 0.9rem;
    }
}
