/**
 * Alkasim Flow — Public Forms, Course Cards & Admission Styles
 */
@import './variables.css';

/* Public Surface Wrapper */
.alkasim-public-card {
  max-width: 680px;
  margin: 2.5rem auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 2.5rem;
  font-family: var(--font-family);
}

.alkasim-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.alkasim-form-header h2 {
  font-family: var(--font-heading);
  color: var(--black);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.alkasim-form-header p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin: 0;
}

/* Course Selection Card in Admission Form */
.alkasim-selected-course-badge {
  background: var(--primary-lighter);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alkasim-selected-course-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1rem;
}

/* Form Grid Rows */
.alkasim-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.alkasim-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

/* CNIC Input Helper */
.alkasim-cnic-container {
  position: relative;
}

.alkasim-cnic-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.3rem;
  display: block;
}

/* Course Catalog Grid */
.alkasim-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  font-family: var(--font-family);
}

.alkasim-course-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.alkasim-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.alkasim-course-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--gray-100);
}

.alkasim-course-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.alkasim-course-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.alkasim-course-seats {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  background: var(--gray-100);
  color: var(--gray-700);
}

.alkasim-course-seats.available {
  background: var(--success-light);
  color: var(--success-dark);
}

.alkasim-course-seats.full {
  background: var(--danger-light);
  color: var(--danger-dark);
}

.alkasim-course-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.alkasim-course-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.alkasim-course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}

/* Submit Action Button */
.alkasim-btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-shadow);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.alkasim-btn-submit:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px var(--primary-shadow);
}

.alkasim-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
