body {
  margin: 0;
  padding: 0;
  font-family: "Rubik", sans-serif;
}
* {
  box-sizing: border-box;
}
p {
  color: #fff;
}
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}
header {
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0 !important;
}
.logo img {
  max-width: 180px;
  width: 100%;
}
.links a {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  line-height: 24px;
  padding: 10px 15px;
  white-space: nowrap;
  text-decoration: none;
}
.links :hover {
  color: rgb(0, 30, 255);
}
.imgSection {
  background: #ffc700;
  width: 100%;
  height: auto;
  text-align: center;
  padding: 54px 0;
}
.textSection {
  margin-top: 54px;
  margin-bottom: 54px;
}
.textSection ul {
  padding-left: 13px;
}
li,
label {
  font-size: 14px;
  color: #fff;
}
p {
  font-size: 14px;
  line-height: 24px;
}
.imgSection h1 {
  color: #fff;
  font-size: 42px;
  line-height: 46px;
  padding-bottom: 0;
}
.willDeleted {
  margin: 0;
}
.name {
  display: flex;
  gap: 30px;
  max-width: 822px;
  width: 100%;
}
label {
  font-weight: 700;
  font-size: 16px;
}
input,
textarea {
  border: 1px solid #252525;
  background-color: #252525;
  padding: 0 10px;
  height: 38px;
  width: 100%;
  margin: 10px 0;
  color: #fff;
}
textarea {
  height: 100px;
}
.registered {
  max-width: 822px;
  width: 100%;
}
.comments textarea {
  width: 100%;
  margin: 10px 0;
}

textarea:focus,
input:focus {
  outline: none;
}
.firstLast label {
  display: block;
  font-size: 13px;
  float: none;
  font-weight: 400;
  line-height: 1.3;
  margin: 4px 0 0;
}
.firstLast input {
  margin-bottom: 0;
}
.firstLast {
  width: 100%;
  margin-bottom: 10px;
}
.success-message {
  color: #fff;
  margin: 0 auto 24px;
  padding: 15px 15px;
  background: #252525;
  border: 1px solid #252525;
  box-sizing: border-box;
}
.comments button {
  border-radius: 10px;
  background: #ffc700;
  border: 0;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  padding: 10px 15px;
  margin-top: 20px;
  cursor: pointer;
  min-width: 120px;
  height: 40px;
  position: relative;
  z-index: 99999999;
  overflow: hidden;
}
.comments button:hover::before {
  width: 100%;
}

.comments button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-radius: 10px;
  background: -webkit-gradient(
    linear,
    right top,
    left top,
    color-stop(7.32%, #9e9e9e),
    color-stop(89.02%, #ffc700)
  );
  background: linear-gradient(270deg, #9e9e9e 7.32%, #ffc700 89.02%);
  -webkit-transition: all 2s ease;
  transition: all 2s ease;
  z-index: -1;
}

/* Error Message Styles */
.error-message {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 5px;
  margin-bottom: 10px;
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input Error State */
.input-error {
  border-color: #ff6b6b !important;
  background-color: rgba(255, 107, 107, 0.1) !important;
}

.input-error:focus {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

/* API Error Message */
.api-error-message {
  background-color: rgba(255, 107, 107, 0.15);
  border: 1px solid #ff6b6b;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  color: #ff6b6b;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.3s ease-out;
  position: relative;
}

.api-error-message strong {
  margin-right: 8px;
}

.close-error {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.close-error:hover {
  background-color: rgba(255, 107, 107, 0.2);
}

/* Loading State */
.comments button.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.comments button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner Animation */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success Message Enhancements */
.success-message {
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-message h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

/* Input Focus Enhancement */
input:focus,
textarea:focus {
  border-color: #ffc700;
  box-shadow: 0 0 0 2px rgba(255, 199, 0, 0.2);
  transition: all 0.3s ease;
}

/* Required Field Indicator */
label[for="email"]::after,
label[for="phone"]::after {
  content: " *";
  color: #ff6b6b;
}

/* Placeholder Styling */
input::placeholder,
textarea::placeholder {
  color: #888;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .name {
    flex-direction: column;
    gap: 0;
  }
  
  .api-error-message {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .close-error {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }
  
  .success-message h2 {
    font-size: 22px;
  }
}
