/*
 Theme Name:   Pipalva Gam
 Author:       Umesh Patoliya
 Author URI:   http://umeshpatoliya.blogspot.com/
 Template:     hello-elementor
 Version:      1.0.0
*/
 
/* Theme customization starts here
------------------------------------------------------- */

* {
    outline: none;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-top: 0;
}
a {
    color: #0E169F;
    transition: all .3s;
    outline: none;
}
.comments-area a, .page-content a {
    text-decoration: none;
}
button, .button {
    background-color: #0E169F;
	border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all .3s ease;
    outline: none;
}
.button:not(input) {
    border: 1px solid #0E169F;
}
button:focus, button:hover, 
.button:focus, .button:hover {
    background-color: transparent;
    color: #0E169F;
    outline: none;
}
[type=button], [type=submit] {
    background: linear-gradient(135deg,#2563eb,#0E169F);
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(37,99,235,.25);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 30px;
    transition: all .3s ease;
}
[type=button]:focus, [type=button]:hover, 
[type=submit]:focus, [type=submit]:hover {
    background: linear-gradient(135deg,#1e40af,#0f172a);
    box-shadow: 0 15px 30px rgba(0,0,0,.20);
    color: #fff;
    outline: none;
}
form [type=submit] {
  animation: ripple 0.8s linear infinite;
}
@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.17), 0 0 0 10px rgba(37, 99, 235, 0.17), 0 0 0 20px rgba(37, 99, 235, 0.17);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.17), 0 0 0 20px rgba(37, 99, 235, 0.17), 0 0 0 30px rgba(37, 99, 235, 0);
  }
}

/* Header */
header.site-header {
    box-shadow: 0px 0px 12px rgb(0 0 0 / 20%);
}
.site-header .site-branding .site-logo img {
    display: block;
}

/* Site Title */
.page-header {
    position: relative;
}
.page-header .entry-title {
    margin: 2rem 0 1rem;
    text-align: center;
}
.page-header .print {
    position: absolute;
    right: 0;
    top: 0;
}

/* Primary Menu - Home Menu Center */
.home-menu .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style-type: none;
    padding: 0;
}
.home-menu .menu .menu-item {
    display: flex;
}
.home-menu .menu .menu-item a {
    background: linear-gradient(135deg,#2563eb,#0E169F);
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(37,99,235,.25);
    color: #fff;
    cursor:  pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all .3s ease;
}
.home-menu .menu .menu-item a:hover,
.home-menu .menu .menu-item a:focus {
    background: linear-gradient(135deg,#1e40af,#0f172a);
    box-shadow: 0 15px 30px rgba(0,0,0,.20);
    color: #fff;
}
.home-menu .menu .current-menu-item a,
.home-menu .menu .current_page_item a {
    background: #0f172a;
    color: #fff;
}


.site-main .page-content .note-block p,
.site-main .page-content .note-block ol {
    max-width: 100% !important;
}

/* ACF Form */
form.acf-form a {
    text-decoration: none;
}
form.acf-form > .acf-fields {
    background-color: #FAFAFA;
    border-radius: 10px;
    box-shadow: 0px 0px 16px rgb(0 0 0 / 20%);
    margin: 26px auto;
    padding: 16px 0;
}
form .acf-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
    border-color: #D5D5D5;
    border-radius: 10px;
    font-size: 16px;
    padding: 10px 40px 10px 15px;
    text-overflow: ellipsis;
}
form .acf-field select:focus {
    border-color: #000;
}
form .acf-field textarea {
    padding: 10px 15px;
}
form .acf-field-image .acf-basic-uploader input[type=file] {
    border: none;
    border-radius: 0;
    padding: 0;
}
form .acf-field-image .acf-basic-uploader input[type=file]:focus {
    border: none;
}
form ul.acf-radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
form ul.acf-radio-list::before,
form ul.acf-radio-list::after {
    display: none;
}
form ul.acf-radio-list li {
    font-size: 14px;
}
form ul.acf-radio-list li input[type=radio] {
    margin-right: 8px;
    margin-top: -4px;
}
form ul.acf-radio-list:focus-within {
    border-color: transparent;
}
form .acf-actions {
    text-align: left;
}
form .acf-repeater .acf-actions .acf-button {
    float: none;
}
form .acf-form-submit {
    text-align: center;
    margin: 60px auto;
}
.wpcf7 form .wpcf7-response-output {
	text-align: center;
}
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #46b450;	
    border-color: #46b450;
    border-radius: 6px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}
form table tbody > tr:nth-child(odd) > td,
form table tbody > tr:nth-child(odd) > th {
    background-color: inherit;
}
.ui-datepicker .ui-datepicker-title {
    display: flex;
    gap: 10px;
}
.ui-datepicker .ui-datepicker-title select {
    border-radius: 0;
    padding: 0;
}
.note-block {
    border: 1px solid;
    border-radius: 6px;
    font-weight: 600;
    padding: 15px;
}
.note-block p {
    margin-bottom: 0;
}
.note-block ol {
    font-weight: 600;
    padding-left: 1rem;
    list-style: gujarati;
}
.note-block ol li ~ li {
    margin-top: 6px;
}

/* Popup Modal CSS */
.paoc-popup .paoc-credit-wrp {
    display: none;
}
.page-content .video-modal {
    background-color: #0E169F;
    border: 1px solid;
    border-radius: 6px;
    font-weight: 600;
    display: inherit;
    text-align: center;
    max-width: 240px;
    margin: 15px auto 0;
    width: 100%;
}
.page-content .video-modal:hover {
    background-color: transparent;
    color: #0E169F;
}
.paoc-popup-con-bg {
    padding: 0;
}
.paoc-popup-inr .paoc-popup-content video {
    display: block;
}

