/* Declaration and agreement styles */
#unique-declaration-box {
  position: relative;
  max-height: 700px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  max-width: 100%;
}
@media (max-width: 768px) {
  #unique-declaration-box { max-height: 600px; border-radius: 8px; }
}
@media (max-width: 480px) {
  #unique-declaration-box { max-height: 650px; border-radius: 6px; }
}

.declaration-header {
  background: linear-gradient(135deg, #00588f 0%, #24526f 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.declaration-header h3 { margin: 0; font-size: 1.4em; font-weight: 600; }
@media (max-width: 768px) {
  .declaration-header { padding: 15px 20px; }
  .declaration-header h3 { font-size: 1.2em; }
}
@media (max-width: 480px) {
  .declaration-header { padding: 12px 15px; flex-direction: column; align-items: flex-start; }
  .declaration-header h3 { font-size: 1.1em; }
}
.page-counter {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
}

.declaration-scroll-area {
  height: 500px;
  overflow-y: auto;
  padding: 10px 30px;
  background: white;
  scroll-behavior: smooth;
}
@media (max-width: 768px) {
  .declaration-scroll-area { height: 450px; padding: 20px; }
}
@media (max-width: 480px) {
  .declaration-scroll-area { height: 400px; padding: 15px; }
}
/* Custom scrollbar */
.declaration-scroll-area::-webkit-scrollbar { width: 10px; }
.declaration-scroll-area::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.declaration-scroll-area::-webkit-scrollbar-thumb { background: #00588F; border-radius: 10px; }
.declaration-scroll-area::-webkit-scrollbar-thumb:hover { background: #764ba2; }

#declaration-content {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}
#declaration-content h4 {
  color: #00588F;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}
#declaration-content p { margin: 0 0 15px 0; text-align: justify; }
#declaration-content ul, #declaration-content ol { margin: 10px 0 15px 20px; padding-left: 20px; }
#declaration-content li { margin-bottom: 8px; }
@media (max-width: 768px) {
  #declaration-content { font-size: 14px; line-height: 1.7; }
  #declaration-content h4 { font-size: 1.1em; margin-top: 20px; margin-bottom: 12px; }
}
@media (max-width: 480px) {
  #declaration-content { font-size: 13px; line-height: 1.6; }
  #declaration-content h4 { font-size: 1em; margin-top: 15px; margin-bottom: 10px; }
  #declaration-content p { text-align: left; }
}

.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(102, 126, 234, 0.9);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85em;
  animation: bounce 2s infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.scroll-indicator.show { opacity: 1; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Declaration progress bar overrides */
.progress-bar { height: 4px; background: #e0e0e0; border-radius: 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #00588F 0%, #764ba2 100%); width: 0%; transition: width 0.3s ease; }

.acceptance-section {
  padding: 20px 25px;
  background: #f8f9fa;
  border-radius: 0 0 10px 10px;
  border-top: 2px solid #e0e0e0;
}
@media (max-width: 768px) {
  .acceptance-section { padding: 15px 20px; }
}
@media (max-width: 480px) {
  .acceptance-section { padding: 12px 15px; }
}
.accept-checkbox { display: flex; flex-direction: column; gap: 8px; }
.accept-checkbox>div:first-child { display: flex; align-items: center; gap: 12px; }
.accept-checkbox input[type="checkbox"] {
  width: 20px; height: 20px; cursor: pointer; accent-color: #00588F; flex-shrink: 0; min-width: 20px;
}
@media (max-width: 768px) { .accept-checkbox input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; } }
@media (max-width: 480px) { .accept-checkbox input[type="checkbox"] { width: 24px; height: 24px; min-width: 24px; } }
.accept-checkbox label { font-size: 15px; font-weight: 500; color: #333; cursor: pointer; user-select: none; }
.read-status { margin-top: -15px; margin-left: 27px; font-size: 0.85em; color: #666; font-style: italic; }
