/* ===== Sticky Form ===== */
.sticky-form {
    position: fixed;
    width: 45px;
    top: 40%;
    transition: all 0.3s linear;
    z-index: 999;
}
.toggle-btn {
    position: absolute;
    top: -45px;
    left: 0;
    background-color: #232322;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 0 10px 0 0;
    z-index: 1000;
}
.toggle-btn i {
    color: #fff;
}
.sticky-form ul {
    padding-left: 0;
}
.sticky-form li {
    height: 45px;
    position: relative;
}
.sticky-form li a {
    color: #fff;
    display: block;
    height: 100%;
    width: 100%;
    line-height: 45px;
    padding-left: 25%;
    transition: all 0.3s linear;
}
.sticky-form li:nth-child(1) a { background: #cd2034; }
.sticky-form li:nth-child(2) a { background: #01cc69; }
.sticky-form li:nth-child(3) a { background: #2867B2; border-radius: 0 0 10px 0; }
.sticky-form li a i {
    position: absolute;
    top: 13px;
    left: 12px;
    font-size: 17px;
}
.sticky-form li a:hover {
    min-width: 200px !important;
    border-radius: 0 10px 10px 0 !important;
}
.sticky-form li a span {
    display: none;
    font-weight: 400;
    letter-spacing: 1px;
}
.sticky-form li:hover a span {
    display: block;
    padding-left: 30%;
}

/* Initial state: buttons visible */
.sticky-form ul {
    transition: transform 0.4s ease;
}

/* Closed state: buttons slide inside */
.sticky-form.closed ul {
    transform: translateX(-100%); /* adjust -100% as needed */
}

/* Arrow rotation when closed */
.sticky-form.closed .toggle-btn i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}


/* ===== Modal Backdrop ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

/* ===== Container ===== */
.modal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* ===== Modal Box ===== */
.modal-box {
  display: flex;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 10px 45px rgba(0,0,0,0.3);
  position: relative;
  color: #fff;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Image Side ===== */
.modal-image {
  flex: 1;
  /* background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e') center/cover no-repeat; */
}

/* ===== Form Side ===== */
.modal-body {
  flex: 1.2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(25px);
}

.modal-body h3 {
  text-align: center;
  color: #f3f3f3;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

/* ===== Close Button ===== */
.close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease;
}
.close:hover { transform: scale(1.2); }

/* ===== Floating Form ===== */
#floatingForm {
  width: 100%;
  max-width: 400px;
  margin: auto;
}
.form-group {
  position: relative;
  margin-bottom: 22px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 15px;
  padding: 10px 0;
  transition: all 0.3s ease;
}
.form-group label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  pointer-events: none;
  transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #00bcd4;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
  top: -8px;
  font-size: 12px;
  color: #00bcd4;
}

/* Select arrow */
.form-group select {
  appearance: none;
  background: transparent;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="22" viewBox="0 0 24 24" width="22" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 25px;
  cursor: pointer;
}

/* ===== Button ===== */
.modal-body button {
  width: 100%;
  background: linear-gradient(135deg, #141a46, #00bcd4);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.modal-body button:hover {
  background: linear-gradient(135deg, #00bcd4, #141a46);
}

/* ===== Responsive ===== */
@media (max-width: 930px) {
  .modal-box { flex-direction: column; width: 90%; }
  .modal-image { height: 180px; }
  .modal-body { padding: 30px 25px; }
}
@media (max-width: 480px) {
  .modal-body { padding: 25px 20px; }
  .modal-body h3 { font-size: 20px; }
}

.sticky-error-message {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 5px;
    min-height: 18px;
}

#formMessage {
    padding: 12px 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* ===== Modal Backdrop ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

/* ===== Container ===== */
.modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* ===== Modal Box ===== */
.modal-box {
    display: flex;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.3);
    position: relative;
    color: #fff;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Image Side ===== */
.modal-image {
    flex: 1;
    /* background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e') center/cover no-repeat; */
}

/* ===== Form Side ===== */
.modal-body {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
}

.modal-body h3 {
    text-align: center;
    color: #f3f3f3;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* ===== Close Button ===== */
.close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s ease;
    z-index: 1;
}

.close:hover {
    transform: scale(1.2);
}

/* ===== Floating Form ===== */
#floatingForm {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 15px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #00bcd4;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label,
.form-group select:focus+label,
.form-group select:not([value=""])+label {
    top: -8px;
    font-size: 12px;
    color: #00bcd4;
}

/* Select arrow */
.form-group select {
    appearance: none;
    background: transparent;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="22" viewBox="0 0 24 24" width="22" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 25px;
    cursor: pointer;
}

/* ===== Button ===== */
.modal-body button {
    width: 100%;
    background: linear-gradient(135deg, #141a46, #00bcd4);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.modal-body button:hover {
    background: linear-gradient(135deg, #00bcd4, #141a46);
}

/* ===== Responsive ===== */
@media (max-width: 930px) {
    .modal-box {
        flex-direction: column;
        width: 90%;
    }

    .modal-image {
        height: 180px;
    }

    .modal-body {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 25px 20px;
    }

    .modal-body h3 {
        font-size: 20px;
    }
}

/* ===== Select Options Background ===== */
.form-group select option {
    background: #fff;
    color: #000;
}

/* ===== Error Messages ===== */
.error {
    color: #ff4d4d;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* ===== Form Message Box ===== */
#formMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}