
/* =====================================
   DTSC ALUMNI ASSOCIATION
   TEACHER REGISTRATION CSS
===================================== */

:root {
  --primary: #103e35;
  --primary-dark: #092e27;
  --primary-light: #eaf4f0;
  --secondary: #c49a42;
  --text: #26352f;
  --muted: #748078;
  --border: #dce5df;
  --background: #f4f7f5;
  --white: #ffffff;
  --danger: #dc3545;
  --shadow: 0 8px 30px rgba(16, 62, 53, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Hind Siliguri', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}


/* =====================================
   HEADER
===================================== */

.registration-header {
  background: var(--primary);
  color: var(--white);
  min-height: 105px;
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.12);
}

.brand-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.header-info {
  flex: 1;
  text-align: center;
}

.header-info h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.header-info p {
  font-size: 14px;
  color: #e0eee8;
}

.header-info span {
  display: block;
  font-size: 12px;
  color: #d6bd7f;
  margin-top: 3px;
}

.home-link {
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255,255,255,0.45);
  padding: 9px 17px;
  border-radius: 6px;
  font-size: 13px;
  transition: 0.3s;
}

.home-link:hover {
  background: white;
  color: var(--primary);
}


/* =====================================
   MAIN CONTAINER
===================================== */

.registration-container {
  width: min(100% - 30px, 1050px);
  margin: 35px auto;
}

.form-heading {
  text-align: center;
  margin-bottom: 28px;
}

.form-badge {
  display: inline-block;
  color: var(--primary);
  background: #e4f0e9;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.form-heading h2 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 7px;
}

.form-heading p {
  color: var(--muted);
  font-size: 14px;
}


/* =====================================
   PROGRESS BAR
===================================== */

.form-progress {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 17px 22px;
  margin-bottom: 22px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}

#progressText {
  color: var(--primary);
}

.progress-track {
  height: 7px;
  background: #e8eee9;
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #103e35, #4b9b72);
  border-radius: 20px;
  transition: width 0.3s ease;
}


/* =====================================
   FORM SECTIONS
===================================== */

.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid #edf1ee;
  padding-bottom: 18px;
  margin-bottom: 23px;
}

.section-number {
  min-width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
}

.section-heading h3 {
  font-size: 19px;
  color: var(--primary);
  margin-bottom: 3px;
}

.section-heading p {
  font-size: 12px;
  color: var(--muted);
}


/* =====================================
   PHOTO UPLOAD
===================================== */

.photo-upload-area {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8faf9;
  border: 1px dashed #aebfb4;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}

.photo-preview-box {
  width: 100px;
  height: 110px;
  border-radius: 8px;
  background: #e6eee9;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 35px;
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-content label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 9px;
}

.photo-upload-content input {
  font-size: 12px;
  max-width: 100%;
}

.photo-upload-content small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}


/* =====================================
   FORM GRID
===================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 22px;
}

.form-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #35453d;
}

.required {
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: 0.2s;
}

.form-group textarea {
  resize: vertical;
  min-height: 95px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 62, 53, 0.09);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aaa3;
  font-size: 12px;
}

.form-group select:disabled,
.form-group input:disabled {
  background: #f0f2f1;
  cursor: not-allowed;
}

.full-width {
  grid-column: 1 / -1;
}


/* =====================================
   ADDRESS
===================================== */

.address-block {
  background: #fbfcfb;
  border: 1px solid #e8eeea;
  border-radius: 9px;
  padding: 20px;
  margin-bottom: 18px;
}

.address-block h4,
.conditional-section h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 18px;
  padding-left: 10px;
  border-left: 3px solid var(--secondary);
}

.same-address-control {
  margin: 16px 0;
  padding: 13px 15px;
  background: var(--primary-light);
  border-radius: 7px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.same-address-control label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.same-address-control input {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
}


/* =====================================
   STATUS OPTIONS
===================================== */

.status-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.status-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  cursor: pointer;
  transition: 0.2s;
}

.status-card:hover {
  border-color: var(--primary);
  background: #f5faf6;
}

.status-card input {
  margin-top: 5px;
  accent-color: var(--primary);
}

.status-card strong {
  display: block;
  font-size: 12px;
  color: var(--primary);
}

.status-card small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}


/* =====================================
   CONDITIONAL SECTIONS
===================================== */

.conditional-section {
  background: #f9fbf9;
  border: 1px solid #dce9df;
  border-radius: 10px;
  padding: 22px;
  margin-top: 20px;
  animation: sectionAppear 0.3s ease;
}

@keyframes sectionAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =====================================
   GOOGLE SIGN IN
===================================== */

.google-signin-area {
  margin-top: 25px;
  text-align: center;
}

.google-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #9aa49e;
  font-size: 11px;
  margin-bottom: 20px;
}

.google-divider::before,
.google-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.google-signin-btn {
  width: 100%;
  max-width: 350px;
  min-height: 48px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.google-signin-btn:hover {
  background: #f8faf9;
  border-color: var(--primary);
}

.google-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #4285f4;
}

.google-signin-area p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}


/* =====================================
   DECLARATION
===================================== */

.declaration-section {
  background: #f8fbf8;
  border-color: #d5e6d9;
}

.declaration-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  cursor: pointer;
}

.declaration-label input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--primary);
}


/* =====================================
   ACTION BUTTONS
===================================== */

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  margin: 25px 0;
}

.form-actions button,
.edit-btn {
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.preview-btn,
.edit-btn {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.preview-btn:hover,
.edit-btn:hover {
  background: var(--primary-light);
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

.submit-btn:hover {
  background: var(--primary-dark);
}


/* =====================================
   PREVIEW
===================================== */

.preview-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}

.preview-section h3 {
  color: var(--primary);
  margin-bottom: 18px;
}

.preview-section p {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #edf1ee;
  overflow-wrap: anywhere;
}

.edit-btn {
  margin-top: 18px;
}


/* =====================================
   FOOTER
===================================== */

.registration-footer {
  text-align: center;
  background: var(--primary-dark);
  color: white;
  padding: 22px 15px;
  font-size: 12px;
}

.registration-footer p + p {
  color: #d6bd7f;
  margin-top: 4px;
}


/* =====================================
   HIDDEN ELEMENTS
===================================== */

[hidden] {
  display: none !important;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {

  .registration-header {
    padding: 13px 15px;
    gap: 10px;
  }

  .brand-logo img {
    width: 48px;
    height: 48px;
  }

  .header-info h1 {
    font-size: 15px;
  }

  .header-info p {
    font-size: 10px;
  }

  .header-info span {
    font-size: 9px;
  }

  .home-link {
    padding: 7px 9px;
    font-size: 11px;
  }

  .registration-container {
    margin: 22px auto;
  }

  .form-heading h2 {
    font-size: 23px;
  }

  .form-section {
    padding: 19px 15px;
  }

  .section-heading h3 {
    font-size: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .full-width {
    grid-column: auto;
  }

  .status-options {
    grid-template-columns: 1fr;
  }

  .conditional-section {
    padding: 17px 13px;
  }

  .address-block {
    padding: 15px 12px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

  .photo-upload-area {
    align-items: flex-start;
    padding: 13px;
  }

  .photo-preview-box {
    width: 75px;
    height: 90px;
  }

}

@media (max-width: 380px) {

  .header-info h1 {
    font-size: 13px;
  }

  .header-info p {
    font-size: 9px;
  }

  .home-link {
    font-size: 10px;
    padding: 6px 7px;
  }

  .photo-upload-area {
    gap: 12px;
  }

  .photo-preview-box {
    width: 65px;
    height: 80px;
  }

}
