body {
    margin: 0;
    padding: 0;
}

.enquiry-page {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    font-family: Arial, sans-serif;
    height: 100vh;
}

/* Half covered background with text */
.half-background {
    position: relative;
    top:19%;
    left: 0;
    width: 100%;
    height: 35%;
    background-color: #FDF9E7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 20px; /* Add space to the left for the text */
}

/* Left-aligned text */
.left-text {
    position: absolute;
    top: 20%;
    left: 20px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #333; /* Or any color you prefer */
}

.half-background h1 {
    font-family: 'Segoe UI', sans-serif;
    font-size: xx-large;
    letter-spacing: 0%;
    margin-top: 7%;
    text-align: center;
    color: #333; /* Or any color you prefer */
}

.half-background p {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.right-section {
    margin-top: 13%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enquiry-box {
    width: 50%;
    padding: 30px;
    border-radius: 8px;
 margin-top: -13%;
    border: 1px solid #E7E7E7; /* Added border */
    position: relative;
    z-index: 1; /* Ensures form is above the background */
}

.input-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.form-container {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    background-color: #fff;
    box-sizing: border-box;
}

.input-group label {
    position: absolute;
    top: -9px;
    left: 8px;
    font-size: 12px;
    color: #1b1e1b;
    background-color: white;
    padding: 0 4px;
}

.phone-container {
    display: flex;
    align-items: center;
    width: 49%;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    padding: 0; /* Remove extra padding */
    overflow: hidden;
}

.phone-container select {
    border: none;
    padding: 12px;
    font-size: 16px;
    background-color: #f8f8f8;
    cursor: pointer;
}

.phone-container input {
    border: none;
    width: 180px;
    padding: 12px;
    font-size: 16px;
    outline: none;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #0083C0, #FFCB3E);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: 1%;
}
 
.submit-button:hover {
    opacity: 0.9;
}

#country{
    height: 50px;  
}

#phone-code {
    width: 26%;
    border: none;
    background-color: #f8f8f8;
    cursor: pointer;
    text-align: center;
}

#phone {
    flex-grow: 1; /* Takes up remaining space */
    padding: 12px;
    font-size: 16px;
    border: none;
    outline: none;
    width: 80%;
    background-color: white;
}
.text{
    margin-top: 28%;
}

@media screen and (max-width: 768px) {
    .enquiry-page {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        height: auto;
    }

    .half-background {
        height: auto;
        padding: 20px;
        text-align: center;
    }

    .half-background h1 {
        font-size: 24px;
        margin-top: 5%;
    }

    .half-background p {
        font-size: 12px;
    }

    .left-text {
        position: relative;
        text-align: center;
        top: auto;
        left: auto;
        margin-bottom: 10px;
    }

    .right-section {
        width: 100%;
        margin-top: 5%;
    }

    .enquiry-box {
        width: 90%;
        padding: 20px;
        margin-top: 0;
    }

    .input-row {
        flex-direction: column;
        gap: 10px;
    }

    .form-container {
        width: 100%;
    }

    .phone-container {
        width: 100%;
    }

    .phone-container select {
        padding: 10px;
    }

    .phone-container input {
        width: 100%;
    }

    .submit-button {
        font-size: 14px;
        padding: 10px;
    }
}
@media screen and (max-width: 768px) {
    .enquiry-page {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        height: auto;
    }

    .half-background {
        height: auto;
        padding: 20px;
        text-align: center;
    }

    .left-text {
        position: relative;
        top: 0;
        left: 0;
        font-size: 12px;
    }

    .half-background h1 {
        font-size: 22px;
        margin-top: 10px;
    }

    .half-background p {
        font-size: 14px;
    }

    .right-section {
        margin-top: 5%;
        width: 100%;
    }

    .enquiry-box {
        width: 90%;
        padding: 20px;
    }

    .input-row {
        flex-direction: column;
        gap: 10px;
    }

    .phone-container {
        width: 100%;
    }

    .submit-button {
        width: 100%;
    }
}
