:root {
    --primary-color: #2C3E50;          /* Dark Blue for accents */
    --secondary-color: #34495E;        /* Dark Gray for general text */
    --accent-color: #FF0000;           /* Red for buttons and highlights */
    --background-color: #FFFFFF;       /* White background */
    --background-color-light: #FFFFFF; /* White background for cards */
    --text-color: #2C3E50;             /* Dark text color */
    --text-color-light: #7F8C8D;        /* Light text color for specific cases */
    --border-color: #BDC3C7;           /* Border color for inputs and boxes */
    --box-shadow: rgba(0, 0, 0, 0.1);    /* Shadow for boxes */
    --error-color: #E74C3C;            /* Red for error messages */
    --success-color: #27ae60;          /* Green for success messages */
}

/* General reset and typography */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Popup message styling */
.popup-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-color);
    padding: 15px 25px;
    border: 2px solid;
    border-radius: 5px;
    z-index: 1000;
    font-weight: bold;
    box-shadow: 0 4px 12px var(--box-shadow);
    display: none;
}

.popup-message.error {
    border-color: var(--error-color);
    color: var(--error-color);
}

.popup-message.success {
    border-color: var(--success-color);
    color: var(--success-color);
}

/* Contact section styling */
.contact-main {
    padding: 2em 2em;
    max-width: 1200px;
    margin: 1em auto 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 1em;
}

/* Header paragraph */
.header-desc {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 2em;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info,
.contact-form {
    background-color: var(--background-color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--box-shadow);
    flex: 1;
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover,
.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px var(--box-shadow);
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.3em;
}

.info-box,
.tax-info {
    margin-bottom: 1.5em;
}

.company-name {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 0.8em;
    color: var(--primary-color);
}

.contact-info p {
    margin: 10px 0;
    font-size: 1em;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 1.2em;
}

.tax-info p {
    font-size: 0.95em;
    color: var(--secondary-color);
    margin: 5px 0;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5em;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: var(--secondary-color);
}

.required {
    color: var(--error-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 5px var(--accent-color);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.phone-container {
    display: flex;
    gap: 10px;
}

.country-code {
    flex: 1;
}

.phone-number {
    flex: 2;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button i {
    margin-left: 8px;
}

.submit-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.recaptcha-container {
    text-align: center;
    margin-top: 20px;
}

/* Center the reCAPTCHA widget on mobile */
.g-recaptcha {
    display: inline-block;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    /* Remove side padding on the main container */
    .contact-main {
        padding: 2em 0;
    }

    .phone-container {
        flex-direction: column;
    }

    .country-code,
    .phone-number {
        flex: none;
        width: 100%;
    }
    
    /* Adjust reCAPTCHA widget alignment */
    .recaptcha-container .g-recaptcha {
        margin: 0 auto;          /* Centers the widget */
     /* Pushes it slightly to the left */
    }
    
    /* Add space between reCAPTCHA and the submit button */
    .recaptcha-container {
        margin-bottom: 20px;     /* Adjust this value as needed */
    }
}

@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info,
    .contact-form {
        max-width: 90%;
    }

    .contact-header h1 {
        font-size: 2.5em;
    }

    .contact-header p {
        font-size: 1em;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.6em;
    }
}
