.spectacledcoder-contact {
    margin: auto;
    width: 70%;
    display: flex;
    align-items: end;
    justify-content: end;
}

.spectacledcoder-form {
    margin: auto;
    width: 90%;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    z-index: 12;
}

.spectacledcoder-input {
    margin: auto;
    width: 90%;
    height: 50px;
    display: flex;
}

.spectacledcoder-input-secondary {
    transition: all 0.5s ease-in-out;
    margin: auto;
    width: 100%;
    height: 50px;
    display: flex;
}

.spectacledcoder-input .d-label {
    position: absolute;
    margin: auto;
    color: rgb(255, 255, 255);
    font-size: small;
    border-radius: 10px;
    margin-left: 20px;
    margin-top: 17px;
    font-weight: 600;
}

.spectacledcoder-input-secondary .d-label {
    position: absolute;
    margin: auto;
    color: var(--quaternary-color);
    font-size: small;
    border-radius: 10px;
    margin-left: 20px;
    margin-top: 17px;
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}

.spectacledcoder-input input {
    position: relative;
    margin: auto;
    width: 100%;
    height: 50px;
    outline: none;
    border: none;
    border: 1.3px solid rgb(255, 255, 255);
    border-radius: 10px;
    color: #000000;
    padding-left: 20px;
    background-color: rgba(255, 255, 255, 0.3); /* White with 0.5 transparency */
    z-index: 2500;
}

/* Placeholder styling */
.spectacledcoder-input input::placeholder {
    color: var(--primary-color); /* Use your primary color variable */
    opacity: 1; /* Ensure placeholder is fully visible */
    z-index: 2500;
}

.spectacledcoder-input-secondary input {
    position: relative;
    margin: auto;
    width: 100%;
    height: 50px;
    outline: none;
    border: none;
    border: 1.3px solid var(--quaternary-color);
    border-radius: 10px;
    color: #000000;
    padding-left: 20px;
    background-color: rgba(255, 255, 255, 0.3); /* White with 0.5 transparency */
    z-index: 2500;
    transition: all 0.4s ease-in-out;
}

/* Placeholder styling */
.spectacledcoder-input-secondary input::placeholder {
    color: var(--primary-color); /* Use your primary color variable */
    opacity: 1; /* Ensure placeholder is fully visible */
    z-index: 2500;
}

/* Mobile input wrapper with country code dropdown */
.mobile-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    position: relative;
}

.mobile-input-wrapper #cta-mobile-country {
    flex: 0 0 auto;
    min-width: 140px;
    height: 50px;
    padding: 10px 12px;
    border: 1.3px solid var(--quaternary-color);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    outline: none;
    transition: all 0.4s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-input-wrapper #cta-mobile-country:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.5);
}

/* Input container wrapper for label positioning */
.mobile-input-wrapper > div {
    position: relative;
    flex: 1;
    min-width: 0;
}

.mobile-input-wrapper > div .d-label {
    position: absolute;
    margin: auto;
    color: var(--quaternary-color);
    font-size: small;
    border-radius: 10px;
    margin-left: 20px;
    margin-top: 17px;
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}

.mobile-input-wrapper #cta-mobile {
    width: 100%;
    position: relative;
}

.spectacledcoder-input-dropdown .dropdown-label {
    position: absolute;
    margin: auto;
    color: var(--quaternary-color);
    font-size: small;
    border-radius: 10px;
    margin-left: 20px;
    margin-top: 17px;
    font-weight: 600;
}

/* Dropdown Container */
.spectacledcoder-input-dropdown select{
    position: relative;
    margin: auto;
    width: 100%;
    height: 50px;
    outline: none;
    border: none;
    border: 1.3px solid var(--quaternary-color);
    border-radius: 10px;
    color: #000000;
    padding-left: 20px;
    background-color: rgba(255, 255, 255, 0.3); /* White with 0.5 transparency */
    z-index: 2500;
    font-size: 14px;
}

/* Dropdown Label Styling */
.dropdown-label {
    display: block; /* Ensure the label is on its own line */
    color: rgb(255, 255, 255); /* Match your label color */
    padding:5px 15px;
    border-radius: 10px;
    background-color: var(--secondary-color);
    font-size: small; /* Match your label font size */
    font-weight: 600; /* Match your label font weight */
    position: absolute;
    margin:-18px 0px 0px 18px;
    z-index: 1000;
}
/* Dropdown Styling */
.spectacledcoder-select {
    position: relative;
    width: 100%;
    height: 50px;
    outline: none;
    border: none;
    border: 1.3px solid rgb(255, 255, 255);
    border-radius: 10px;
    color: #000000;
    padding-left: 20px;
    background-color: rgba(255, 255, 255, 0.5); /* White with 0.5 transparency */
    font-size: 1rem;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none; /* Remove default arrow for Safari */
    -moz-appearance: none; /* Remove default arrow for Firefox */
    cursor: pointer;
}

