/*
 Theme Name:   DT-The7 Child
 Description:  Child theme for DT-The7
 Author:       RytisP
 Template:     dt-the7
 Text Domain:  dt-the7-child
 Version:      1.0.0
*/

#main>.wf-wrap {
    padding: 0;
}

#main {
    padding: 40px 0 50px 0;
}

.registration-shortcode .wlsm-grid {
    grid-template-columns: 3fr;
}

.registration-shortcode .wlsm.wlsm-grid {
    overflow: visible;
}

#wlsm-submit-registration-section {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
    border-radius: 10px;
    margin: 0 20px;
}

#wlsm-submit-registration-section>.wlsm-header-title {
    display: none;
}

#wlsm-submit-registration-section>form {
    padding: 20px;
}

.wlsm-row>.wlsm-form-group {
    padding-right: .8rem !important;
}

.wlsm .wlsm-form-sub-heading {
    padding-bottom: 10px;
}

.wlsm-row>.wlsm-form-group:nth-of-type(4) {
    padding-left: 0 !important;
}

.wlsm-form-group select,
.wlsm-form-group input {
    margin-top: 10px;
}

.wlsm-row>.wlsm-form-group .wlsm-form-check {
    margin-top: 10px;
}

#wlsm-submit-registration-section>form button {
    margin-top: 10px;
}

.wlsm-parent-students .wlsm-parent-student-section {
    display: flex;
    flex-flow: row-reverse;
    gap: 30px;
}

.wlsm-container .wlsm-parent-student-detail {
    width: 100%;
}

.wlsm-parent-students .wlsm-parent-student-section:after {
    content: none;
}

main {
    background: #f1f1f1;
}

button#wlsm-print-class-timetable-btn,
button#wlsm-view-attendance-btn,
button.woocommerce-Button,
button.elementor-button,
.login-submit input,
.service-flip-box .elementor-flip-box__button.elementor-button,
.main-button a,
a.main-button,
button.main-button {
    padding: 15px 30px !important;
    font-size: 20px !important;
    background: #3b7352 !important;
    border: 1px solid #3b7352 !important;
    border-radius: 10px !important;
    color: #fff !important;
}

@media screen and (max-width: 767px) {
    button#wlsm-print-class-timetable-btn,
    button#wlsm-view-attendance-btn,
    button.woocommerce-Button,
    button.elementor-button,
    .login-submit input,
    .service-flip-box .elementor-flip-box__button.elementor-button,
    .main-button a,
    a.main-button,
    button.main-button {
        padding: 10px 20px !important;
        font-size: 16px !important;
    }
}

a.main-button {
    height: max-content;
    padding: 10px 20px !important;
}

button#wlsm-print-class-timetable-btn {
    margin: 15px 0 30px 0;
    padding: 10px 15px !important;
    font-size: 15px !important;
}

@media screen and (max-width: 1024px) {
    a.main-button {
        padding: 5px 10px !important;
    }
}

button#wlsm-print-class-timetable-btn:hover,
button#wlsm-view-attendance-btn:hover,
button.woocommerce-Button:hover,
button.elementor-button:hover,
.login-submit input:hover,
.service-flip-box .elementor-flip-box__button.elementor-button:hover,
.main-button a:hover,
a.main-button:hover,
button.main-button:hover {
    background: #fff !important;
    color: #3b7352 !important;
    border-color: #3b7352 !important;
}

.school-select-row {
    gap: 40px;
    row-gap: 0;
}

body .elementor-element.registration-menu-link>a.elementor-button {
    background: none;
    color: #000;
    margin-left: 15px;
}

body .elementor-element.registration-menu-link>a.elementor-button:hover {
    color: #FCB815;
}

body .elementor-element.registration-menu-link>a.elementor-button:hover:after {
    left: 24px;
    right: auto;
    height: 1px;
    background: #FCB815;
    width: 75%;
    transition: .35s cubic-bezier(.175, .885, .32, 1.275);
    top: calc(100% - var(--decoration-height, 0px));
    position: absolute;
    content: "";
}

body .elementor-element.registration-menu-link>a.elementor-button span span {
    font-size: 16px;
}

body.logged-in .elementor-element.registration-menu-link {
    display: none;
}

body#the7-body.logged-in ul.dt-nav-menu-horizontal {
    margin-right: 20px;
}

@media screen and (max-width: 1100px) {
    body .elementor-element.registration-menu-link {
        display: none;
    }
}

