/* ===== Global Styles ===== */
:root{
  --primary:#0ea5e9;
  --primary-soft:#38bdf8;
  --dark:#0f172a;
  --dark-soft:#1e293b;
  --light:#f1f5f9;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
}

body {
  margin: 0;
  font-family: 'Orbitron', 'Arial', sans-serif;
  background: linear-gradient(135deg,var(--dark),var(--dark-soft));
  color: #e0e6f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 95%;
  max-width: 600px;
  margin: 50px auto;
}

/* ===== Form ===== */
.sms-form {
  background: linear-gradient(135deg,var(--dark),var(--dark-soft));
  padding: 40px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.1), 0 0 40px rgba(255, 0, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.sms-form h2 {
  text-align: center;
  font-size: 28px;
  color: white;
  margin-bottom: 10px;
}

/* ===== Inputs, Textarea, Select ===== */
.sms-form input,
.sms-form select {
  padding: 16px 18px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #555;
  background: #21263b;
  color: #e0e6f0;
  box-shadow: inset 0 0 8px rgba(0,255,255,0.05);
  transition: all 0.25s ease;
}

.textarea-wrap {
  width: 100%;
  display: flex;
  position: relative;
}

textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  padding-bottom: 30px; 
  resize: none;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #555;
  background: #21263b;
  color: #e0e6f0;
  box-shadow: inset 0 0 8px rgba(0,255,255,0.05);
  transition: all 0.25s ease;
}

.char-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 13px;
  color: #888;
}

.sms-form input:focus,
.sms-form textarea:focus,
.sms-form select:focus {
  outline: none;
  border-color: var(--primary-soft);
  box-shadow: 0 0 10px var(--primary-soft);
}

.tel-wrap {
  display: flex;
  gap: 1em;
}

.acc-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.acc-wraps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.sender-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 5px;
}
.acc-wrap label, .acc-wraps label {
  font-weight: bold;
}
.acc-wrap img {
  width: 30px;
}

.bank-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ===== Labels ===== */
.bank-label,
.checkbox-label {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 5px;
}

.checkbox-label {
    background: #21263b;
    padding: 1em;
    border-radius: 10px;
}

.checkbox-label a {
  text-decoration: none;
  color: #aaa;
  font-weight: bold;
}

/* ===== Submit Button ===== */
.submit-btn {
  padding: 14px;
  font-size: 16px;
  background: linear-gradient(135deg,#0284c7,#38bdf8);
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 10px 8px rgb(33, 40, 66), 0 0 10px #ffffff2c;
}

.submit-btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 10px 8px rgba(61, 70, 105, 0.287), 0 0 10px #ffffff54;
}

span {
  text-align: center;
}

#account {
  font-size: 14px;
  color: #aaa;
  font-weight: bold;
}

/* ===== Account Number ===== */
.account-number {
  display: flex; /* JS-ისთვის რჩება */
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 18px;
  border-radius: 14px;
  background: #21263b;
  border: 1px solid #555;
}

#copyBtn {
  width: 100%;
  padding: 8px 14px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid #363636;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  margin-top: 1em;
}

#copyBtn:hover { 
  border: 1px solid var(--primary-soft);
  box-shadow: 0 10px 8px rgb(33, 40, 66), 0 0 10px #ffffff2c;
}

/* ===== Receipt Upload ===== */
.receipt-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.receipt-preview {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 2px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #aaa;
  background: #21263b;
  box-shadow: 0 10px 8px rgb(33, 40, 66), 0 0 10px #ffffff2c;
}

#receipt { display: none; }

#uploadBtn {
  width: 120px;
  height: 84px;
  padding: 7px 12px;
  font-size: 15px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg,#0284c7,#38bdf8);
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 10px 8px rgb(33, 40, 66), 0 0 10px #ffffff2c;
}

#uploadBtn:hover { 
  box-shadow: 0 10px 8px rgba(61, 70, 105, 0.287), 0 0 10px #ffffff54;
  transform: translateY(-1px);
}

/* sending button animations */
/* Optional: spinning dots animation */
.sending {
  display: inline-block;
  position: relative;
}
.sending::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-radius: 50%;
  background: white;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  0% { opacity: 0; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Button style during sending */
.sending-btn {
  opacity: 0.8;
  cursor: not-allowed;
}

/* ===== Responsive ===== */
@media(max-width:768px){
  .sms-form{padding:25px;}
  .receipt-preview{width:80px;height:80px;}
}

@media(max-width:480px){
  .sms-form{padding:20px;}
  .receipt-preview{width:70px;height:60px;}
  #uploadBtn{height: 60px;}
}


/* ===== Success Message Modal ===== */
.success-message {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
  z-index: 9999;
}

.message-box {
  max-width: 400px;
  padding: 30px 25px;
  background-color: var(--card);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  text-align: center;
  opacity:0;
  transform: translateY(-20px);
  animation: fadeInSlide 0.5s forwards;
  z-index: 10;
  position: relative;
}

.message-box .icon { font-size:50px; margin-bottom:15px; }
.message-box p { font-size:16px; margin-bottom:20px; color:var(--text); }
.back-btn {
  padding: 12px 25px;
  border:none;
  border-radius:10px;
  background-color: var(--primary);
  color: #fff;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}
.back-btn:hover { background-color: var(--primary-soft); transform: scale(1.05); }

#confettiCanvas {
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:5;
}

@keyframes fadeInSlide { to {opacity:1; transform: translateY(0);} }