/* basic accordion styling */
.eligibility-check-container{
    background-color: #f5f5f5;
    /*padding: 2rem 1rem;*/
    border-radius: 20px;
}
div#eligibility-check{padding-top:24px;}
div#ineligible-message{padding-bottom: 30px; line-height:1.3;}
.apai-school-application {
    /*max-width: 800px;*/
    margin: 0 auto;
    background-color: #f5f5f5;
    border: 1px solid #0000001F;
    border-radius: 20px;
    text-align: center;
}
.eligibility-txt {
    font-size: 22px;
    margin-bottom: 1rem;
    padding-top: 36px;
    color: #000;
}
.eligibility-radio-btn {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 40px;
    padding-bottom: 36px;
}
.eligibility-radio-btn label{
    color:#000000A3;
    font-size: 16px;
}
.apai-section-content input, .apai-section-content textarea, .apai-section-content select{
    margin-top: 2px !important;
}
.apai-section-content p{margin-bottom:16px !important; line-height:1.5em;}
.apai-section {
    text-align: left;
    /* border: 1px solid #ccc; */
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f5f5f5;
}
.inner-section{
    margin-bottom: 60px;
}
.inner-section label{
    margin-left: 6px;
    font-size: 14px;
    font-weight: 400;
}
.inner-section h4.title{font-size:14px; margin-bottom:12px;}
.apai-section h2 {
    margin-top: 0;
}
.apai-section-controls {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}
.apai-section-controls button {
    margin-right: 0.5rem;
}
.apai-save-message {
    padding: 0.5rem;
    background: #dff0d8;
    border: 1px solid #d0e9c6;
    color: #3c763d;
    margin-bottom: 1rem;
}
.apai-success-message {
    padding: 0.5rem;
    background: #dff0d8;
    border: 1px solid #d0e9c6;
    color: #3c763d;
    margin-bottom: 1rem;
}
.apai-error {
    border-color: #e74c3c;
}

.apai-astrologer-form-section{padding-bottom:32px;}
/* Stronger, consistent error highlighting (inputs/selects/textareas) */
.apai-astrologer-form input.apai-error,
.apai-astrologer-form select.apai-error,
.apai-astrologer-form textarea.apai-error,
#apai-school-application-form input.apai-error,
#apai-school-application-form select.apai-error,
#apai-school-application-form textarea.apai-error {
    border: 2px solid #e74c3c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.18) !important;
    background: #fff7f7;
}
.apai-section-content input[type="text"], .apai-section-content input[type="number"], .apai-section-content input[type="email"], .apai-section-content input[type="url"], .apai-section-content input[type="password"], .apai-section-content input[type="search"], .apai-section-content input[type="reset"], .apai-section-content input[type="tel"], .apai-section-content input[type="date"], .apai-section-content select, .apai-section-content textarea{
    border-color: #0000001F;
    border-radius: 8px;
}
.apai-section-content input[type="text"], .apai-section-content input[type="number"], .apai-section-content input[type="email"], .apai-section-content input[type="url"], .apai-section-content input[type="password"], .apai-section-content input[type="search"], .apai-section-content input[type="reset"], .apai-section-content input[type="tel"], .apai-section-content input[type="date"], .apai-section-content select{
    height: 54px;
    padding: 16px;
}
.inner-section .textarea-114{
    height: 114px;
}
.inner-section .textarea-80{
    height: 80px;
}
.inner-section .textarea-60{
    height: 60px;
}
.radio_group{
    display: flex;
    gap: 10px;
}
.upload-box {
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  margin-top: 0 !important;
  color: #00000099;
}

.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.single-column .upload-label {
    min-height: 75px;
}

.upload-label:hover {
  border-color: #007bff;
  background-color: #f0f8ff;
}

.upload-text {
  font-size: 16px;
  color: #555;
}

.upload-text small {
  display: block;
  margin-top: 8px;
  color: #999;
}

.upload-label input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.save-btn, .prev-btn{
    background-color: #f5f5f5 !important;
    border: 2px solid #0075E1;
    border-radius: 10px;
    color: #0075E1 !important;
    padding: 10px 20px;
    font-size: 18px;
}
.next-btn{
    background-color: #0075E1 !important;
    padding: 10px 20px;
    border: 2px solid #0075E1;
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 18px;
    
}
.apai-errors {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid #e74c3c;
    background: #fff7f7;
    border-radius: 10px;
    color: #b3261e;
}
.apai-errors ul { margin: 0; padding-left: 1.25rem; }

/* intl-tel-input: make it fit nicely in our layout */
.apai-astrologer-form .iti {
    width: 100%;
}
.apai-astrologer-form .iti input {
    width: 100%;
}

.info-text{font-size:14px;}
.info-text.dark {
  color: #000 !important;
}
/* faculty repeater */
.faculty-row {
    border: 1px dashed #aaa;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #fff;
}
.remove-faculty {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}
#add-faculty {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

