/* Background only */
body {
  background-color: #f8f9fa;
  background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Remove default margins from html and body */
html {
  margin: 0;
  padding: 0;
}

/* Form container spacing */
.web-form-container {
  margin-top: 0;
  margin-bottom: 0;
}

/* Input fields styling - Higher specificity for web form inputs */
.input-with-feedback.form-control,
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
  border: 1.5px solid #242424 !important;
  border-radius: 6px;
  background-color: #ffffff;
  transition: all 0.2s ease;
  color: #495057;
}

/* Input hover state - More highlighted */
.input-with-feedback.form-control:hover,
.form-control:hover,
input:hover,
select:hover,
textarea:hover {
  border-color: #007bff !important;
  background-color: #e3f2fd;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

/* Input focus state - Enhanced */
.input-with-feedback.form-control:focus,
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.3);
  outline: none;
  background-color: #ffffff;
}

/* Field labels */
.control-label {
  font-weight: 500;
  color: #495057 !important;
  margin-bottom: 6px;
}

/* Required field asterisk only */
.control-label .reqd,
.reqd,
.static-area .ellipsis .reqd {
  color: #dc3545;
}

/* Validation - Error fields */
.input-with-feedback.form-control.is-invalid,
.form-control.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

/* Grid error styling - keep text normal color */
.form-grid.is-invalid,
.form-grid.has-error {
  border: 2px solid #dc3545 !important;
  border-radius: 6px;
}

/* Ensure grid text remains normal color even with error styling */
.form-grid.is-invalid .static-area,
.form-grid.has-error .static-area,
.form-grid.is-invalid .grid-static-col,
.form-grid.has-error .grid-static-col,
.form-grid.is-invalid .ellipsis,
.form-grid.has-error .ellipsis,
.form-grid .static-area,
.form-grid .grid-static-col,
.form-grid .ellipsis {
  color: #495057 !important;
}

/* Grid header text */
.form-grid .grid-heading-row .static-area,
.form-grid .grid-heading-row .ellipsis {
  color: #495057 !important;
  font-weight: 500;
}

/* Checkbox styling inside grid */
.form-grid input[type="checkbox"] {
  color: #495057 !important;
  border-color: #ced4da !important;
}

/* Grid row hover effect */
.form-grid .grid-row:hover {
  background-color: #f8f9fa;
}

/* Grid row index styling */
.form-grid .row-index span {
  color: #6c757d !important;
  font-weight: 500;
}

/* Validation - Success fields */
.input-with-feedback.form-control.is-valid,
.form-control.is-valid,
input.is-valid,
select.is-valid,
textarea.is-valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.15);
}

/* Invalid feedback message */
.invalid-feedback,
.help-box.has-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
}

/* Valid feedback message */
.valid-feedback,
.help-box.has-success {
  color: #28a745;
  font-size: 14px;
  margin-top: 4px;
}

/* Section headings */
.section-head,
.form-section .section-head {
  font-weight: 600;
  color: #495057;
  margin-bottom: 16px;
  font-size: 18px;
}

/* Form group spacing */
.form-group {
  margin-bottom: 16px;
}

/* Help text */
.help-text,
.help-box {
  font-size: 13px;
  color: #6c757d;
  margin-top: 4px;
}

/* Placeholder text */
::placeholder {
  color: #adb5bd;
  opacity: 1;
}

/* Hide duplicate row buttons for specific tables */
div[data-fieldname="total_of_vdd"] .row-actions .grid-duplicate-row,
div[data-fieldname="total_of_vdd"] .row-actions .grid-duplicate-row:hover,
div[data-fieldname="total_of_vdd"] .row-actions .grid-duplicate-row:active,
div[data-fieldname="total_of_vdd"] .row-actions .grid-duplicate-row:focus {
  display: none !important;
}

div[data-fieldname="list_of_doc"] .row-actions .grid-duplicate-row,
div[data-fieldname="list_of_doc"] .row-actions .grid-duplicate-row:hover,
div[data-fieldname="list_of_doc"] .row-actions .grid-duplicate-row:active,
div[data-fieldname="list_of_doc"] .row-actions .grid-duplicate-row:focus {
  display: none !important;
}

#page-organisation-form-new .discard-btn {
  display: none !important;
}

#page-leader-form-new .discard-btn {
  display: none !important;
}

div[data-fieldname="list_of_candidates_applying_for_glodp_programe"] .row-index {
  display: none !important;
}

div[data-fieldname="list_of_candidates_applying_for_glodp_programe"] .grid-heading-row .row-index {
  display: none !important;
}

div[data-fieldname="org_network"] .row-index {
  display: none !important;
}

div[data-fieldname="org_network"] .grid-heading-row .row-index {
  display: none !important;
}

div[data-fieldname="section_break_fycu"] .section-head,
div[data-fieldname="section_break_kqpf"] .section-head,
div[data-fieldname="proposed_work_in_grassroots_leadership_program_section"] .section-head,
div[data-fieldname="section_break_zpjn"] .section-head,
div[data-fieldname="section_constitution_values"] .section-head,
div[data-fieldname="section_break_kqpf"] .section-head,
div[data-fieldname="section_proposed_action_plan"] .section-head,
div[data-fieldname="section_wing"] .section-head,
div[data-fieldname="section_proposed_action_plan_wing"] .section-head,
div[data-fieldname="section_work_experience_ntdt"] .section-head,
div[data-fieldname="section_proposed_action_plan_ntdt"] .section-head,
div[data-fieldname="section_work_experience_gbv"] .section-head,
div[data-fieldname="section_break_oiav"] .section-head,
div[data-fieldname="total__no_of_leaders_application_section"] .section-head
{
  margin: 0px !important;
  padding: 0px !important;
}
