.grecaptcha-badge {
    position: fixed !important;
    bottom: 10px;
    right: 10px;
    z-index: 9999 !important; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* prevents accidental clicking when hidden */
}

.show-recaptcha-badge .grecaptcha-badge {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.show-always .grecaptcha-badge {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/*main top button*/
.top-button {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 25px;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 1em;
    width: fit-content;
    transition: opacity 0.5s ease, transform 0.3s;
}
.top-button:hover {
    transform: scale(1.1);
}

.top-button.hide {
    opacity: 0;
    pointer-events: none;
}

/* inquiry container*/
.floating-container {
    align-self: center;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    left: -150%;
    transform: none;
    background: #121212;
    background-image: linear-gradient(to top, #121212, transparent);
    bottom: 0px;
    z-index: 999;
    transition: left 0.8s ease;
}

.floating-container.active {
    left: 0;
}

.floating-container.stuck-to-footer {
    position: absolute !important;
    bottom: auto;
    top: unset;
}

.floating-container p {
    margin-left: 3%;
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #121212;
    border-radius: 25px;
    padding: 10px 20px 10px 20px;
}

@media (max-width: 768px) {
    .floating-container p {
        font-size: 1rem;
    }
}

/* CONTACT form-inquiry basic */
.contact-btn {
    padding: 10px 20px;
    margin-right: 5%;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-radius: 25px;
}

.overlay-contact {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none
}

.overlay-contact.show {
    opacity: 1;
    pointer-events: auto;
}

.form-text {
    text-align: left;
    justify-content: start;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #ffffff11;
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%);
    z-index: 1003;
    width: 400px;
    border-radius: 25px;
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}

.field { 
    width: 95%; 
    display: block; 
}

.toggle-row { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.toggle-label { 
    font-weight: 500; 
    user-select: none; 
}

.message-slot {
    position: relative;
    width: 100%;
    transition: max-height 0.6s ease;
    max-height: 42px;
}

.message-slot.open { max-height: 520px; }

.slot-header {
    position: absolute; 
    left: 0; 
    top: 0; 
    right: 0; 
    height: 30px;
    display: flex; 
    align-items: center; 
    gap: 10px;
    transition: opacity 0.4s ease;
}

.slot-header .toggle-label { font-weight: 500; user-select: none; }
.message-slot.open .slot-header {
    opacity: 0; 
    pointer-events: none;
}

.message-wrap {
    position: relative;
    padding-top: 0; 
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.message-slot.open .message-wrap {
    opacity: 1; 
    visibility: visible;
}

textarea[name="message"] {
    width: 94%;
    min-height: 130px;
    padding: 10px 12px;
    border-radius: 25px;
    border: none;
    font-size: 1em;
    resize: none;
    font: inherit;
}

.contact-form.show {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.contact-form.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-form input {
    border-radius: 25px;
    border: none;
    padding: 10px;
    font-size: 1em;
    width: 90%;
}

.contact-form-button {
    margin-bottom: 10px;
    width: 90%;
    background: #cccccc70;
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 25px;
    transition: transform 2s ;
}

.contact-form-button:hover {
    animation: runner 2s ease infinite;
}

@keyframes runner {
    5% { transform: translateX(1px);}
    20% {  transform: translateX(-3px);}
}

.close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-btn:hover {
    animation: wiggle 0.3s ease infinite;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

.container-form {
    max-width: 600px;
    min-width: 600px;
    margin: auto;
    background: rgba(0, 0, 0, 0.2);
    
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 25px;
}

.container-form img {
    margin-top: -2rem;
    width: 100%;
}
.container-form h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
}
.form-group {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    resize: none;
}
.form-group label {
    width: 150px;
    font-weight: bold;
    margin-right: 1rem;
    color: white;
}

select, input, textarea {
    flex: 1;
    padding: 0.5rem 1rem 0.5rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

textarea {
    resize: vertical;
    font-family: Arial, Helvetica, sans-serif;
}

.button {
    font-size: 1.05rem;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    margin-top: 1rem;
    padding: 0.75rem;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    align-content: center;
    text-align: center;
    border-radius: 25px;
    display: block;
    transition: color 0.3s, transform 0.3s;
}

/* main forms */
.serv {
    font-size: 1.05rem;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    margin-top: 1rem;
    padding: 0.75rem;
    width: 95%;
    cursor: pointer;
    text-decoration: none;
    align-content: center;
    text-align: center;
    border-radius: 25px;
    display: block;
    transition: color 0.3s, background 0.3s;
}

.serv:hover {
    color: black;
    background: white;
}

.button:hover {
    transform: scale(1.05);
}

.quantum-bg {
    background-image: url("/media/contact2-b-pai.png");
    image-rendering: optimizeQuality;
    background-repeat: no-repeat;
    background-size: cover;
}

.contact-bg {
    background-image: url("/media/contact1-b-pai.png");
    background-repeat: no-repeat;
    image-rendering: optimizeQuality;
    background-size: cover;
}

@media (max-width: 768px) {
    .container-form {
        min-width: 85%;
        max-width: 90%;
        padding: 20px;
        margin-top: 80px;
        box-shadow: none;
    }
}

/*TOggle in the form and UI/UX with the slider*/
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    display: inline-block;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 30px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* success message check*/
.success-message {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.checkmark-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.checkmark {
    width: 100%;
    height: 100%;
    stroke: #4caf50;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: rotate-circle 0.6s ease-in-out forwards;
    overflow: visible;
}

.checkmark-circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    stroke: #ccc;
    animation: draw-circle 0.3s ease-out forwards;
}

.checkmark-check {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: draw-check 0.3s ease-out 0.6 forwards;
}

.success-text {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0;
    animation: fade-in 0.6s ease 1.5s forwards;
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
        stroke: #4caf50;
    }
}

@keyframes draw-check {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes rotate-circle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/*device specifics*/
@media (max-width: 768px) {
    .contact-form {
        width: 70%;
        max-width: 400px;
    }

    .top-button {
        margin-top: 0px;
    }

}