﻿:root {
    --primary-blue: #386A45; /* Button color */
    --text-color: #333;
    --label-color: #555;
    --border-color: #ccc;
    --background-color: #fff;
    --font-family: Arial, sans-serif;
}

/* --- Global Layout and Container --- */
.row.g-0 {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 40px auto;
    background-color: var(--background-color);
    font-family: var(--font-family);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    border-radius: 8px;
    overflow: hidden;
}

/* --- Contact Information Section (Left Column) --- */
.col-md-5 {
    padding: 30px;
    flex: 0 0 40%; /* 40% width for info section */
    max-width: 40%;
    border-right: 1px solid #eee; /* Separator line */
}

.ul-contact-infos-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.ul-contact-infos-sub-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    display: block;
}

.ul-contact-infos a,
.ul-contact-infos .ul-contact-info {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Style for the telephone/email links */
.ul-contact-infos a {
    color: var(--primary-blue);
    font-weight: 500;
}

/* Icon Styling (Requires flaticon library to render actual icons) */
.ul-contact-infos i {
    margin-right: 8px;
    font-size: 1.1rem;
    color: var(--text-color); /* Icons are black/gray */
}

.ul-contact-infos a i {
    color: var(--primary-blue); /* Assuming link icons are blue */
}

/* --- Contact Form Section (Right Column) --- */
.col-md-7 {
    padding: 30px;
    flex: 0 0 60%; /* 60% width for form section */
    max-width: 60%;
}

.ul-contact-form-wrapper form {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 15px; /* Spacing between form groups */
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Two-column layout for First Name and Last Name */
.ul-contact-form-wrapper form > .form-group:nth-of-type(1), /* First Name */
.ul-contact-form-wrapper form > .form-group:nth-of-type(2) { /* Last Name */
    flex: 1 1 calc(50% - 7.5px);
}

.form-group label {
    font-size: 0.85rem;
    color: var(--label-color);
    margin-bottom: 4px;
    font-weight: 500;
}

/* Input and Textarea Styling */
.ul-contact-form-wrapper input:not([type="radio"]),
.ul-contact-form-wrapper textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.2s;
}

    .ul-contact-form-wrapper input:not([type="radio"]):focus,
    .ul-contact-form-wrapper textarea:focus {
        border-color: var(--primary-blue);
        outline: none;
    }

.ul-contact-form-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

/* --- Radio Buttons (Select Subject) --- */
.contact-inner-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    display: block;
}

.ul-contact-form-subjects {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Vertical spacing between radio options */
}

.ul-radio label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: normal; /* Override .form-group label style */
}

.ul-radio input[type="radio"] {
    display: none; /* Hide default radio button */
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ul-radio input[type="radio"]:checked + .checkmark {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
}

    .ul-radio input[type="radio"]:checked + .checkmark i {
        color: #fff;
        font-size: 8px; /* For the checkmark icon */
    }

/* --- Submit Button --- */
.ul-btn {
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

    .ul-btn:hover {
        background-color: #7065F0;
    }

/* --- Media Query for Responsiveness --- */
@media (max-width: 768px) {
    .row.g-0 {
        flex-direction: column;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .col-md-5, .col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 20px;
    }

    .col-md-5 {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    /* Stack fields vertically on mobile */
    .ul-contact-form-wrapper form > .form-group:nth-of-type(1),
    .ul-contact-form-wrapper form > .form-group:nth-of-type(2) {
        flex: 1 1 100%;
    }
}
