/* /static/css/payment/subscribe.css */

.center-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 80vh;
}

.payment-card {
    width: 100%;
    max-width: 28rem; /* Slightly wider for better form layout */
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* --------------------------------- */
/* Stepper Styles */
/* --------------------------------- */
.payment-stepper {
  width: 100%;
  padding: 0 10px;
  margin-bottom: 25px;
  box-sizing: border-box;
}
.payment-stepper ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
/* The grey line */
.payment-stepper ul::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}
.payment-stepper li {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  color: #9e9e9e;
  z-index: 2;
  background: #fff;
  padding: 0 5px;
  width: 70px; /* Increased from 60px */
  text-align: center;
}
.payment-stepper li .step-icon {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #fff;
  margin-bottom: 5px;
}

/* Active Step */
.payment-stepper li.active {
  color: #007bff;
  font-weight: bold;
}
.payment-stepper li.active .step-icon {
  background-color: #007bff;
}

/* Completed Step */
.payment-stepper li.completed {
  color: #28a745;
}
.payment-stepper li.completed .step-icon {
  background-color: #28a745;
  font-weight: bold;
}
.payment-stepper li.completed .step-icon::before {
  content: '✓'; /* Checkmark for completed steps */
}


/* --------------------------------- */
/* Form & Button Styles */
/* --------------------------------- */

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

.form-description {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 1rem;
}

.form-label {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
}

/* === ADDED FOR MANDATORY FIELDS === */
.form-label .mandatory-star {
    color: #d9534f; /* Red */
    margin-left: 3px;
    font-weight: bold;
}

.form-input {
    /* === ADDED TO FIX MATERIALIZE OVERRIDE === */
    display: block;

    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #aaa;
    font-style: italic;
}

.form-input:focus {
    outline: none;
    border-color: #26a69a;
}

.form-input:disabled {
    background-color: #f1f1f1;
    cursor: not-allowed;
}

.phone-input-container {
    display: flex;
}

.phone-input-container select.form-input {
    width: 35%; /* Width for country code */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.phone-input-container input.form-input {
    width: 65%; /* Width for phone number */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.payment-button-container {
    margin-top: 1rem;
}

.action-button {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    border: none;
    box-sizing: border-box;
}

.action-button:disabled {
    background-color: #9db5b2;
    cursor: not-allowed;
}

.save-btn {
    background-color: #26a69a;
    color: white;
}
.save-btn:hover:not(:disabled) {
    background-color: #219187;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
}
.secondary-btn:hover:not(:disabled) {
    background-color: #5a6268;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.lookup-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9e9e9e;
    margin: 1.5rem 0;
}
.lookup-divider::before,
.lookup-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}
.lookup-divider span {
    padding: 0 1rem;
}

/* --------------------------------- */
/* Result / User List Styles */
/* --------------------------------- */

.user-list-container {
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
}

.user-list-header {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.user-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-list li:last-child {
    border-bottom: none;
}
.user-list .username {
    font-weight: 600;
    color: #333;
}
.user-list .user-email {
    font-size: 0.85rem;
    color: #718096;
}