/*
Theme Name: Gowilds Child
Theme URI: https://gaviaspreview.com/wp/gowilds/
Author URI: https://themeforest.net/user/gavias
Author: Gaviasthemes Team
Description: Child theme for the Gowilds theme.
Template: gowilds
*/

/* General Form Styling */
.custom-trek-form {
    max-width: 100%;
    margin: 20px auto;
    padding: 30px;
    background-color: #f9f9f9de;
    /* Light gray background for the form area */
    border-radius: 8px;
    font-family: Arial, sans-serif;
    color: #333;
}

.custom-trek-form label,
.custom-trek-form .form-group>p {
    /* Target paragraph elements used as labels for radio/checkbox groups */
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffbd59;
    font-size: 16px;
}

.custom-trek-form .form-group>p {
    color: #555;
    /* Darker gray for question text */
    font-weight: normal;
    margin-bottom: 12px;
}

/* Input fields, select, textarea */
.custom-trek-form input[type="text"],
.custom-trek-form input[type="email"],
.custom-trek-form input[type="tel"],
.custom-trek-form input[type="date"],
.custom-trek-form select,
.custom-trek-form textarea {
    width: 100%;
    padding: 0px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #ededed !important;
    /* Light gray input background */
    color: #555;
    font-size: 14px;
}

.form-group.question-group.toggle-style {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.form-group.question-group.radio-circle-style {
    display: flex;
    justify-content: space-between;
}

.custom-trek-form input[type="text"]::placeholder,
.custom-trek-form input[type="date"]::placeholder {
    color: #999;
}

span.wpcf7-form-control.wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
}

/* Row and Column Layout */
.custom-trek-form .form-row {
    display: flex;
    gap: 70px;
    /* Space between columns */
    margin-bottom: 5px;
    /* Space below the row if inputs have their own margin-bottom */
}

.custom-trek-form .form-col {
    flex: 1;
    /* Each column takes equal space */
}

.custom-trek-form .form-col:last-child {
    margin-right: 0;
}

/* Styling for CF7 Radio & Checkbox wrappers */
.custom-trek-form .wpcf7-form-control-wrap {
    display: block;
}

.custom-trek-form .wpcf7-list-item {
    margin: 0 10px 10px 0;
    /* Spacing between radio/checkbox items */
    display: inline-block;
    /* Align items in a row */
}

.custom-trek-form .wpcf7-list-item label {
    display: inline-flex;
    /* Align input and text */
    align-items: center;
    cursor: pointer;
    color: #555;
    /* Label text color for radio/checkboxes */
    font-weight: normal;
    font-size: 14px;
}

/* Hide original radio/checkbox */
.custom-trek-form .wpcf7-list-item input[type="radio"],
.custom-trek-form .wpcf7-list-item input[type="checkbox"] {
    display: none;
}

/* Custom Radio Button Styling (Circles for exercise, hours, hike duration, gender) */
.custom-trek-form .radio-circle-style .wpcf7-list-item-label::before,
.custom-trek-form .gender-group .wpcf7-list-item-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    vertical-align: middle;
    /* Align with text */
}

.custom-trek-form .radio-circle-style input[type="radio"]:checked+.wpcf7-list-item-label::before,
.custom-trek-form .gender-group input[type="radio"]:checked+.wpcf7-list-item-label::before {
    background-color: #e67e22;
    /* Orange fill */
    border-color: #e67e22;
    /* Orange border */
    box-shadow: inset 0 0 0 3px #fff;
    /* Inner white circle */
}

/* Custom "Toggle-Like" Radio Button Styling (for Yes/No questions) */
.custom-trek-form .toggle-style .wpcf7-list-item {
    margin-right: 5px;
    /* Less space for tighter grouping */
}

.custom-trek-form .toggle-style .wpcf7-list-item-label {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    /* Pill shape */
    background-color: #f0f0f0;
    color: #555;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-size: 13px;
}

.custom-trek-form .toggle-style .wpcf7-list-item-label:hover {
    background-color: #e0e0e0;
}

.custom-trek-form .toggle-style input[type="radio"]:checked+.wpcf7-list-item-label {
    background-color: #e67e22;
    /* Orange background for selected */
    border-color: #e67e22;
    color: #fff;
    /* White text for selected */
}

/* Custom Checkbox Styling (for "Suffer from") */
.custom-trek-form .checkbox-group .wpcf7-list-item {
    display: block;
    width: calc(30% - 10px);
    margin-bottom: 10px;
    border: 2px solid #dadada;
    padding: 10px 0px 4px 10px;
}

/* Ensure checkbox options can wrap if many */
.custom-trek-form .checkbox-group .checkbox-options {
    /*display: flex;*/
    /*flex-wrap: wrap;*/
    gap: 0px 20px;
    /* gap between items, 20px for column gap */
}

