/* General Page Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ffdde1, #ee9ca7); /* Vibrant pink-red */
  margin: 0;
  padding: 0;
}

/* Container */
.container {
  width: 480px;
  margin: 50px auto;
  background: #fff8f8;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  text-align: center;
}

/* Title */
h1 {
  color: #b30000;
  font-size: 24px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Form Styling */
form input,
form textarea,
form button,
form label {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Focus effect */
form input:focus,
form textarea:focus {
  border-color: #b30000;
  box-shadow: 0 0 6px rgba(179, 0, 0, 0.25);
  outline: none;
}

/* Button */
form button {
  background: #b30000;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  border: none;
}
form button:hover {
  background: #900000;
  transform: scale(1.03);
}

/* Upload Photo Styling */
.upload-wrapper {
  text-align: left;
  margin: 12px 0;
}

.upload-label {
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.upload-label i {
  margin-right: 6px;
  color: #b30000;
}

.upload-input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
}

.upload-input:hover {
  border-color: #b30000;
  box-shadow: 0 0 6px rgba(179, 0, 0, 0.2);
}

/* ID Card Styling */
.id-card {
  margin-top: 30px;
  width: 370px;
  border: 2px solid #b30000;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;

  /* Background gradient + watermark */
  background: linear-gradient(135deg, #ffffffcc, #ffe6e6cc), url("logo.png") no-repeat center;
  background-size: 120px;
}

/* Header */
.id-header {
  background: #b30000;
  color: white;
  padding: 10px;
  border-radius: 10px;
}
.id-header h2 {
  margin: 5px 0;
  font-size: 20px;
}
.id-header p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.logo {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

/* Body */
.id-body {
  display: flex;
  align-items: flex-start;
  margin-top: 15px;
  text-align: left;
  background: rgba(255,255,255,0.85); /* readable over gradient+watermark */
  padding: 8px;
  border-radius: 8px;
}
.id-photo {
  width: 90px;
  height: 110px;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #b30000;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
#idDetails {
  font-size: 13px;
  line-height: 1.4;
}

/* Footer */
.id-footer {
  margin-top: 12px;
  font-size: 13px;
  color: #333;
  border-top: 1px solid #ccc;
  padding-top: 8px;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
}
.id-footer p {
  margin: 3px 0;
}

/* Download Button */
#downloadBtn {
  margin-top: 15px;
  padding: 12px 20px;
  background: #b30000;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}
#downloadBtn:hover {
  background: #900000;
  transform: scale(1.05);
}
