/* Button */
.open-btn {
    background: white;
    color: #333;
    font-size: 18px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.open-btn:hover {
    background: #ddd;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 50%);
    backdrop-filter: blur(3px) grayscale(1);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

canvas.confetti {
    z-index: 999999 !important;
}

/* Modal Content */
.modal-content {
    background: #ffffff75;
    padding: 15px;
    border-radius: 2rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: absolute;
    /* bottom: 20px; */
    /* left: 20px; */
    /* right: 20px; */
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
}

.ty-content{
    padding: 20px 40px;
}

.modal-title {
    font-family: system-ui;
    font-size: 24px;
    margin: 0px 25px 5px 25px;
}

/* Open Animation */
.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close Icon */
.close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 35px;
    cursor: pointer;
    color: #ffffff70;
}

.close:hover {
    color: #333;
}

/* Form Inputs */

/* Fix Autofill Background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    background-color: transparent !important;
    color: inherit !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.2) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Ensuring Text Color Matches */
input:-webkit-autofill::first-line,
textarea:-webkit-autofill::first-line {
    color: inherit !important;
}


input, textarea {
    width: 100%;
    max-height: 120px;
    padding: 10px 15px;
    margin: 8px 0;
    background: #ffffff80;
    border: 1px solid #888888;
    border-radius: 1.5rem;
    font-size: 15px;
    transition: border 0.3s ease-in-out;
}


/* Placeholder Effect */
input::placeholder, textarea::placeholder {
    color: rgba(41, 41, 57, 0.872); 
    font-style: italic; 
    transition: all 0.3s ease-in-out;
}

/* Focus Effect */
input:focus, textarea:focus {
    border-color: #6a11cb;
    outline: none;
}

/* When Input Has Text */
input:not(:placeholder-shown), textarea:not(:placeholder-shown) {
    border-color: #2575fc;
    font-weight: 500;
}

/* Responsive Form Row */
.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.form-row input {
    flex: 1;
    min-width: 140px;
}


/* Thank You Modal */
.thank-you {
    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.modal.show .thank-you {
    transform: scale(1);
    opacity: 1;
}

.thank-you i {
    font-size: 50px;
    color: #28a745;
    margin-bottom: 10px;
}

/* Snackbar */
#snackbar {
    visibility: hidden;
    background-color: #ffffff85;
    color: #4b2222;
    box-shadow: 3px 3px 3px 0 #80808099;
    border-radius: 1.5rem;
    padding: 10px 22px;
    position: fixed;
    text-align: center;
    justify-self: center;
    width: 90%;
    max-width: 500px;
    right: 20px;
    left: 20px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#snackbar.show {
    visibility: visible;
    opacity: 1;
    top: 20px;
}

/* Submit Button */
.submit-btn {
    display: flex;
    justify-content: center;
    background: #2368e0;
    color: white;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:hover {
    background: #2575fc;
}


/* Loader */
.btn-loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    position: absolute;
    animation: spin 1s infinite linear;
}

.submit-btn.loading {
    color: transparent;
}

.submit-btn.loading .btn-loader {
    display: flex;
    align-self: center;
}