/*
Theme Name: Viyan Agro
Author: Peakpixel Creative Hub
Description: A flexible modern WordPress theme for blogs, portfolios, and business websites.
Version: 1.0.1
Tested up to: 6.8
Requires PHP: 8.1
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/


/**
 * Global Reset & Base
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0; 
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--e-global-color-text);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; 
}

/**
 * Smooth Scroll
 */
html.lenis {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

/**
 * Typography
 */
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}


/**
 * Links
 */
a {
    color: inherit;
    text-decoration: none;
    background: transparent;
    transition: color .3s ease;
}
a:hover, 
a:active {
    color: var(--e-global-color-secondary);
}

/**
 * Screen Reader Only
 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0; 
}


/**
 * Forms & Inputs
 */
label {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    line-height: 1;
    margin: 0;
    border: 0;
    outline: 0;
    background: none;
}

/* Input Styles */
input,
select,
textarea {
    width: 100%;
    padding: 25px;
    font-size: 1rem;
    color: var(--e-global-color-text);
    background: #fff;
    border: 1px solid var(--green-border);
    border-radius: 10px;
    transition: border-color .4s ease, box-shadow .4s ease;
}
input:focus, 
select:focus, 
textarea:focus {
    border-color: var(--green-border-hover);
    box-shadow: 0 0 20px rgba(127, 200, 7, 0.15);
}
textarea {
    height: 160px;
    resize: vertical;
    overflow: auto;
}

.select-wrap {
    position: relative;
}
.select-wrap select {
    display: block;
    font-style: italic;
    color: #686868;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}
.select-wrap::after {
    content: "";
    position: absolute;
    top: 30px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--green-border);
    border-bottom: 2px solid var(--green-border);
    transform: rotate(45deg);
    pointer-events: none;
}

select option {
    font-style: normal;
    color: var(--e-global-color-text);
    background: #fff;
}
select option:first-of-type {
    font-style: italic;
    color: #686868;
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
    font-style: italic;
    color: #686868;
}

/* Responsive Input */
@media (max-width: 991px) {
    input,
    select,
    textarea {
        padding: 14px;
        font-size: .75rem;
        border-radius: 6px;
    }
    textarea {
        height: 100px;
    }
    .select-wrap::after {
        top: 16px;
    }
}


/**
 * Button Style
 */
.elementor-button {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 18px 30px;
    font-size: .875rem;    
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    background: var(--e-global-color-secondary);
    border-radius: 50px;
    cursor: pointer;
    transition: transform .4s ease, background .4s ease;
}
.elementor-button:hover {
    background: var(--e-global-color-primary);
    transform: translateX(3px);
}
.elementor-button:focus {
    outline: 0;
}

.elementor-button.sm {
    font-size: .75rem;
    padding: 10px 16px;
}
@media (max-width: 991px) {
    .elementor-button {
        font-size: .75rem;
        padding: 12px 16px;
    }
    .elementor-button.sm {
        font-size: .7rem;
        padding: 7px 14px;
    }
}


/**
 * Contact form
 */
form.pcf-inquiry-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 767px) {
    form.pcf-inquiry-form {
        gap: 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.alt {
    grid-column: span 2; 
}
.form-group label {
    margin-bottom: 10px;
    font-size: .875rem;
}
@media (max-width: 767px) {
    .submit-btn {
        grid-column: span 2;
    }
}

/* Error Styling */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: red;
}
.error-message {
    display: block;
    margin-top: 5px;
    font-size: .815rem;
    color: red;
}

/* Response Messages */
.pcf-form-response {
    display: block;
}
.success-response,
.error-response {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px dashed;
}
.success-response {
    color: green;
    border-color: green;
}
.error-response {
    color: red;
    border-color: red;
}

/* Loader Spinner */
.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--e-global-color-secondary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/**
 * Table Style
 */
table {
    width: 100%;
    border-collapse: collapse;
}
table th, 
table td {
    padding: 2px 0;
    border-bottom: 1px solid var(--green-border);
}
table th {
    text-align: left;
    width: 105px;
    position: relative;
}
table th:after {
    content: ":";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
table tr:last-child th,
table tr:last-child td {
    border-bottom: 0 !important;
}
@media (min-width: 991px) {
    table {
        font-size: 1rem;
    }
    table th, table td {
        padding: 12px 0;
    }
    table th {
        width: 180px;
    }
}


/**
 * Lists
 */
ul, ol, li {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    position: relative;
}


/**
 * 404
 */
body.error404 .error-page {
    padding: 50px 15px;
    background: var(--e-global-color-text);
}
body.error404 .error-page .elementor-widget-wrap {
    padding: 0 15px;
}
body.error404 .error-page .elementor-widget-wrap h1 {
    color: #fff;
    margin-bottom: 20px;
}
@media (min-width: 767px) {
    body.error404 .error-page {
        padding: 80px 15px;
    }
}
@media (min-width: 991px) {
    body.error404 .error-page {
        padding: 120px 0;
    }
}