/*
Theme Name: voleksservis
Theme URI: https://www.voleksservis.com
Author: voleksservis
Author URI: https://www.voleksservis.com
Description: voleksservis
Version: 1.0
Text Domain: voleksservis
*/

/* ==========================================================================
   CONTACT FORM 7
   ========================================================================== */


.luxury-form {
    width: 100%;
    display: block;
}

.luxury-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.luxury-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative !important;
}

.luxury-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}


.luxury-form .input-wrapper {
    position: relative !important; 
    display: block !important;
    width: 100%;
}


.luxury-form .input-wrapper .wpcf7-form-control-wrap {
    display: contents !important;
}

/* 4. Tüm İnput ve Textarea Elemanlarının Orijinal Boyutları */
.luxury-form .input-wrapper input[type="text"],
.luxury-form .input-wrapper input[type="email"],
.luxury-form .input-wrapper input[type="tel"],
.luxury-form .input-wrapper textarea {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    height: 54px !important;
    padding: 0 15px 0 50px !important;
    outline: none;
    box-sizing: border-box !important;
}


.luxury-form .text-area-wrapper textarea {
    height: auto !important;
    min-height: 140px !important;
    padding-top: 15px !important;
}


.luxury-form .input-wrapper i {
    position: absolute !important;
    left: 18px !important;
    top: 28px !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    font-size: 16px !important; 
    line-height: 1 !important;   
    color: #94a3b8;             
    pointer-events: none;       
    margin: 0 !important;
    padding: 0 !important;
}


.luxury-form .text-area-wrapper i {
    top: 20px !important;
    transform: none !important;
}


.luxury-form .btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}


.luxury-form .wpcf7-spinner {
    display: inline-block;
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.luxury-form .wpcf7-not-valid-tip {
position: absolute !important;
    bottom: -22px !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    font-size: 12px !important;
    color: #ef4444 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    z-index: 15 !important;
}

.luxury-form .wpcf7-response-output {
    margin: 25px 0 0 0 !important;
    padding: 15px !important;
    border-radius: 6px !important;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: 2px solid transparent !important;
}


.luxury-form .wpcf7-mail-sent-ok { background-color: #d1e7dd !important; border-color: #badbcc !important; color: #0f5132 !important; }
.luxury-form .wpcf7-validation-errors, .luxury-form .wpcf7-mail-sent-ng { background-color: #f8d7da !important; border-color: #f5c2c7 !important; color: #842029 !important; }

/* Responsive Düzenleme */
@media (max-width: 768px) {
    .luxury-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}


.whatsapp-float {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 999;
  display: flex;
  align-items: center;
  text-decoration: none;
}


.whatsapp-icon {
  background-color: #25d366;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
  

  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.whatsapp-text {
  background-color: #25d366;
  color: white;
  font-weight: 500;
  margin-left: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
  max-width: 0;
  overflow: hidden;
}

.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.1);
  animation: none; 
}

.whatsapp-float:hover .whatsapp-text {
  opacity: 1;
  transform: translateX(0);
  max-width: 300px;
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float .whatsapp-text {
    display: none;
  }
}