.custom-trek-form .checkbox-group .wpcf7-list-item-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 50%;
    /* Slightly rounded square */
    border: 2px solid #ccc;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    vertical-align: middle;
    /* Align with text */
}

.custom-trek-form .checkbox-group input[type="checkbox"]:checked+.wpcf7-list-item-label::before {
    text-align: center;
    line-height: 16px;
    font-size: 14px;
    background-color: #e67e22;
    border-color: #e67e22;
    box-shadow: inset 0 0 0 3px #fff;
}

/* Date Picker Icon Hint */
.custom-trek-form input[type="date"] {
    position: relative;
}

/* Basic styling for date picker indicator (browser default is used) */
.custom-trek-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

div#wpcf7-f2706-p2624-o1 input.wpcf7-form-control.wpcf7-submit.has-spinner {
    width: 22% !important;
    font-size: 15px !important;
}

span.wpcf7-spinner {
    display: none;
}

/* Buttons */
.custom-trek-form .form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    /* Align buttons to the right */
    gap: 15px;
}

.custom-trek-form input[type="submit"],
.custom-trek-form .cancel-button {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-trek-form input[type="submit"] {
    background-color: #e67e22;
    /* Orange submit button */
    color: white;
}

.custom-trek-form input[type="submit"]:hover {
    background-color: #d35400;
    /* Darker orange on hover */
}

.custom-trek-form .cancel-button {
    background-color: #fff;
    /* White cancel button */
    color: #e67e22;
    /* Orange text */
    border: 1px solid #e67e22;
    /* Orange border */
}

.custom-trek-form .cancel-button:hover {
    background-color: #fdf2e9;
    /* Very light orange on hover */
}


/*routes table css*/
 .table-container-kilimanjaro {
            /* overflow-x: auto is kept as a fallback for very small screens */
            overflow-x: auto;
        }

        /* --- Desktop Table Styles using a unique ID --- */
        #kilimanjaro-routes-table {
            width: 100%;
            border-collapse: collapse;
            border: 2px solid black;
            table-layout: fixed; /* Helps distribute column width more evenly */
        }

        #kilimanjaro-routes-table th, 
        #kilimanjaro-routes-table td {
               padding: 12px 10px;
    border: 2px solid black;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
    color: #000;
    font-size: 15px;
        line-height: 20px;
        }
        td.shining-star {
    font-size: 24px !important;
}

        #kilimanjaro-routes-table thead th {
            background-color: #ffc154; /* Orange from the image */
            color: black;
            font-weight: bold;
               
        }
        
        /* Alternating row colors for the body */
        #kilimanjaro-routes-table tbody tr {
            background-color: #ffffff; /* White rows */
        }

        #kilimanjaro-routes-table tbody tr:nth-child(odd) {
            background-color: #ffc154; /* Orange rows */
        }
        
        /* --- Responsive Styles (Mobile First Approach) --- */
        @media screen and (max-width: 800px) {
            #kilimanjaro-routes-table {
                table-layout: auto; /* Revert for mobile view */
                border: 0;
            }

            #kilimanjaro-routes-table thead {
                display: none; /* Hide the desktop header */
            }

            #kilimanjaro-routes-table tr {
                display: block; /* Make each row a block-level element (a card) */
                margin-bottom: 25px;
                border: 2px solid black;
                border-radius: 5px;
                overflow: hidden;
            }

            #kilimanjaro-routes-table td {
                display: block; /* Make each cell a block */
                text-align: right; /* Align cell content to the right */
                padding-left: 50%; /* Make space for the label */
                position: relative;
                border: none;
                border-bottom: 1px solid #e0e0e0;
            }
            
            #kilimanjaro-routes-table td::before {
                content: attr(data-label); /* Use the data-label attribute as content */
                position: absolute;
                left: 15px;
                width: 45%;
                font-weight: bold;
                text-align: left;
                white-space: nowrap;
            }

            #kilimanjaro-routes-table tr td:last-child {
                border-bottom: 0;
            }
            
            #kilimanjaro-routes-table tbody tr {
                background-color: #ffffff;
            }
            #kilimanjaro-routes-table tbody tr:nth-child(odd) {
                background-color: #ffc154;
            }
            
            #kilimanjaro-routes-table tbody td {
                background-color: inherit;
            }
        }

/*routes tables css edns*/







