/* ==========================================================================
   footer.css — contact form, site footer, floating chat widget, $9 banner.
   Extracted from inc/tailpage.php. !important removed (global reset is gone).
   ========================================================================== */


/* core wrapper */
.tail-form      {background:#13286b;color:#fff;padding:60px 20px; max-width: 1200px; margin: 0 auto;}
.tail-form h2   {margin:0 0 40px;font-size:42px;text-align:center;}
.tail-form label{display:block;margin:20px 0 6px;font-weight:600;}

.tail-form input,
.tail-form textarea,
.tail-form select{
    width:100%;max-width:550px;padding:14px 16px;border-radius:6px;
    border:2px solid #eaeaea;font-size:16px;box-sizing:border-box;
}
.tail-form textarea{min-height:120px;resize:vertical;}
.tail-form .row {display:flex;flex-wrap:wrap;gap:30px; max-width: 1130px; margin: 0 auto;}
.tail-form .row > div{ flex: 1 1 calc(50% - 15px);  box-sizing: border-box;}
.tail-form .note{font-size:14px;opacity:.8;margin-top:4px;}

.tail-form button{
    margin-top:30px;padding:16px 40px;border:none;border-radius:6px;
    background:#f26522;color:#fff;font-size:20px;cursor:pointer;
}
.tail-form button:hover{background:#d85616;}

.form-msg{margin-top:20px;font-size:18px;text-align:center;}
.form-msg.success{color:#9ef59e;}
.form-msg.error  {color:#ff9494;}

@media (max-width:600px){
  .tail-form h2{font-size:32px}
  .tail-form .row > div {
    flex: 1 1 100%; 
  }
}

.tail-form .form-heading {
  text-align: center;
  margin-bottom: 0px;
  margin-top: -20px;
}

.tail-form .form-heading .tagline {
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 46px;
  color: #66d0f0;
  margin: 0;
  line-height: 1.2;
  font-weight:700;
}

.tail-form .form-heading .mainline {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 5px 0 0;
  line-height: 1.1;
}


.tail-form-fullwidth-textarea {
  width: 100%;
  display: block;
  margin-top: 25px;
  max-width: 1130px; 
  margin-left: auto;
  margin-right: auto;
}

.tail-form-fullwidth-textarea textarea {
  width: 100%;
  min-height: 180px;
  font-size: 16px;
  padding: 14px;
  border-radius: 8px;
  border: 2px solid #eaeaea;
  resize: vertical;
  box-sizing: border-box;
  max-width: 100%;
}


.tail-form-submit-center {
  width: 100%;
  text-align: center;
  margin-top: 5px;
}

.tail-form-submit-btn {
  background: #f26522;
  color: #fff;
  font-size: 20px;
  padding: 16px 60px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tail-form-submit-btn:hover {
  background: #d8551a;
}


/* ===== GreenTop footer ===== */
.gth-footer          {background:#ffffff;color:#13286b;text-align:center;padding:50px 20px;line-height:1.6;font-size:18px;font-family:Arial,Helvetica,sans-serif;}
.gth-footer img      {display:block;margin:0 auto;}

.gth-flex            {display:flex;flex-wrap:wrap;justify-content:center;gap:40px;margin:40px 0;}
.gth-card            {flex:1 1 260px;max-width:300px;}

.gth-phone           {font-size:26px;font-weight:700;margin-top:8px;color:#d26522;}
.gth-phone a		 { color:#d26522; }
.gth-phonee			 {font-size:26px;font-weight:700;margin-top:8px;color:#f21512;}
.gth-phonee a 		 { color:#f21512; }
.gth-address         {white-space:pre-line;}               /* preserve line breaks */

.gth-license         {font-size:20px;font-weight:600;margin:30px 0 10px;}
.gth-hearts{
  display:flex;          /* place items on one line                   */
  justify-content:center;/* center the flex row within the container  */
  align-items:center;    /* vertical centering                        */
  gap:10px;              /* space between the two hearts              */
  margin:16px 0;         /* top / bottom spacing                      */
}

.gth-hearts img{
  width:48px;
  height:auto;
  margin:0;                /* kill stray margins */
  float:none;              /* in case something floated them */
}

.gth-social          {display:flex;flex-wrap:wrap;gap:18px;justify-content:center;margin:30px 0;}
.gth-social a img    {width:48px;height:48px;object-fit:contain;border-radius:8px;}

.gth-legal           {font-size:14px;color:#333;margin-top:40px;line-height:1.4; font-weight:700;}
.gth-legal a         {color:#13286b;text-decoration:none;}
.gth-legal a:hover   {text-decoration:underline;}

@media (max-width:767px){
  .gth-phone{font-size:22px;}
}


/* clip anything that slides in from the right */
.gth-truck-wrap{
  width:100%;
  overflow:hidden;
}

.gth-truck{
  max-width:320px;
  margin:0 auto;
  display:block;
  opacity:0;
  transform:translateX(120%);   /* a bit less than 150% */
}

.gth-truck.in-view {
  animation: truck-slide 1.2s cubic-bezier(.15,.85,.45,1) forwards;
}

/* slide-in animation when class .in-view is added */
@keyframes truck-slide{
  from{transform:translateX(150%); opacity:0;}
  to  {transform:translateX(0);    opacity:1;}
}


/* ─── Heart pulse cycle (4 s loop) ─── */
@keyframes heart-cycle-1 {
  0%   {transform: scale(1);}
  50%  {transform: scale(1);}                   /* wait while other heart pulses */
  62.5%{transform: scale(1.35);}                /* pulse up (0.5 s) */
  75%  {transform: scale(1);}
  100% {transform: scale(1);}
}

@keyframes heart-cycle-2 {
  0%   {transform: scale(1);}
  12.5%{transform: scale(1.35);}                /* pulse first second */
  25%  {transform: scale(1);}
  100% {transform: scale(1);}                   /* rest of the loop   */
}

.gth-heart-ukr,
.gth-heart-us {
  width: 48px;
  height: auto;
  display: block;
}

.gth-heart-ukr { animation: heart-cycle-2 4s infinite ease-in-out; }
.gth-heart-us  { animation: heart-cycle-1 4s infinite ease-in-out; }


.form-msg {
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 6px;
    text-align: center;
    display: none;
    font-weight: bold;
}

.form-msg.error {
    display: block;
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.form-msg.success {
    display: block;
    background: rgba(0, 128, 0, 0.1);
    color: #4ecdc4;
    border: 2px solid #4ecdc4;
}



input.error, select.error, textarea.error {
    border-color: #ff6b6b;
}



/* Block Click Month */

.gt-banner-system {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 360px;
    max-width: calc(100vw - 110px);
    z-index: 999999;
    pointer-events: none;
}

.gt-slide-panel {
    position: relative;
    width: 100%;
    transform: translateY(calc(100% + 40px));
    opacity: 1;
    pointer-events: auto;
    transition: transform 1s ease;
}

.gt-slide-panel.open {
    transform: translateY(0);
}

.gt-slide-card {
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
    padding: 15px;
    overflow: hidden;
}

.gt-panel-content {
    display: block;
    cursor: pointer;
    line-height: 0;
}

.gt-panel-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 0;
}

.gt-panel-actions {
    position: absolute;
    top: -42px;
    left: 4px;
    display: flex;
    gap: 8px;
    z-index: 30;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.gt-panel-actions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.gt-panel-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid #0E1D84;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    color: #0E1D84;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
    padding: 0;
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.gt-panel-btn:hover {
    transform: scale(1.05);
    color: #E55A2E;
    border-color: #E55A2E;
    background: #ffffff;
}

.gt-panel-btn-collapse {
    font-size: 22px;
    padding-bottom: 2px;
}

.gt-panel-btn-close {
    font-size: 20px;
}

.gt-minibar {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 360px;
    max-width: calc(100vw - 110px);
    z-index: 1000000;
    transform: translateY(calc(100% + 30px));
    pointer-events: auto;
    transition: transform 0.6s ease;
}

.gt-minibar.show {
    transform: translateY(0);
}

.gt-minibar-card {
    position: relative;
    min-height: 56px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
    padding: 14px 18px;
    display: flex;
    align-items: center;
}

.gt-minibar-text {
    color: #0E1D84;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    padding-right: 8px;
}

.gt-minibar-actions {
    position: absolute;
    top: -42px;
    left: 4px;
    display: flex;
    gap: 8px;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.gt-minibar-actions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.gt-minibar-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid #0E1D84;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    color: #0E1D84;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
    padding: 0;
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.gt-minibar-btn:hover {
    transform: scale(1.05);
    color: #E55A2E;
    border-color: #E55A2E;
    background: #ffffff;
}

.gt-minibar-btn-expand {
    font-size: 17px;
}

.gt-minibar-btn-close {
    font-size: 20px;
}

@media (max-width: 767px) {
    .gt-banner-system,
    .gt-minibar {
        left: 12px;
        bottom: 12px;
        width: 310px; /* Reduced width by 10px */
        max-width: calc(100vw - 24px);
    }

    .gt-panel-actions,
    .gt-minibar-actions {
        top: -38px;
        left: 3px;
        gap: 7px;
    }

    .gt-panel-btn,
    .gt-minibar-btn {
        width: 32px;
        height: 32px;
    }

    .gt-minibar-text {
        font-size: 15px;
    }
}


/* ---- Floating chat widget (from chat-inc.php) ---- */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2, #2c3e50);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    animation: pulse 10s infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: #f5f7fa;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: none;
    overflow: hidden;
    border: 2px solid #ff6600;
}

.chat-header {
    background: #f5f7fa;
    color: #0066cc;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e6ef;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0066cc;
}

.close-chat {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-chat:hover {
    color: #ff6600;
}

.chat-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d9e6;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    background: white;
    color: #333;
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.phone-group {
    display: flex;
    align-items: center;
}

.phone-prefix {
    padding: 12px 12px;
    background: #f0f4f9;
    border: 1px solid #d1d9e6;
    border-right: none;
    border-radius: 5px 0 0 5px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    box-sizing: border-box;
}

.phone-group input {
    border-radius: 0 5px 5px 0;
    border-left: none;
    flex: 1;
    min-width: 0;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6600, #ff9933);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #e55c00, #e58a2e);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Стили для сообщений */
.chat-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.chat-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.chat-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.chat-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

@keyframes pulse {
    0%, 90% {
        transform: scale(1);
    }
    95% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .chat-container {
        width: 280px;
        right: 10px;
    }
    
    .floating-chat {
        right: 20px;
        bottom: 20px;
    }
}