/* Rider Profile Creation Styles */
:root {
  --primary-color: #E0E640;
  --secondary-color: #0C5878;
  --danger-color: #B82222; /* Using danger-color instead of red */
  --soft-red: #FF8080;
  --success-color: #33C925;
  --background-color: #FFFBFB;
  --text-color: #0F0F0F;
  --placeholder-color: rgba(130, 129, 129, 0.81);
  --input-bg: #D9D9D9;
  --white: #FFFFFF;
  --card-border: #DDE350;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* Background specific to new profile page is now handled via the body.new-profile class */

/* Main container */
.profile-container {
  position: relative;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  background: transparent;
}

/* Section cards */
.section-card {
  position: relative;
  width: 344px;
  margin: 0 auto 20px;
  background: var(--background-color);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding-bottom: 15px;
}

/* Emergency card styling */
.emergency-card {
  border: 2px solid var(--danger-color);
}

/* Section headers */
.section-header {
  position: relative;
  width: 100%;
  height: 53px;
  background: var(--primary-color);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Emergency section header */
.emergency-section-header {
  background: var(--danger-color);
}

.section-header h2 {
  font-family: 'Poppins';
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color);
}

/* Section dividers */
.section-divider {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.divider-line {
  width: 88px;
  height: 1px;
  background: #0F0F10;
}

.divider-pill {
  width: 132px;
  height: 28px;
  background: var(--primary-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
}

.divider-pill span {
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 15px;
  color: #000000;
}

/* Form groups */
.form-group {
  position: relative;
  margin: 10px 39px;
}

.form-group label {
  display: block;
  font-size: 11px;
  color: var(--placeholder-color);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 32px;
  background: var(--input-bg);
  border: none;
  border-radius: 15px;
  padding: 0 15px;
  font-size: 11px;
}

.form-group textarea {
  height: 47px;
  padding-top: 8px;
}

.form-group.readonly input {
  background: #F2F2F2;
}

.icon-prefix {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
}

.required::after {
  content: "*";
  color: #CF1717;
  margin-left: 5px;
}

/* Emergency contact styles */
.emergency-section {
  position: relative;
  width: 100%;
  max-width: 375px;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 2px solid #00527F;
  background-color: #FFFFFF;
}

.emergency-section-title {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-size: 25px;
  line-height: 27px;
  display: flex;
  align-items: center;
  color: #0F0F10;
  margin: 15px 28px;
}

.emergency-description {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 8.33333px;
  line-height: 10px;
  display: flex;
  align-items: center;
  color: #000000;
  margin: 10px 28px;
}

.emergency-contact {
  position: relative;
  width: 322px;
  margin: 30px auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 15px 15px 0 0;
}

.emergency-header {
  position: relative;
  width: 100%;
  height: 40px;
  background: var(--danger-color);
  border-radius: 15px 15px 0 0;
  display: flex;
  align-items: center;
  padding-left: 15px;
}

.emergency-header h3 {
  font-family: 'Inter';
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  line-height: 16px;
}

.emergency-content {
  position: relative;
  background: var(--white);
  border: 1px solid var(--danger-color);
  border-top: none;
  padding: 25px 20px;
  border-radius: 0 0 15px 15px;
}

.contact-field {
  position: relative;
  margin-bottom: 15px;
  padding-left: 40px;
}

.contact-field label {
  display: block;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  color: rgba(105, 95, 95, 0.33);
  margin-bottom: 5px;
}

.contact-field input,
.contact-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #000000;
  padding: 5px 0;
  font-size: 16px;
  background-color: transparent;
}

.relationship-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23444' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem;
}

.contact-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--danger-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-icon.whatsapp {
  background: #25D366;
}

.contact-icon.telegram {
  background: #039BE5;
}

.nickname-field {
  position: relative;
  margin-bottom: 15px;
  padding-left: 40px;
}

.nickname-field label {
  display: block;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  color: rgba(105, 95, 95, 0.33);
  margin-bottom: 5px;
}

.nickname-field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #000000;
  padding: 5px 0;
  font-size: 16px;
}

.delete-contact {
  position: relative;
  width: 62px;
  margin: 15px auto;
  text-align: center;
}

.delete-contact button {
  background: none;
  border: none;
  color: #CA0C0C;
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-icon {
  margin-right: 5px;
  color: #CA0C0C;
}

/* Add emergency contact button */
.add-emergency-contact-container {
  text-align: center;
  margin: 20px 0;
}

.add-contact-button {
  background-color: var(--white);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 10px;
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 12px;
  padding: 8px 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.add-contact-button i {
  margin-right: 5px;
}

.add-contact-button:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Save button */
.save-button {
  width: 138px;
  height: 40px;
  background: var(--success-color);
  border: none;
  border-radius: 20px;
  color: var(--white);
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 16px;
  margin: 20px auto;
  display: block;
  cursor: pointer;
}

/* Vehicle checkbox */
.checkbox-container {
  display: flex;
  align-items: center;
  margin: 15px 39px;
}

.checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.checkbox-container label {
  font-size: 11px;
  color: var(--placeholder-color);
}