/* =========================================================
   PROFILE SECTION STYLES
   ========================================================= */

.profile-section {
  background-color: #e8e8e8;
  padding: 4rem 0;
  margin: 3rem 0;
}

.profile-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
}

.profile-section__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.profile-section__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 2rem;
}

.profile-section__form {
  background: white;
  padding: 2rem;
  border-radius: 4px;
}

/* Form Elements */
.profile-form,
.internship-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group--half {
  grid-column: span 1;
}

.form-group--full {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .profile-form,
  .internship-form {
    grid-template-columns: 1fr 1fr;
  }

  .form-group--full {
    grid-column: 1 / -1;
  }

  .form-group--half {
    grid-column: span 1;
  }
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #333;
  background-color: #fff;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #8b1f3f;
  box-shadow: 0 0 0 3px rgba(139, 31, 63, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
}

.radio-label input[type="radio"] {
  cursor: pointer;
  accent-color: #8b1f3f;
}

/* File Upload Button */
.btn-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #333;
  border-radius: 25px;
  background-color: transparent;
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-upload:hover {
  background-color: #333;
  color: white;
}

.file-name {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  display: block;
}

/* Form Message */
.form-message {
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
  animation: slideDown 0.3s ease;
}

.form-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #4caf50;
  display: block;
}

.form-message.error {
  background-color: #ffebee;
  color: #c62828;
  border-left: 4px solid #f44336;
  display: block;
}

.form-message.info {
  background-color: #e3f2fd;
  color: #1565c0;
  border-left: 4px solid #2196f3;
  display: block;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn--full {
  width: 100%;
}

.btn--accent {
  background-color: #8b1f3f;
  color: white;
}

.btn--accent:hover {
  background-color: #6b1830;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 31, 63, 0.3);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.arrow::after {
  content: "→";
  margin-left: 0.25rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   INTERNSHIP SECTION STYLES
   ========================================================= */

.internship-section {
  padding: 4rem 0;
  background-color: white;
  border-top: 1px solid #e0e0e0;
}

.internship-header {
  margin-bottom: 3rem;
}

.internship-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 1.5rem;
}

.internship-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #8b1f3f;
}

.internship-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.internship-text {
  max-width: 900px;
}

.internship-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.internship-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

.internship-cta {
  margin: 2rem 0;
}

.internship-form {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 4px;
  margin-top: 2rem;
  border-left: 4px solid #8b1f3f;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-section__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-section__title {
    font-size: 1.5rem;
  }

  .profile-section {
    padding: 2rem 0;
  }

  .profile-section__form {
    padding: 1.5rem;
  }

  .radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .internship-section {
    padding: 2rem 0;
  }

  .internship-title {
    font-size: 1.75rem;
  }

  .profile-form,
  .internship-form {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ACCESSIBILITY & UTILITY CLASSES
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Animation for form submission */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:disabled::after {
  display: inline-block;
  width: 1em;
  height: 1em;
  animation: spin 1s linear infinite;
  content: "⏳";
  margin-left: 0.5rem;
}
