/* Submit page stylesheet. Shared design is inherited from the homepage stylesheet. */
@import url("../homepage/style.css");

.inner-page { padding-top: 55px; }
.form-layout { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 680px) {
  .inner-page { padding-top: 40px; }
  .form-layout { grid-template-columns: 1fr; }
}

/* Keep activity checkboxes compact; do not inherit full-width text-field sizing. */
.checkbox-grid label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
}

.checkbox-grid input[type="checkbox"],
.consent input[type="checkbox"] {
  display: inline-block !important;
  appearance: auto;
  -webkit-appearance: checkbox;
  flex: 0 0 16px;
  width: 16px !important;
  min-width: 16px;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 3px;
  accent-color: var(--green);
}


/* Roblox sign-in state on the server submission page */
.auth-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 17px 0 20px;
  padding: 16px;
  border: 1px solid rgba(183,243,107,.19);
  border-radius: 12px;
  background: rgba(183,243,107,.045);
}
.auth-panel-copy {
  display: grid;
  gap: 5px;
  flex: 1 1 230px;
}
.auth-panel-copy strong {
  color: #eef6ec;
  font: 700 15px 'Space Grotesk', sans-serif;
}
.auth-panel-copy span {
  max-width: 520px;
  color: #9aa99d;
  font-size: 10px;
  line-height: 1.65;
}
.button-roblox {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-height: 41px;
  margin: 0;
  padding: 0 15px;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 9px;
  background: #252b27;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}
.button-roblox:hover {
  color: #fff;
  border-color: rgba(183,243,107,.42);
  background: #303a32;
}
.roblox-mark {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  color: #171d18;
  background: #fff;
  font: 800 12px 'Space Grotesk', sans-serif;
}
.auth-status {
  flex: 1 0 100%;
  margin: 0;
  padding: 9px 11px;
  color: #b9dc9f;
  border: 1px solid rgba(183,243,107,.13);
  border-radius: 8px;
  background: rgba(183,243,107,.045);
  font-size: 10px;
  line-height: 1.55;
}
.auth-status.error {
  color: #e8b2a8;
  border-color: rgba(240,140,120,.18);
  background: rgba(240,140,120,.045);
}
.user-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 17px 0 20px;
  padding: 13px 15px;
  border: 1px solid rgba(183,243,107,.2);
  border-radius: 11px;
  background: rgba(183,243,107,.045);
}
.user-session-info {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.user-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #17210f;
  background: var(--green);
  font: 700 15px 'Space Grotesk', sans-serif;
}
.user-session-info strong, .user-session-info small {
  display: block;
}
.user-session-info strong {
  overflow: hidden;
  color: #edf5e9;
  font-size: 12px;
  text-overflow: ellipsis;
}
.user-session-info small {
  margin-top: 4px;
  color: #93a297;
  font-size: 9px;
}
#logoutButton {
  min-height: 34px;
  padding: 0 12px;
  font-size: 10px;
}
#logoutButton:disabled { opacity: .6; cursor: wait; }

@media (max-width: 680px) {
  .auth-panel { align-items: stretch; flex-direction: column; }
  .button-roblox { width: 100%; }
  .user-session { align-items: flex-start; }
}


/* Nested Raid type and fruit choices */
.checkbox-grid .activity-checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
}
.raid-option-wrap {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}
.raid-option-wrap > .activity-checkbox {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(22,33,27,.8);
}
.raid-details {
  margin: 9px 0 5px;
  padding: 13px;
  border: 1px solid rgba(183,243,107,.16);
  border-radius: 10px;
  background: rgba(8,14,11,.58);
}
.raid-instruction {
  margin: 0 0 10px;
  color: #aab7aa;
  font-size: 9px;
  line-height: 1.6;
}
.raid-type-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.raid-type-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 53px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.raid-type-option:has(input:checked) {
  border-color: rgba(183,243,107,.55);
  background: rgba(183,243,107,.08);
}
.raid-type-option input[type="radio"] {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
}
.raid-type-option span,
.raid-type-option strong,
.raid-type-option small {
  display: block;
}
.raid-type-option strong {
  color: #e8f1e8;
  font-size: 10px;
}
.raid-type-option small {
  margin-top: 3px;
  color: #8f9d91;
  font-size: 8px;
}
.raid-fruit-panel {
  margin-top: 13px;
}
.raid-fruit-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 9px;
  color: #e5eee4;
  font-size: 10px;
  font-weight: 700;
}
.raid-fruit-heading small {
  color: #8f9d91;
  font-size: 8px;
  font-weight: 400;
}
.raid-fruit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.raid-fruit-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  cursor: pointer;
}
.raid-fruit-chip input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0;
  pointer-events: none;
}
.raid-fruit-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #e9f1e5;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 6px;
  background: #29342d;
  font-size: 9px;
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.raid-fruit-chip:hover span {
  border-color: rgba(183,243,107,.42);
}
.raid-fruit-chip:has(input:checked) span {
  color: #17200f;
  border-color: var(--green);
  background: var(--green);
}
.raid-fruit-chip input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.raid-details[hidden],
.raid-fruit-panel[hidden] {
  display: none !important;
}
@media (max-width: 540px) {
  .raid-type-grid {
    grid-template-columns: 1fr;
  }
  .raid-details {
    padding: 10px;
  }
}

.raid-option-wrap {
  grid-column: 1 / -1;
}

.checkbox-grid .raid-fruit-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  text-align: center;
}


/* First Sea restrictions for activities */
.activity-checkbox.activity-disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.45);
  border-color: rgba(255,255,255,.055) !important;
}
.activity-checkbox.activity-disabled input:disabled {
  cursor: not-allowed;
  accent-color: #68736a;
}
.sea-activity-note {
  margin: 0 0 9px;
  padding: 8px 10px;
  color: #c8d8b6;
  border: 1px solid rgba(183,243,107,.15);
  border-radius: 7px;
  background: rgba(183,243,107,.045);
  font-size: 9px;
  line-height: 1.55;
}
.sea-activity-note[hidden] {
  display: none !important;
}


/* Sea-specific event checklist */
.sea-events-wrap {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}
.sea-events-wrap > .activity-checkbox {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(22,33,27,.8);
}
.sea-event-details {
  margin: 9px 0 5px;
  padding: 13px;
  border: 1px solid rgba(183,243,107,.16);
  border-radius: 10px;
  background: rgba(8,14,11,.58);
}
.sea-event-instruction {
  margin: 0 0 10px;
  color: #aab7aa;
  font-size: 9px;
  line-height: 1.6;
}
.sea-event-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sea-event-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 7px !important;
  min-height: 31px !important;
  padding: 5px 9px !important;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: #e5eee4;
  cursor: pointer;
  font-size: 9px;
}
.sea-event-chip:has(input:checked) {
  color: #17200f;
  border-color: var(--green);
  background: rgba(183,243,107,.9);
}
.sea-event-chip input[type="checkbox"] {
  flex: 0 0 14px;
  width: 14px !important;
  min-width: 14px;
  height: 14px !important;
  min-height: 14px !important;
  accent-color: #93cb4c;
}
.sea-event-details[hidden] {
  display: none !important;
}
