/* =============================================
   Submission Page Styles — submit.css
   Art of Living Submission Portal
   Developed by A.N.M. Adib Hasan — LOOPLN
   ============================================= */

/* --- Page Layout --- */
.submit-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #f8f9ff 0%, #ffffff 60%, var(--secondary) 100%);
  padding-top: var(--nav-height);
}

.submit-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* --- Page Header --- */
.submit-header {
  text-align: center;
  margin-bottom: 44px;
}

.submit-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 71, 170, 0.07);
  border: 1px solid rgba(52, 71, 170, 0.14);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.submit-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.submit-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Form Card --- */
.submit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
}

/* --- Form Groups --- */
.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.form-label .req {
  color: var(--error);
  margin-left: 2px;
}

/* --- Form Inputs --- */
.form-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-heading);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(52, 71, 170, 0.1);
  background: var(--white);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(217, 64, 64, 0.08);
}

.form-input.success {
  border-color: var(--success);
}

/* --- Select --- */
.form-select {
  width: 100%;
  height: 50px;
  padding: 0 40px 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-heading);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b8fa8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(52, 71, 170, 0.1);
}

.form-select.error {
  border-color: var(--error);
}

/* --- Form Error Messages --- */
.form-error {
  display: none;
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
  font-weight: 500;
  align-items: center;
  gap: 5px;
}

.form-error.visible {
  display: flex;
}

.form-error svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* --- Section Divider Within Form --- */
.form-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
}

/* --- File Upload Area --- */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--off-white);
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(52, 71, 170, 0.04);
}

.upload-zone.has-file {
  border-color: var(--success);
  background: var(--success-bg);
  border-style: solid;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  margin: 0 auto 12px;
  width: 44px;
  height: 44px;
  color: var(--text-muted);
}

.upload-zone.has-file .upload-icon {
  color: var(--success);
}

.upload-text {
  font-size: 15px;
  color: var(--text-body);
  font-weight: 500;
  margin-bottom: 6px;
}

.upload-text strong {
  color: var(--primary);
}

.upload-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-file-name {
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
  margin-top: 8px;
  display: none;
}

.upload-zone.has-file .upload-file-name {
  display: block;
}

/* --- Submission Progress --- */
.upload-progress {
  display: none;
  margin-top: 16px;
}

.upload-progress.visible {
  display: block;
}

.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* --- Or Divider --- */
.or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

/* --- Closed Banner --- */
.closed-banner {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 32px;
}

.closed-banner svg {
  flex-shrink: 0;
  color: #b45309;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.closed-banner-text {
  font-size: 15px;
  color: #7c4700;
  font-weight: 600;
}

.closed-banner-sub {
  font-size: 13px;
  color: #9a5c00;
  margin-top: 3px;
  font-weight: 400;
}

/* --- Submit Button Row --- */
.submit-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-submit {
  width: 100%;
  height: 54px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(52, 71, 170, 0.28);
}

.btn-submit:hover:not(:disabled) {
  background: var(--primary-light);
  box-shadow: 0 8px 28px rgba(52, 71, 170, 0.38);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Success State --- */
.success-screen {
  display: none;
  text-align: center;
  padding: 60px 32px;
}

.success-screen.visible {
  display: block;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon-wrap svg {
  width: 40px;
  height: 40px;
  color: var(--success);
}

.success-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.success-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* --- Countdown Timer --- */
.timer-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  margin: 24px auto;
}

.timer-clock {
  font-family: 'Courier New', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  line-height: 1;
}

.timer-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
  line-height: 1.3;
}

.timer-expired {
  display: none;
  background: var(--error-bg);
  border: 1px solid rgba(217,64,64,0.2);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 14px;
  color: var(--error);
  font-weight: 600;
  margin: 12px 0;
}

.timer-expired.visible {
  display: block;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .submit-card {
    padding: 32px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  .form-row .form-group {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .submit-card {
    padding: 28px 18px;
  }
}

/* =============================================
   Submission Type Selection
   ============================================= */

.type-selection-header {
  margin-bottom: 4px;
}

.type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.type-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  font-family: var(--font-body);
}

.type-option-btn:hover {
  border-color: var(--primary);
  background: rgba(52, 71, 170, 0.03);
  box-shadow: 0 4px 16px rgba(52, 71, 170, 0.1);
  transform: translateY(-2px);
}

.type-option-btn:active {
  transform: translateY(0);
}

.type-option-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(52, 71, 170, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.type-option-btn:hover .type-option-icon {
  background: rgba(52, 71, 170, 0.14);
}

.type-option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.type-option-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.type-option-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.type-option-arrow {
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}

.type-option-btn:hover .type-option-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

/* ── Back button ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color var(--transition);
  font-family: var(--font-body);
}

.back-btn:hover {
  color: var(--primary);
}

/* ── Type badge shown inside the form card ── */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(52, 71, 170, 0.08);
  border: 1px solid rgba(52, 71, 170, 0.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

/* =============================================
   Group Member Rows
   ============================================= */

.member-row {
  background: var(--off-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 22px 8px;
  margin-bottom: 16px;
}

.member-row-header {
  margin-bottom: 16px;
}

.member-row-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
}

.group-member-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  margin-top: -4px;
}

/* ── Add / Remove member controls ── */
.btn-member-ctrl {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-body);
  transition: all var(--transition);
}

.btn-member-ctrl:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-member-ctrl:disabled {
  cursor: not-allowed;
}

.btn-member-add {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-member-add:hover:not(:disabled) {
  background: var(--primary-light);
  color: var(--white);
  border-color: var(--primary-light);
}

/* ── member field errors (smaller) ── */
.member-error {
  font-size: 12px;
}

/* =============================================
   Nav fix — under 400px
   ============================================= */
@media (max-width: 399px) {
  .nav {
    padding: 0 14px;
  }

  .nav-logo img,
  .nav-logo svg {
    height: 28px;
  }

  .btn-nav {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav-actions {
    gap: 6px;
  }
}

/* ── Responsive: member rows on small screens ── */
@media (max-width: 560px) {
  .member-row {
    padding: 18px 16px 4px;
  }

  .type-option-btn {
    padding: 16px 16px;
    gap: 14px;
  }

  .type-option-icon {
    width: 46px;
    height: 46px;
  }

  .type-option-title {
    font-size: 15px;
  }
}




/*====================================================================*/
/* Final Exact Match: Murad same as A.N.M. Adib Hasan footer link */

.co-dev-name {
  color: var(--primary) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  margin: 6px 0 6px !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.co-dev-facebook {
  width: fit-content !important;
  max-width: max-content !important;
  margin: 0 auto !important;
  position: relative !important;
  top: -6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  color: var(--primary) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
}

.co-dev-facebook svg {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  display: inline-block !important;
  color: var(--primary) !important;
  fill: currentColor !important;
}