/* Custom Dropdown Arrow */
.spectacledcoder-select-wrapper {
    position: relative;
    width: 100%;
}

.spectacledcoder-select-wrapper::after {
    content: "▼"; /* Custom dropdown arrow */
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none; /* Ensure the arrow doesn't interfere with clicks */
    color: var(--primary-color); /* Match your primary color */
    font-size: 0.8rem;
}

/* Focus State */
.spectacledcoder-select:focus {
    border-color: var(--primary-color); /* Highlight border on focus */
}

/* Placeholder Text */
.spectacledcoder-select option[disabled] {
    color: #888; /* Gray color for placeholder text */
}

@media only screen and (max-width: 1000px) {
    .spectacledcoder-contact {
        margin: auto;
        width: 100%;
        display: flex;
        align-items: start;
        justify-content: start;
        z-index: 1000;
    }

    .spectacledcoder-form {
        margin: auto;
        width: 100%;
        height: 90%;
        border-radius: 40px;
        display: flex;
        flex-direction: column;
        z-index: 12;
    }

    .spectacledcoder-input {
        margin: auto;
        width: 100%;
        height: 50px;
        display: flex;
    }

    .spectacledcoder-input .d-label {
        position: absolute;
        margin: auto;
        color: rgb(255, 255, 255);
        font-size: small;
        border-radius: 10px;
        margin-left: 20px;
        margin-top: 17px;
        font-weight: 600;
    }

    .spectacledcoder-input input {
        position: relative;
        margin: auto;
        width: 100%;
        height: 50px;
        outline: none;
        border: none;
        border: 1.3px solid rgb(255, 255, 255);
        border-radius: 10px;
        color: #000000;
        padding-left: 20px;
        background-color: rgba(255, 255, 255, 0.5); /* White with 0.5 transparency */
        z-index: 2500;
    }

    /* Placeholder styling for mobile */
    .spectacledcoder-input input::placeholder {
        color: var(--primary-color); /* Use your primary color variable */
        opacity: 1; /* Ensure placeholder is fully visible */
        z-index: 2500;
    }

    /* Dropdown Container */
    .spectacledcoder-input-dropdown select {
        position: relative;
        margin: auto;
        width: 100%;
        height: 50px;
        outline: none;
        border: none;
        border: 1.3px solid var(--quaternary-color);
        border-radius: 10px;
        color: #000000;
        padding-left: 20px;
        background-color: rgba(255, 255, 255, 0.3); /* White with 0.5 transparency */
        z-index: 2500;
        font-size: 14px;
    }

    /* Dropdown Label Styling */
    .dropdown-label {
        display: block; /* Ensure the label is on its own line */
        color: rgb(255, 255, 255); /* Match your label color */
        padding:5px 15px;
        border-radius: 10px;
        background-color: var(--secondary-color);
        font-size: small; /* Match your label font size */
        font-weight: 600; /* Match your label font weight */
        position: absolute;
        margin:-18px 0px 0px 18px;
        z-index: 1000;
    }

    /* Dropdown Styling */
    .spectacledcoder-select {
        position: relative;
        width: 100%;
        height: 50px;
        outline: none;
        border: none;
        border: 1.3px solid rgb(255, 255, 255);
        border-radius: 10px;
        color: #000000;
        padding-left: 20px;
        background-color: rgba(255, 255, 255, 0.5); /* White with 0.5 transparency */
        font-size: 1rem;
        appearance: none; /* Remove default arrow */
        -webkit-appearance: none; /* Remove default arrow for Safari */
        -moz-appearance: none; /* Remove default arrow for Firefox */
        cursor: pointer;
    }

    /* Custom Dropdown Arrow */
    .spectacledcoder-select-wrapper {
        position: relative;
        width: 100%;
    }

    .spectacledcoder-select-wrapper::after {
        content: "▼"; /* Custom dropdown arrow */
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        pointer-events: none; /* Ensure the arrow doesn't interfere with clicks */
        color: var(--primary-color); /* Match your primary color */
        font-size: 0.8rem;
    }

    /* Focus State */
    .spectacledcoder-select:focus {
        border-color: var(--primary-color); /* Highlight border on focus */
    }

    /* Placeholder Text */
    .spectacledcoder-select option[disabled] {
        color: #888; /* Gray color for placeholder text */
    }
}