/* tabs and progress bar */
.apai-form-tabs {
    margin-bottom: 1rem;
}
.apai-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0;
    margin: 0 !important;
    list-style: none;
    border-bottom: 1px solid #ccc;
    border-radius: 20px 20px 0 0;
    justify-content: space-evenly;
    margin-left: 0 !important;
    padding-left: 0px !important;
    gap: 0;
}
.apai-tabs li {
    padding: 1rem 1rem;
    cursor: pointer;
    background: #f5f5f5;
    color: #00000040;
    font-size: 18px;
    font-weight: 600;
    /* border: 1px solid #ccc; */
    border-bottom: none;
    /* margin-right: 0.2rem; */
    white-space: nowrap;
    width: 100%;
}
.apai-tabs li.active {
    background: #f5f5f5;
    color: #000000;
}
.apai-tabs li.completed {
    background: #f5f5f5;
    color: #000000;
}
.apai-progress-bar {
    background: #ccc;
    height: 3px;
    position: relative;
}
.apai-progress-fill {
    background: #0075E1;
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

/* responsive table for school directory */
.apai-school-directory input {
    margin-bottom: 0rem !important;
    width: 100%;
    max-width: 400px;
    padding: 0.5rem;
}
.table-responsive {
    overflow-x: auto;
}
.apai-school-table {
    width: 100%;
    border-collapse: collapse;
    border: 0px;
}
.apai-school-table thead{background:#0075E1 !important;}
.apai-school-table th{font-size:16px !important;}
.apai-school-table th,
.apai-school-table td {
    border: 0px solid #ccc;
    padding: 24px 12px !important;
    text-align: left;
}
.apai-school-table thead th:first-child{
    border-top-left-radius:20px !important;
}
.apai-school-table tbody tr{
    background: #F6F6F6 !important;
}
.apai-school-table tbody tr:nth-child(2n){
    background: #E5E5E5 !important;
}
.d-flex{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.d-flex .column-three{
  flex: 0 0 33.333%;     /* always 1/3 width */
  box-sizing: border-box;
}
.column-three > p,
.d-flex.column-three p {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 250px;
}
.column-four{
    display: flex;
    justify-content: space-between;
}

.column-four span{
    width: 23%;
}
.d-flex p{
    width: 100%;
}
form.apai-astrologer-form h2 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 22px;
    margin-bottom: 16px;
}
.apai-astrologer-form label {
    font-size: 14px;
    font-weight: 400;
    color: #00000099 !important;
}
/* All input + textarea placeholders */
input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="tel"]::placeholder,
input[type="date"]::placeholder,
textarea::placeholder {
    color: #00000066;
    font-size: 14px !important;
    opacity: 1;
}
.apai-astrologer-form input, .apai-astrologer-form select {
    height: 50px;
    border-color: #0000001F !important;
    box-shadow: none;
    border-radius: 8px;
}
.apai-astrologer-form input[type="checkbox"], .apai-astrologer-form input[type="radio"] {
    width: auto;
    height: auto;
}
.apai-astrologer-form input[type="checkbox"]{margin-right:10px; border-color:black;}
.quicktags-toolbar input{height: auto;}
.iti__country-container{
    overflow: hidden !important;
    border-radius: 12px !important;
}
.iti__selected-country {
    background-color: #fff !important;
    color: #000 !important;
    border-radius: 12px 0 0 12px !important;
    overflow: hidden !important;
}
.iti__selected-dial-code {
    padding-right: 6px;
}
.apai-astrologer-form p{
    margin-bottom: 10px;
    font-size: 13px !important;
}
.mce-toolbar .mce-ico{color: #ffffff !important;}
.apai-astrologer-form .radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.apai-astrologer-form .radio-group label input {
  height: auto;
}

.txt-black{
    color: #000000 !important;
}
.txt-black label{
    color: #000000 !important;
}
.about-label-out{
    margin-top: 24px;
    margin-bottom: -16px !important;
}
.apai-astrologer-form .payment-info {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #0000001F;
    border-radius: 8px;
}
.apai-astrologer-form .payment-info p span{color:#000000; font-weight:600;}
.btn-primary {
    background: #0075E1 !important;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}
@media (max-width: 900px) {
    .column-three > p,
    .d-flex.column-three p {
        flex: 1 1 100%;
    }
}
@media (max-width: 600px) {
    .apai-tabs { flex-wrap: wrap; }
}

/* ajax overlay/spinner */
.apai-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apai-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #0075e1;
    border-radius: 50%;
    animation: apai-spin 0.8s linear infinite;
}
@keyframes apai-spin {
    to { transform: rotate(360deg); }
}

.apai-membership-downloads {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

.apai-membership-downloads th,
.apai-membership-downloads td {
    padding: 0.5em 0.75em;
    border: 1px solid #ccc;
    text-align: left;
}

.apai-membership-downloads .apaibadge {
    display: inline-block;
    font-size: 0.85em;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
}

.apai-membership-downloads .apaibadge.free {
    background-color: #4caf50;
}

.apai-membership-downloads .apaibadge.paid {
    background-color: #f44336;
}

.apai-download-button {
    display: inline-block;
    padding: 4px 8px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s;
}

.apai-download-button:hover { background: #005177; }

/* ---- tab container & buttons ---- */
.apai-download-tabs {
    margin: 1em 0;
}

.apai-tab-bar {
    display: flex;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;              /* mobile swipe */
    -webkit-overflow-scrolling: touch;
}

.apai-tab {
    flex: 0 0 auto;
    padding: 0.75em 1em;
    cursor: pointer;
    background: #f9f9f9;
    border: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.apai-tab:hover { background: #eee; }
.apai-tab.active {
    background: #fff;
    border-bottom: 3px solid #0073aa;   /* highlight active */
    color: #0073aa;
}

/* ---- content panels ---- */
.apai-tab-content {
    padding: 1em 0;
}

/* ---- table wrapper for responsiveness ---- */
.table-wrapper {
    display: block;
    overflow-x: auto;
}

/* small-screen tweak: stack tabs vertically */
@media (max-width: 480px) {
    .apai-tab-bar { flex-direction: column; }
    .apai-tab { width: 100%; text-align: center; }
}