<?php
    if(isset($_COOKIE['cabinet'])){
      header( "refresh:2;url=".$_COOKIE['cabinet'] ); 
    }
?>

<!DOCTYPE html>
<html lang="ru">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>THANK YOU!</title>
  <link rel="shortcut icon" href="assets/img/favicon.png" type="image/x-icon">
  <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Share+Tech+Mono&display=swap"
    rel="stylesheet" />
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      height: 100vh;
      background: black;
      color: white;
      font-family: "Share Tech Mono", monospace;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      backdrop-filter: blur(4px);
    }

    .container {
      background: rgba(0, 0, 0, 0.65);
      border: 2px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 5vw;
      text-align: center;
      width: 90%;
      max-width: 600px;
      backdrop-filter: blur(10px);
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
      animation: glitchIn 1.5s ease-in-out;
    }

    @keyframes glitchIn {
      0% {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
      }

      40% {
        opacity: 1;
        transform: translateY(-10px) scale(1.01);
      }

      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    h1 {
      font-family: "Orbitron", sans-serif;
      font-size: clamp(2em, 5vw, 3em);
      margin-bottom: 20px;
      position: relative;
      color: #00ffff;
      text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
      overflow: hidden;
      line-height: 1;
    }

    p {
      font-size: clamp(1em, 2.5vw, 1.2em);
      margin-bottom: 40px;
      line-height: 1.6;
      color: #cccccc;
    }

    .countdown {
      font-size: clamp(1em, 2.5vw, 1.3em);
      font-family: "Orbitron", sans-serif;
      color: #0ff;
      background-color: rgba(255, 255, 255, 0.05);
      padding: 10px 20px;
      border-radius: 10px;
      display: inline-block;
      border: 1px solid #0ff;
      box-shadow: 0 0 10px #0ff33f;
    }

    dotlottie-player {
      display: block;
      margin: 0 auto 30px auto;
    }

    @media (max-width: 500px) {
      dotlottie-player {
        width: 200px !important;
        height: 200px !important;
      }
    }
  </style>
</head>

<body>
    <div class="container">
    <dotlottie-player src="https://lottie.host/5af99bf6-3ad3-482e-97a5-24fa47863989/qVM2ZOrV0B.lottie"
      background="transparent" speed="1" style="width: 300px; height: 300px" loop autoplay>
    </dotlottie-player>
<h1>THANK YOU</h1>
<p>
  We have received your request.<br />
  One of our specialists is already reviewing your submission and will contact you soon to assist you with the next steps.<br />
  We sincerely appreciate your interest — please expect a response within the next 24 hours.
</p>

    <div class="countdown" id="countdown">Remaining time: 24:00:00</div>
  </div>

  <script type="module" src="https://unpkg.com/@dotlottie/player-component@2.7.12/dist/dotlottie-player.mjs"></script>
  <script>
    // Countdown timer from 24 hours
    const countdownElement = document.getElementById("countdown");
    let remainingSeconds = 86400; // 24 * 60 * 60

    function updateCountdown() {
      const hours = String(Math.floor(remainingSeconds / 3600)).padStart(
        2,
        "0"
      );
      const minutes = String(
        Math.floor((remainingSeconds % 3600) / 60)
      ).padStart(2, "0");
      const seconds = String(remainingSeconds % 60).padStart(2, "0");
      countdownElement.textContent = `Remaining time: ${hours}:${minutes}:${seconds}`;

      if (remainingSeconds > 0) {
        remainingSeconds--;
        setTimeout(updateCountdown, 1000);
      }
    }

    updateCountdown();
  </script>
</body>

</html>