

/* Form Wrapper */
.form-wrapper {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-xl);
}

.form-wrapper h2 {
  color: var(--primary-blue-dark);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-color);
}

.form-wrapper > p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

/* Profile-specific content styling */

/* Profile Form */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.profile-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.profile-form fieldset.userform {
  background: var(--surface-elevated);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.profile-form legend {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-lg);
  padding: 0;
}

.profile-form fieldset fieldset {
  margin-bottom: var(--spacing-lg);
}

.profile-form fieldset fieldset:last-child {
  margin-bottom: 0;
}

.profile-form label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-sm);
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"],
.profile-form textarea,
.profile-form select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  transition: all var(--transition-fast);
  background: var(--surface);
}

.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.profile-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox Styles */
.checkbox.single {
  margin-bottom: var(--spacing-md);
}

.checkbox label {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  cursor: pointer;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 0.2em;
  cursor: pointer;
  flex-shrink: 0;
}

/* Button Wrapper */
.button-wrapper {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.button-wrapper input[type="submit"],
.button-wrapper input[type="reset"] {
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-family);
}

.button-wrapper input[type="submit"] {
  background: var(--primary-blue);
  color: white;
  box-shadow: var(--shadow-sm);
}

.button-wrapper input[type="submit"]:hover {
  background: var(--primary-blue-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.button-wrapper input[type="reset"] {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.button-wrapper input[type="reset"]:hover {
  background: var(--border-color);
}

/* iCal Button (for office hours calendar) */
.ical-heading {
    margin-top: 3em;
}


.ical-button {
  background: var(--surface-elevated);
  border: 2px dashed var(--primary-blue);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  text-align: center;
  font-family: 'Courier New', monospace;
  color: var(--primary-blue);
  cursor: pointer;
  transition: all var(--transition-base);
  word-break: break-all;
  font-size: var(--font-size-sm);
}

.ical-button:hover {
  background: rgba(37, 99, 235, 0.05);
  border-style: solid;
  box-shadow: var(--shadow-sm);
}

/* Instructions List */
.content ol {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-xl);
  line-height: 1.8;
}

.content ol li {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

.content ol strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Alert/Error Messages */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
  border-left: 4px solid;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.05);
  border-left-color: var(--error);
  color: var(--error);
}

.alert .close {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  color: inherit;
  opacity: 0.5;
}

.alert .close:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wrapper-outer {
    padding: var(--spacing-md);
  }

  .wrapper-inner {
    flex-direction: column;
  }

  .main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-bottom: var(--spacing-lg);
  }

  .form-wrapper {
    padding: var(--spacing-lg);
  }

  .button-wrapper {
    flex-direction: column;
  }

  .button-wrapper input {
    width: 100%;
  }

  .site-navigation-box {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .form-wrapper {
    padding: var(--spacing-md);
  }

  #breadcrumb ol {
    font-size: var(--font-size-xs);
  }
}