/* RIGHT SIDE SOCIAL ICONS */

.aa-social-right-sidebar {
    position: fixed !important;
    right: 0 !important;
    top: 75% !important;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.aa-social-link {
    width: 56px !important;
    height: 56px !important;
    background: #ffffff !important;
    border-radius: 18px 0 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18) !important;
    transition: all 0.35s ease !important;
    text-decoration: none !important;
}

.aa-social-link img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
}

.aa-social-link:hover {
    width: 66px !important;
    transform: translateX(-8px) !important;
}

.aa-instagram-link {
    border-right: 4px solid #e1306c !important;
}

.aa-facebook-link {
    border-right: 4px solid #1877f2 !important;
}

/* LEFT SIDE ACTION ICONS */

.aa-floating-left-actions {
    position: fixed !important;
    left: 0 !important;
    top: 75% !important;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.aa-action-link {
    width: 58px !important;
    height: 58px !important;
    background: #ffffff !important;
    border-radius: 0 18px 18px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    text-decoration: none !important;
    transition: all 0.35s ease !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18) !important;
    overflow: visible !important;
}

.aa-action-link img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
}

.aa-action-link span {
    position: absolute !important;
    left: 72px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.aa-action-link:hover {
    width: 66px !important;
    transform: translateX(8px) !important;
}

.aa-action-link:hover span {
    opacity: 1 !important;
    visibility: visible !important;
    left: 80px !important;
}

.aa-mail-link {
    border-left: 4px solid #ea4335 !important;
}

.aa-whatsapp-link {
    border-left: 4px solid #25d366 !important;
}

.aa-call-link {
    border-left: 4px solid #0d6efd !important;
}

/* MOBILE RESPONSIVE */

@media only screen and (max-width: 767px) {

    .aa-social-right-sidebar {
        right: 10px !important;
        top: auto !important;
        bottom: 15px !important;
        transform: none !important;
        gap: 8px !important;
    }

    .aa-floating-left-actions {
        left: 10px !important;
        top: auto !important;
        bottom: 15px !important;
        transform: none !important;
        gap: 8px !important;
    }

    .aa-social-link,
    .aa-action-link {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
    }

    .aa-social-link img,
    .aa-action-link img {
        width: 23px !important;
        height: 23px !important;
    }

    .aa-social-link:hover,
    .aa-action-link:hover {
        width: 48px !important;
        transform: scale(1.05) !important;
    }

    .aa-action-link span {
        display: none !important;
    }
}

/* ---------------- Modal Styling ---------------- */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
  animation: fadeInUp 0.5s ease;
}

.modal-header {
  background: linear-gradient(45deg, #fba661, #70f0fc); /* Email */
  color: white;
}

#whatsappModal .modal-header {
  background: linear-gradient(45deg, #d6a241, #128C7E); /* WhatsApp */
}

.modal-title {
  font-weight: 600;
}

.modal-body button {
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  padding: 10px;
   background: #4285f4;
   color: black;
}

.modal-body button:hover {
  transform: translateY(-2px);
}

/* Fade Animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------------- Form Styling ---------------- */
.modal-body .form-control,
.modal-body .custom-select,
.modal-body .custom-file .custom-file-label {
  width: 100%;
  border-radius: .25rem;
  border: 1px solid #ced4da;
  padding: .375rem .75rem;
  font-size: 1rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.modal-body .form-control:focus,
.modal-body .custom-select:focus,
.modal-body .custom-file .custom-file-label:focus {
  border-color: #e4ebea;
  box-shadow: 0 0 0 .2rem rgba(135, 166, 199, 0.25);
  outline: none;
}

.modal-body .form-control.is-valid,
.modal-body .custom-select.is-valid {
  border-color: #eebd4b;
  background-image: url("data:image/svg+xml,..."); /* Valid check icon */
}

.modal-body .form-control.is-invalid,
.modal-body .custom-select.is-invalid {
  border-color: #ec9c52;
  background-image: url("data:image/svg+xml,..."); /* Invalid cross icon */
}

.modal-body textarea.form-control {
  resize: vertical;
}

/* Custom file input */
.modal-body .custom-file {
  position: relative;
  width: 100%;
}

.modal-body .custom-file-input {
  opacity: 0;
  width: 100%;
  z-index: 2;
}

.modal-body .custom-file-label {
  position: absolute;
  top: 0;
  left: 0;
  height: calc(1.5em + .75rem + 2px);
  padding: .375rem .75rem;
  line-height: 1.5;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: .25rem;
}

/* Select inside modal */
.modal-body .custom-select {
  appearance: none;
  background: url("data:image/svg+xml,...") no-repeat right .75rem center/8px 10px #fff;
  border: 1px solid #ced4da;
  border-radius: .25rem;
}

/* Switch, checkbox, radio (custom-control) inside modal */
.modal-body .custom-control-label:before {
  border-radius: .25rem;
  border: 1px solid #adb5bd;
  background-color: #fff;
  transition: all .15s ease-in-out;
}

.modal-body .custom-control-input:checked ~ .custom-control-label:before {
  background-color: #f3f1ef;
  border-color: #eef0f2;
}

.modal-body .form-group {
  margin-bottom: 1rem;
}
.modal-body .mb-3 {
  margin-bottom: 1rem !important;
}

.loader-circle {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
