.oip-form label {
    display: block;
    margin-bottom: 5px;
    color: #272B5C;
    text-align: left;
    font-family: var(--e-global-typography-9937965-font-family), Sans-serif;
    font-size: var(--e-global-typography-9937965-font-size);
    font-weight: var(--e-global-typography-9937965-font-weight);
    line-height: var(--e-global-typography-9937965-line-height);
}

.oip-form input,
.oip-form select {
    width: 100%;
    padding: 12px;
    height: 48px; 
    border: 1px solid #272B5C; 
    border-radius: 50px !important; 
    font-family: var(--e-global-typography-9937965-font-family), Sans-serif;
    font-size: var(--e-global-typography-9937965-font-size);
    font-weight: var(--e-global-typography-9937965-font-weight);
    line-height: var(--e-global-typography-9937965-line-height);
    color: #272B5C; 
    background-color: #fff; 
    outline: none;
    padding-right: 40px; 
    cursor: pointer;
}

.oip-form textarea{
    width: 100%;
    padding: 12px;
    border: 1px solid #272B5C; 
    border-radius: 20px !important; 
    font-family: var(--e-global-typography-9937965-font-family), Sans-serif;
    font-size: var(--e-global-typography-9937965-font-size);
    font-weight: var(--e-global-typography-9937965-font-weight);
    line-height: var(--e-global-typography-9937965-line-height);
    color: #272B5C; 
    background-color: #fff; 
    outline: none;
    padding-right: 40px; 
    cursor: pointer;
}

/* Improve the dropdown arrow for select inputs */
.oip-form .form-group {
    position: relative;
}

.oip-form select {
    appearance: none; /* Removes default browser styles */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23272B5C'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* Fix select height inside Safari */
.oip-form select::-ms-expand {
    display: none; /* Hide default arrow on IE */
}

/* Change border color on focus (active input) */
.oip-form input:focus,
.oip-form select:focus,
.oip-form textarea:focus {
    border-color: #C59217 !important; /* Gold when active */
}

/* Space between form elements */
.oip-form .form-group {
    margin-bottom: 20px;
}

/* Phone field wrapper */
.oip-form .phone-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between country code and phone input */
}

/* Country code select */
.oip-form .country-code {
    width: 30%;
    flex-shrink: 0;
    text-align: center;
    padding: 12px;
    height: 48px;
    border: 1px solid #272B5C; /* Default border color */
    border-radius: 50px !important;
    font-size: 16px;
    color: #272B5C;
    background-color: #fff;
    cursor: pointer;
}

/* Phone number input */
.oip-form .phone-number {
    width: 70%;
    flex-grow: 1;
    padding: 12px;
    height: 48px;
    border: 1px solid #272B5C; /* Default border color */
    border-radius: 50px !important;
    font-size: 16px;
    color: #272B5C;
    background-color: #fff;
    outline: none;
}

/* Change border color when country code select or phone number input is active */
.oip-form .country-code:focus,
.oip-form .phone-number:focus {
    border-color: #C59217 !important; /* Gold when active */
}

/* Align checkbox and text in one line */
.oip-form .checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px; /* Space between checkbox and text */
}

/* Make checkbox bigger */
.oip-form .checkbox-group input[type="checkbox"] {
    width: 20px; /* Adjust size */
    height: 20px;
    cursor: pointer;
    flex-shrink: 0; /* Prevent checkbox from shrinking */
    accent-color: #272B5C;
}

/* Ensure label text aligns properly */
.oip-form .checkbox-group label {
    margin-bottom: 0; /* Prevent extra line break */
    color: #272B5C;
    display: inline-block;
    font-family: var(--e-global-typography-9937965-font-family), Sans-serif;
    font-size: var(--e-global-typography-9937965-font-size);
    font-weight: var(--e-global-typography-9937965-font-weight);
    line-height: var(--e-global-typography-9937965-line-height);
}

/* Style for phone note */
.oip-form .phone-note {
    font-size: 12px;
    color: #555; /* Slightly lighter text */
    margin-top: 5px;
    line-height: 1.4;
}


/* Fix for mobile */
@media screen and (max-width: 768px) {
    .oip-form select {
        height: 50px;
    }
}
