﻿body {
  background: #f1a530;
}
.rr-wrap {
  max-width: 620px;
  margin: 60px auto;
  padding: 0 16px;
  font-family: 'Lexend', sans-serif;
}
.rr-wrap h2 {
  color: #fff;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.rr-wrap .rr-intro {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
/* Notification banners */
.rr-banner {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rr-banner strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}
.rr-banner-success {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(0, 0, 0, 0.8);
}
.rr-banner-error {
  background: rgba(180, 60, 20, 0.18);
  border: 1px solid rgba(180, 60, 20, 0.3);
  color: rgba(0, 0, 0, 0.8);
}
.rr-banner-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}
/* Card sections */
.rr-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.rr-card-title {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Two-column grid for name fields */
.rr-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rr-field {
  margin-bottom: 18px;
}
.rr-field:last-child {
  margin-bottom: 0;
}
.rr-field label {
  display: block;
  color: rgba(0, 0, 0, 0.8);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.rr-field input[type=text],
.rr-field input[type=date] {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 11px 14px;
  color: rgba(0, 0, 0, 0.8);
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
}
.rr-field input::placeholder {
  color: rgba(0, 0, 0, 0.28);
}
.rr-field input:focus {
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.45);
}
.rr-field .rr-error {
  color: rgba(160, 40, 0, 0.8);
  font-size: 0.78rem;
  margin-top: 5px;
  display: block;
}
/* Drop zone */
.rr-hint {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.8rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
#dropZone {
  border: 2px dashed rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  transition: border-color 0.25s ease, background 0.25s ease;
}
#dropZone:hover,
#dropZone.dragover {
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.3);
}
#dropZone.has-file {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.25);
}
.rr-upload-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}
#dropText p {
  margin: 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.88rem;
  line-height: 1.6;
}
#dropText strong {
  color: rgba(0, 0, 0, 0.8);
}
#fileName {
  display: none;
  margin: 0;
  color: rgba(0, 0, 0, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
}
#previewImage {
  display: none;
  max-width: 100%;
  max-height: 260px;
  margin-top: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
/* Address lookup */
.rr-address-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.rr-address-search input[type=text] {
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 11px 14px;
  color: rgba(0, 0, 0, 0.8);
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
}
.rr-address-search input::placeholder {
  color: rgba(0, 0, 0, 0.28);
}
.rr-address-search input:focus {
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.45);
}
.rr-address-btn {
  background: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.rr-address-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.35);
}
.rr-address-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#addressResults {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  margin-bottom: 14px;
  display: none;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rr-address-item {
  padding: 10px 14px;
  color: rgba(0, 0, 0, 0.8);
  font-size: 0.88rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: background 0.15s ease;
}
.rr-address-item:last-child {
  border-bottom: none;
}
.rr-address-item:hover {
  background: rgba(255, 255, 255, 0.4);
}
.rr-address-item.selected {
  background: rgba(255, 255, 255, 0.55);
  color: rgba(0, 0, 0, 0.9);
}
#selectedAddresses {
  display: none;
  margin-bottom: 14px;
}
.rr-selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.8);
  margin: 4px 4px 4px 0;
}
.rr-selected-tag button {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.rr-selected-tag button:hover {
  color: rgba(0, 0, 0, 0.85);
}
#addressConfirmBtn {
  display: none;
  width: 100%;
  background: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-top: 4px;
}
#addressConfirmBtn:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.35);
}
.rr-address-confirmed {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.85rem;
  margin-top: 6px;
}
.rr-address-confirmed a {
  color: rgba(0, 0, 0, 0.38);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  margin-left: auto;
}
#addressLookupError {
  display: none;
  color: rgba(160, 40, 0, 0.8);
  font-size: 0.8rem;
  margin-top: 6px;
}
/* Security note */
.rr-security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.8rem;
  margin-bottom: 22px;
}
.rr-security-note span {
  line-height: 1.5;
}
/* Submit button */
.rr-submit-btn {
  width: 100%;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.rr-submit-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(0, 0, 0, 0.38);
}
.rr-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.rr-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rrSpin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes rrSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 520px) {
  .rr-field-grid {
    grid-template-columns: 1fr;
  }
  .rr-card {
    padding: 20px 18px;
  }
}