/* --- Button Style --- */
.ug-open-modal-btn {
    padding: .5em 1em;
    background-color: #ae1b3f; /* Dark Blue */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
}

/* --- Modal Style (Popup) --- */

/* Dark Background */
.ug-modal {
    display: none; 
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Semi-transparent background */
}

/* Content Box */
.ug-modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1400px; 
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Close Button (X) */
.ug-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ug-modal-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 200;
  	font-size: 48px;
  	text-decoration: underline;
}

/* --- Form Style (Matching Screenshot) --- */

.ug-form-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
}

.ug-form-left-col {
    flex: 1; /* Occupies 2/3 space */
    display: flex;
    flex-wrap: wrap;
    gap: 15px; 
}

.ug-form-right-col {
    flex: 1; /* Occupies 1/3 space */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ug-form-group-submit {
    margin-top: auto;
}

/* Field Group Styles */
.ug-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.ug-form-group.ug-half-width {
    width: calc(50% - 7.5px); 
}

.ug-form-group.ug-full-width {
    width: 100%;
}

.ug-form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.ug-form-group input[type="text"],
.ug-form-group input[type="email"],
.ug-form-group input[type="tel"],
.ug-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 15px;
}

.ug-form-right-col .ug-form-group,
.ug-form-right-col .ug-form-group textarea {
    height: 100%; 
}

.ug-form-right-col .ug-form-group textarea {
    min-height: 100px; 
    flex-grow: 1; 
}

/* Form Footer (Privacy and Submit) */
.ug-form-footer {
    margin-top: 25px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
}

.ug-form-group-checkbox {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-right: 20px;
}

.ug-form-group-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.ug-submit-btn {
    padding: 12px 30px;
    background-color: #0073aa; 
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    width: 100%;
}

.ug-submit-btn:disabled {
    background-color: #aaa; 
    cursor: not-allowed;
}

/* AJAX Response Message */
.ug-response-message {
    margin-top: 20px;
    font-size: 15px;
    font-weight: bold;
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .ug-form-container {
        flex-direction: column; 
    }

    .ug-form-group.ug-half-width {
        width: 100%; 
    }
    
    .ug-modal-content {
        margin: 10% auto; 
        padding: 20px;
    }

    .ug-form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}