/* hide real radio buttons */
.payments-aggrement-container input[type="checkbox"],
.parent-agree-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* style labels as checkboxes */
.payments-aggrement-container label,
.parent-agree-container label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    display: block;
    margin-bottom: 10px;
}

/* empty checkbox box */
.payments-aggrement-container label::before,
.parent-agree-container label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 4px;
    /* square edges */
    background: #fff;
}

/* checkmark */
.payments-aggrement-container input[type="checkbox"]:checked+label::after,
.parent-agree-container input[type="radio"]:checked+label::after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: -1px;
    font-size: 18px;
    color: #333;
    /* checkmark color */
    font-weight: bold;
}

/* generic custom checkbox/radio styles */
.custom-check input[type="checkbox"],
.custom-check input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    display: inline-block;
    margin-left: 0 !important;
}

.custom-check label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 4px;
    background: #fff;
}

.custom-check input[type="checkbox"]:checked+label::after,
.custom-check input[type="radio"]:checked+label::after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: -1px;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.payments-aggrement-container,
.parent-agree-container {
    margin-bottom: 25px;
}

.icon-column {
    height: max-content;
}

.home-icons-container .elementor-icon svg {
    filter: brightness(0) saturate(100%) invert(68%) sepia(96%) saturate(705%) hue-rotate(348deg) brightness(103%) contrast(98%);
}

.home-partners-container h4 {
    display: none;
}

