.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;
    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);
}

.oip-form button{
    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);
    letter-spacing: var(--e-global-typography-9937965-letter-spacing);
    word-spacing: var(--e-global-typography-9937965-word-spacing);
    margin: auto !important;
    display: block !important;;
}

.oip-form button svg {
  margin-right: 8px; /* or any value you prefer */
  vertical-align: middle; /* optional: aligns icon better with text */
}

.oip-form-submission-message{
    text-align: center;
}

.oip-form-submission-message .success-icon{
    font-size: 80px;
    color: var(--e-global-color-primary);
}

.oip-form-submission-message h2{
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-accent-font-weight);
    line-height: var(--e-global-typography-accent-line-height);
    color: var(--e-global-color-primary);
}

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

.form-row .form-group {
    flex: 1;
    min-width: 150px;
}

/* Disable number input spinners for Chrome, Safari, Edge, Opera */
.oip-form input[type="number"]::-webkit-outer-spin-button,
.oip-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Disable number input spinners for Firefox */
.oip-form input[type="number"] {
  -moz-appearance: textfield;
}

/* Simulator forms are centered*/
.simulator-form {
  text-align: center;
}

.simulator-form label,
.simulator-form input {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.simulator-form input {
  max-width: 200px;
  margin-top: 5px;
}

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

    /* Country code select adjust width */
    .oip-form .country-code {
        width: 45%;
    }
    
    /* Phone number input adjust width*/
    .oip-form .phone-number {
        width: 55%;
    }

    .form-row {
        flex-direction: column;
        gap: 0px;
    }

    /* Center text in inputs only on mobile */
    .oip-form input,
    .oip-form select,
    .oip-form textarea {
        text-align: center;
    }

    /* Center labels except for checkboxes */
    .oip-form label {
        text-align: center;
    }

    .oip-form .checkbox-group label {
        text-align: left;
    }
}