/* Main Form */
form .acf-actions {
    display: flex;
    margin-top: 20px;
    width: 100%;
}
form .acf-field .acf-label label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
form .acf-field-image .acf-image-uploader a.acf-button.button {
    margin-left: 10px;
}
form .acf-field[data-name="family_members"] .acf-label p.description {
    color: #cf2e2e;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}
table td, table th {
    font-size: 16px !important;
    text-align: left;
}
table a {
    color: inherit;
}
table.member-list-table {
    max-width: 900px;
    margin: 10px auto;
    white-space: nowrap;
}
table.member-list-table tbody tr > th,
table.member-list-table tbody tr:hover > th {
    background-color: #ddd;
}
table.member-list-table tbody > tr:nth-child(odd) > td {
    background-color: #f9f9f9;
}
form table tbody > tr:nth-child(even) > td,
table tbody tr:hover > td {
    background-color: transparent;
}
.member-list-table tr th.col-number {
    width: 68px;
}
.member-list-table tr th.col-photo {
    width: 180px;
}
.member-list-table tr td.member-number {
    font-size: 17px;
    font-weight: 600;
}
.member-photo-wrap {
    border-radius: 4px;
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}
.member-photo-wrap img {
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: top;
    height: 100%;
    width: 100%;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}

/* Message/Error CSS */
#message {
    background-color: green;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    margin-top: 15px;
    padding: 10px 15px;
    margin-bottom: 30px;
    text-align: center;
}
#message p {
    margin: 0;
}
.acf-form .acf-icon.-cancel:before {
    margin: 0 auto;
    padding: 0 0.5px;
}
.acf-notice.-error {
    margin: 15px auto;
}

/* ACF Repeater Form */
.acf-repeater .acf-table .acf-row-handle.order {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    vertical-align: top !important;
}

/* Single Member Page */
.single-member-list {
    display: flex;
    background-color: #FAFAFA;
    border-radius: 10px;
    box-shadow: 0px 0px 16px rgb(0 0 0 / 20%);
    margin: 26px auto;
    padding: 30px;
    width: 100%;
}
.single-member-img {
    padding-top: 5px;
    padding-right: 26px;
    width: 30%;
}
.single-member-img img {
    border-radius: 10px;
}
.single-member-info {
    width: 70%;
}
.single-member-info h2.member-name {
    color: #0E169F;
}
.single-member-list-table tr th {
    width: 140px;
}

/* Result Form */
.result-form {
    margin: 2rem auto 0;
    max-width: 400px;
    padding: 0 10px;
}
.result-form p {
    margin-bottom: 2rem;
}
.result-form p:last-of-type {
    padding-top: 1rem;
    text-align: center;
}
.result-form label {
    display: block;
}
.result-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 10px;
}
.result-form .wpcf7-form-control-wrap input[type=file] {
    border: none;
    border-radius: 0;
    padding: 0;
}
.result-form .wpcf7-spinner {
    display: block;
    margin: 0.5rem auto 0;
}
.result-form .wpcf7-not-valid-tip {
    line-height: normal;
    margin-top: 5px;
}

/* Business */
.business-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.business-card {
    box-shadow: 0px 0px 12px rgb(0 0 0/20%);
    border-radius: 20px;
    overflow: hidden;
}
.business-photo {
    background-color: #EEE;
    padding-top: 60%;
    position: relative;
}
.business-photo img {
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
}
.business-photo img[alt="Pipalva"] {
    max-width: 160px;
}
.business-name {
    background-color: black;
    color: white;
    font-size: 20px;
    padding: 0.5rem;
    text-align: center;
    text-transform: capitalize;
}
.business-card-info {
    padding: 1rem;
}
.business-member {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.business-number {
    margin-top: 0.5rem;
}
.business-number a {
    color: inherit;
}

/* Media Print */
@media print {
    a[href]:after {
        content: '';
    }
    header.site-header,
    header.page-header,
    .member-list-table .col-photo,
    .member-list-table .member-photo,
    .member-phone a[aria-label] {
        display: none;
    }
    table td, table th {
        padding: 5px 15px;
    }
}

/* Media Screen */
@media only screen and (min-width: 991px) {
    table.member-list-table {
        table-layout: fixed;
    }
}

@media only screen and (max-width: 991.98px) {
    .business-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    .home-menu .menu {
        flex-direction: column;
    }
    .home-menu .menu .menu-item a {
        text-align: center;
        width: 260px;
    }
    form .acf-repeater .acf-row td.acf-fields {
        display: block;
    }
    form .acf-repeater .acf-row-handle.order {
        display: block;
        width: 100%;
    }
    form .acf-repeater .acf-row-handle.order + td {
        border-left: none;
        border-top: 1px solid #DFDFDF;
    }
    form .acf-repeater .acf-row-handle.remove {
        background-color: #f4f4f4;
        border-top: 1px solid #DFDFDF;
        border-left: none;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    form .acf-repeater .acf-row-handle .acf-icon {
        display: block;
        position: relative;
        margin: 0;
    }
    form .acf-field select {
        padding-right: 30px;
    }
    body:not([class*=elementor-page-]) .site-main {
        padding-right: 15px;
        padding-left: 15px;
    }
    .single-member-list {
        flex-direction: column;
        margin: 0 auto 30px;
    }
    .single-member-img {
        padding-top: 0;
        padding-right: 0;
    }
    .single-member-img, .single-member-img img, .single-member-info {
        width: 100%;
    }
    .single-member-info h2.member-name {
        font-size: 1.5rem;
        margin: 20px auto;
    }
    table td, table th {
        font-size: 15px !important;
    }
    .business-cards {
        grid-template-columns: repeat(1, 1fr);
    }
}