.home-partners-container .text-and-icon-carousel .dt-owl-item-inner .dt-owl-item-image {
    width: auto;
    max-height: 75px;
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-partners-container .text-and-icon-carousel .dt-owl-item-inner .dt-owl-item-image img {
    object-fit: contain;
    width: 100%;
    max-height: 75px;
    min-height: 75px;
}

.home-partners-container .text-and-icon-carousel .dt-owl-item-inner .dt-owl-item-image:hover {
    overflow: visible;
}

.home-partners-container .text-and-icon-carousel .dt-owl-item-inner .dt-owl-item-image:hover img {
    transform: scale(1.02) !important;
}

.registration-menu-link-mobile>a {
    background: none !important;
    color: #000 !important;
    padding-bottom: calc(40px / 2) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px solid #CFD8DC9E !important;
    width: 100%;
}

.registration-menu-link-mobile>a>span {
    justify-content: start;
}

.registration-menu-link-mobile>a>span>span {
    font-size: 16px;
    padding-top: 15px;
}

.registration-menu-link-mobile>a:hover {
    color: #FCB815 !important;
}

.social-icon i {
    font-size: 20px;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.wlsm-parent-students {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    justify-content: center;
    align-items: flex-start;
}

.wlsm-parent-student-entity {
    padding-bottom: 10px;
}

.wlsm-parent-student-entity>a {
    padding-top: 10px;
}

.wlsm-parent-student-entity>.wlsm-parent-student-detail {
    padding: 20px 0;
}

.wlsm-container .wlsm-content-area {
    min-height: unset;
}

.wlsm-container .wlsm-parent-student-detail {
    display: flex;
    justify-content: space-between;
}

.g-recaptcha {
    margin: 20px 0;
}

.recaptcha-error {
    color: red;
    font-size: 15px;
    font-weight: 500;
}

.jconfirm-box-container>.jconfirm-box {
    border-radius: 10px;
    border: none !important;
}

.wlst-st-list.wlsm-st-notices>li {
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.student-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    width: 49%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.student-card:last-child {
    margin-right: auto;
}

.student-card:first-child {
    margin-right: unset;
}

.student-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.student-info {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.student-info.dashboard {
    margin: 0;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FCB815;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.student-text {
    line-height: 1.4;
}

.student-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.student-text p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.contract-btn {
    background: #3b7352;
    border: 1px solid #3b7352;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    transition: background 0.4s;
}

.contract-btn:hover {
    background: #fff;
    color: #3b7352;
}

.contract-number {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.student-actions a {
    text-align: center;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.student-actions a:hover {
    color: #FCB815
}

.student-actions i {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.wlsm-grid .wlsm-row.school-select {
    gap: 1%;
}

.wlsm-grid .wlsm-row.school-select > div {
    flex: 0 0 32.66%;
    max-width: 32.66%;
}

.leave-request-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.leave-request-button.disabled {
    cursor: not-allowed;
}

.leave-request-button span {
    text-align: center;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.leave-request-button:hover img {
    filter: brightness(0) saturate(100%) invert(78%) sepia(63%) saturate(1340%) hue-rotate(344deg) brightness(98%) contrast(101%);
}


.leave-request-button:hover span {
    color: #FCB815;
}

@media screen and (max-width: 1199px) {
    .wlsm-grid .wlsm-row.school-select > div:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .school-not-found {
        display: flex;
        gap: 20px;
        margin-top: 20px;
        align-items: center;
    }

    .school-not-found h5 {
        margin: 0;
    }
}

@media screen and (min-width: 1100px) and (max-width: 1350px) {
    .home-main-container {
        margin-top: 0;
    }

    .home-hero-container {
        margin-bottom: 100px;
    }
}

@media screen and (min-width: 992px) and (max-width: 1100px) {
    .student-actions a,
    .leave-request-button span {
        font-size: 12px;
    }
}

@media screen and (min-width: 950px) and (max-width: 1100px) {
    .home-main-container {
        margin-top: 100px;
    }
}

@media screen and (max-width: 1024px) {
    .wlsm-parent-students .wlsm-parent-student-section {
        padding: 12px 15px;
    }

    .wlsm-container .wlsm-parent-student-detail>div {
        width: 60%;
    }

    .wlsm-container .wlsm-parent-student-detail>a {
        width: 40%;
        text-align: center;
        font-size: 16px !important;
    }
}

@media screen and (max-width: 991px) {
    .wlsm-parent-students {
        gap: 20px;
    }

    .student-card {
        width: 100%;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px;
    }
}

@media screen and (min-width: 767px) and (max-width: 991px) {
    .wlsm-grid .wlsm-col-4 {
        -ms-flex: 0 0 49% !important;
        flex: 0 0 49% !important;
        max-width: 49% !important;
    }

    .wlsm-row>.wlsm-form-group:nth-of-type(3) {
        padding-left: 0 !important;
    }

    .wlsm-row>.wlsm-form-group:nth-of-type(4) {
        padding-left: 0.8rem !important;
    }

    .wlsm-grid .wlsm-row.school-select {
        gap: 2%;
    }
}

@media screen and (max-width: 767px) {
    .home-hero-text-box {
        margin-top: 300px;
    }

    .wlsm-parent-students .wlsm-parent-student-section {
        flex-direction: column;
        gap: 10px;
    }

    .wlsm-grid .wlsm-row.school-select {
        row-gap: 10px;
        margin-bottom: 20px;
    }

    .wlsm-row>.wlsm-form-group {
        padding-left: 0 !important;
    }

    .wlsm-grid .wlsm-col-4 {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media screen and (max-width: 650px) {
    .jconfirm.jconfirm-bootstrap .jconfirm-box {
        width: 95% !important;
    }
}

@media screen and (max-width: 580px) {
    .home-hero-text-box {
        margin-top: 200px;
    }

    .wlsm-container .wlsm-parent-student-detail {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .wlsm-container .wlsm-parent-student-detail>div {
        width: 100%;
    }

    .wlsm-container .wlsm-parent-student-detail>a {
        width: 100%;
    }

    .school-not-found span {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .leave-request-button {
        flex-direction: row;
        gap: 10px;
        align-items: baseline;
    }

    .leave-request-button img {
        width: 20px;
    }

    .student-actions {
        flex-direction: column;
    }

    .student-actions a {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }
}

/* Parent payments toggle section */
.parent-payments-section {
    margin-top: 16px;
}

.parent-payments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    user-select: none;
}

.parent-payments-header .toggle-icon {
    font-weight: 700;
}

.parent-payments-body {
    margin-top: 10px;
}

/* Payment rows states */
.parent-payments-body table tr.table-success {
    background-color: #edf7ed !important; /* soft green */
}

.parent-payments-body table tr.table-danger {
    background-color: #fdecea !important; /* soft red */
}

.parent-payments-body table tr.table-success td,
.parent-payments-body table tr.table-danger td {
    border-color: #eee !important;
}

.parent-payments-body table tr.table-success .badge-success {
    background-color: #28a745;
}

.parent-payments-body table tr.table-danger .badge-danger {
    background-color: #dc3545;
}

/* Limit payments table to 5 rows with scroll, keep header visible */
.parent-payments-body .table-responsive {
    /* Approx row height: 44px, header ~48px */
    max-height: calc(44px * 5 + 48px);
    overflow-y: auto;
}

.parent-payments-body table thead th {
    position: sticky;
    top: 0;
    background: #f7f7f7;
    z-index: 2;
}

.parent-payments-body table tbody tr {
    height: 44px;
}

/* Payment Summary - Parent Dashboard (simplified, centered) */
.parent-payments-body .parent-plan-summary {
	padding: 8px 0;
	margin-bottom: 10px;
	font-size: 14px;
}
.parent-payments-body .parent-plan-summary .line {
	margin: 2px 0;
}
.parent-payments-body .parent-plan-summary .plan-type {
	font-weight: 600;
}
.parent-payments-body .parent-plan-summary .nvs-split {
	color: #666;
	margin-left: 6px;
}
.parent-payments-body .parent-plan-summary .plan-info {
	color: #666;
    font-weight: 600;
	margin-left: 6px;
}

@media screen and (max-width: 480px) {
    .home-hero-text-box {
        margin-top: 100px;
    }

    .home-main-container img {
        max-height: 350px;
    }

    .wlsm-parent-students .wlsm-parent-student-section {
        padding: 12px 15px 20px 15px !important;
    }

    .contract-number {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .contract-btn {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 380px) {
    #wlsm-submit-registration-section {
        margin: 0;
    }
}

/* Hide day picker for attendance date field - only show month/year selection */
#wlsm_date_of_attendance_ + .ui-datepicker .ui-datepicker-calendar,
.ui-datepicker:has(#wlsm_date_of_attendance_) .ui-datepicker-calendar {
    display: none !important;
}

/* Hide Today button for attendance date field */
#wlsm_date_of_attendance_ + .ui-datepicker .ui-datepicker-buttonpane,
.ui-datepicker:has(#wlsm_date_of_attendance_) .ui-datepicker-buttonpane {
    display: none !important;
}

/* Current month info message styling */
.current-month-info {
    margin-top: 5px;
    padding: 8px;
    background-color: #fde3f7;
    border: 1px solid #ff0000;
    border-radius: 4px;
    color: #d21919;
    font-size: 14px;
}

/* Leave Request Modal Styles */
.leave-request-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 5vh auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

#leave-request-form {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b7352;
    box-shadow: 0 0 0 3px rgba(59, 115, 82, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-cancel,
.btn-submit {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e1e5e9;
}

.btn-cancel:hover {
    background: #e9ecef;
    color: #333;
}

.btn-submit {
    background: #3b7352;
    color: #fff;
    border: 1px solid #3b7352;
}

.btn-submit:hover:not(:disabled) {
    background: #2d5a3f;
    border-color: #2d5a3f;
}

.btn-submit:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 2vh auto;
        max-height: 96vh;
    }
    
    .modal-header,
    #leave-request-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

.form-group.leave-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group.leave-info > span:first-child {
    text-align: center;
    font-size: 40px;
    height: 40px;
}

.form-group.leave-info > span:last-child {
    color: red;
}

@media screen and (max-width: 991px) {
    .info-layout-register > .e-con-inner > div,
    .info-layout-leave > .e-con-inner > div {
        width: 100%;
    }
    
    .info-layout-leave > .e-con-inner > div:nth-child(1) {
        order: 2;
    }

    .info-layout-leave > .e-con-inner > div:nth-child(2) {
        order: 1;
    }

    .info-layout-leave > .e-con-inner > div:nth-child(3) {
        order: 3;
    }

    .info-layout-leave > .e-con-inner > div:nth-child(4) {
        order: 4;
    }

    .info-layout-leave > .e-con-inner > div:nth-child(5) {
        order: 6;
    }

    .info-layout-leave > .e-con-inner > div:nth-child(6) {
        order: 5;
    }

    .info-layout-register > .e-con-inner > div:nth-child(1) {
        order: 1
    }

    .info-layout-register > .e-con-inner > div:nth-child(2) {
        order: 3;
    }

    .info-layout-register > .e-con-inner > div:nth-child(3) {
        order: 2;
    }

    .info-layout-register > .e-con-inner > div:nth-child(4) {
        order: 4;
    }

    .info-layout-register > .e-con-inner > div:nth-child(5) {
        order: 5;
    }
}

@media screen and (max-width: 767px) {
    .info-layout-register > .e-con-inner > div div > p,
    .info-layout-leave > .e-con-inner > div div > p {
        font-size: 18px;
        text-align: justify;
    }
}