/* Responsive Adjustments (Optional: Add more as needed) */
@media (max-width: 767px) {

    .form-group.question-group.toggle-style,
    .form-group.question-group.radio-circle-style {
        display: block;
    }

    div#wpcf7-f2706-p2624-o1 input.wpcf7-form-control.wpcf7-submit.has-spinner {
        width: 100% !important;
        font-size: 14px !important;
    }

    .custom-trek-form .form-row {
        flex-direction: column;
        /* Stack columns on smaller screens */
        gap: 0;
        /* Reset gap if stacking */
    }

    .custom-trek-form .form-col {
        margin-bottom: 15px;
        /* Add space between stacked fields */
    }

    .custom-trek-form .checkbox-group .wpcf7-list-item {
        width: 100%;
        /* Full width for checkboxes on small screens */
    }

    .custom-trek-form .form-actions {
        flex-direction: column-reverse;
        /* Stack buttons, submit on bottom */
    }

    .custom-trek-form input[type="submit"],
    .custom-trek-form .cancel-button {
        width: 100%;
    }
}

/*graph chart css*/

/* --- Chart Wrapper --- */
 /* --- General Setup --- */
        :root {
     
            
            /* Depth of the 3D effect */
            --bar-depth: 12px;
        }

        .chart-container {
            width: 75%;
    /*max-width: 910px;*/
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    margin: 0 auto;
        }

        .chart-bars {
            display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 515px;
    padding-top: 105px;
        }

        /* --- Bar Group (Bar + Labels) --- */
        .bar-group {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 18%;
        }

        /* --- Value & Arrow Above Bar --- */
        .value-container {
    position: absolute;
    top: -94px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s 0.5s ease-out, transform 0.5s 0.5s ease-out;
}
        
       .arrow {
    display: block;
    font-size: 82px;
    margin-top: 22px;
    font-weight: 900;
        font-family: 'Line Awesome Free';
}

        /* --- The 3D Bar Itself --- */
        .bar {
            position: relative;
            width: 60%;
            max-width: 60px;
            height: 0; /* Starts at 0, animated by JS */
            margin-top: auto; /* Pushes bar to bottom of its container */
            
            /* The Animation */
            transition: height 1.5s cubic-bezier(0.23, 1, 0.32, 1);
        }

        /* The Top Face of the Bar */
        .bar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--bar-depth); /* Use variable for depth */
            transform: translateY(calc(var(--bar-depth) * -1)) skewX(-45deg);
            transform-origin: bottom left;
        }

        /* The Side Face of the Bar */
        .bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 100%;
            width: var(--bar-depth); /* Use variable for depth */
            height: 100%;
            transform: skewY(-45deg);
            transform-origin: top left;
        }

        /* --- Color Variations --- */

        /* Blue Bar */
        .bar-blue { background-color: #4a8af6; height: 280px !important; }
        .bar-blue::before { background-color: #6ea1f8; }
        .bar-blue::after { background-color: #3b6fcc; }
        .value-blue { color: #4a8af6; }
		
		 /* green Bar */
        .bar-green-light { background-color: #80bc42; height: 320px !important; }
        .bar-green-light::before { background-color: #b2d68c; }
        .bar-green-light::after { background-color: #5f8d32; }
        .value-green-light { color: #5f8d32; }
		
		 /* yellow Bar */
        .bar-yellow { background-color: #fdb717; height: 340px !important; }
        .bar-yellow::before { background-color: #ffd475; }
        .bar-yellow::after { background-color: #cd9002; }
        .value-yellow { color: #fdb717; }

        /* Red Bar */
        .bar-red { background-color: #f26b5c; height: 350px !important; }
        .bar-red::before { background-color: #f5887c; }
        .bar-red::after { background-color: #d95f51; }
        .value-red { color: #f26b5c; }
        
        /* Pink Bar */
        .bar-pink { background-color: #f06ab4; height: 355px !important; }
        .bar-pink::before { background-color: #f387c3; }
        .bar-pink::after { background-color: #d85fa2; }
        .value-pink { color: #f06ab4; }
        
        /* Green Bar */
        .bar-green { background-color: #30c6a5; height: 360px !important; }
        .bar-green::before { background-color: #59d1b7; }
        .bar-green::after { background-color: #29ad90; }
        .value-green { color: #30c6a5; }
		
		span.percentage {
    font-weight: 900;
    font-size: 30px;
}

.days-text {
    font-weight: 900;
    color: #686868;
    margin-top: 10px;
}

        /* --- Responsive Design --- */
        @media (max-width: 768px) {
            .value-container {
    position: absolute;
    top: -45px;}
            .chart-bars {
                height: 250px;
            }
            .value-container {
                font-size: 1rem;
            }
            .arrow {
                font-size: 1.2rem;
            }
        }
        
        @media (max-width: 480px) {
            .chart-container {
                padding: 0rem;
                width: 95%;
            }
            .chart-bars {
               flex-wrap: wrap;
        height: auto;
        row-gap: 64px;
        padding-top: 72px;
        padding-bottom: 40px;
            }
            .bar-group {
                width: 45%; /* Two bars per row */
                height: 200px; /* Give wrapped groups a height */
            }
        }
/*graph chart css*/