/* Custom Candidate Form Styles */
/* General form styling */

#signature-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: auto;  /* Enables scroll bars if needed */
}

.modal-container {
  width: 560px;
  min-height: 290px; /* 240 for canvas + 50px for button bar */
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
}


#ccf-candidate-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Form section headings */
#ccf-candidate-form h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

/* Label styling */
#ccf-candidate-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

/* Input fields, textareas, and selects */
#ccf-candidate-form input,
#ccf-candidate-form textarea,
#ccf-candidate-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
}

/* Textarea adjustments */
#ccf-candidate-form textarea {
    resize: vertical;
}

/* Multiple select adjustments */
#ccf-candidate-form select[multiple] {
    height: auto;
}

/* Button styling */
#ccf-candidate-form button {
    width: 100%;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#ccf-candidate-form button:hover {
    background-color: #45a049;
}

/* Focus styling for inputs, textareas, and selects */
#ccf-candidate-form input:focus,
#ccf-candidate-form textarea:focus,
#ccf-candidate-form select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0px 0px 5px rgba(76, 175, 80, 0.5);
}

/* Placeholder text styling */
#ccf-candidate-form ::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Form validation feedback */
#ccf-candidate-form input:invalid,
#ccf-candidate-form textarea:invalid,
#ccf-candidate-form select:invalid {
    border-color: #e53935;
    box-shadow: none;
}

#ccf-candidate-form input:valid,
#ccf-candidate-form textarea:valid,
#ccf-candidate-form select:valid {
    border-color: #4CAF50;
}

/* Additional form styling for responsiveness */
@media (max-width: 600px) {
    #ccf-candidate-form {
        padding: 15px;
    }

    #ccf-candidate-form label {
        font-size: 0.9rem;
    }

    #ccf-candidate-form input,
    #ccf-candidate-form textarea,
    #ccf-candidate-form select {
        font-size: 0.9rem;
        padding: 8px;
    }

    #ccf-candidate-form button {
        font-size: 1rem;
        padding: 10px;
    }
}

#ccf-candidate-form .form-group {
  margin-bottom: 16px;
}

#ccf-candidate-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

#ccf-candidate-form .form-group input {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#ccf-candidate-form .form-group input[type="file"] {
  padding: 4px;
}

#ccf-candidate-form #clear-canvas-btn {
  background-color: orange;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#ccf-candidate-form #clear-canvas-btn:hover {
  background-color: darkorange;
}

