@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bg-pattern-agro {
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23004d26" fill-opacity="1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.bg-pattern-contact {
    background-image: radial-gradient(circle at 2px 2px, var(--accent3-color) 1px, transparent 0);
    background-size: 40px 40px;
}

:root {
    --accent-color: #007d6c;
    --accent2-color: #00bfa5;
    --accent3-color: #92d050;
    --accent4-color: #4682b4;
    --primary-color: #004d26;
    --dark-text-color: #333333;
    --gray-text-color: #808080;
    --button-padding-x: 16px;
    --button-padding-y: 8px;
    --font-family-body: 'Inter', sans-serif;
    --light-text-color: #ffffff;
    --dark-border-color: #333333;
    --light-border-color: #dcdcdc;
    --font-family-heading: 'Space Grotesk', sans-serif;
    --button-rounded-radius: 4px;
    --dark-background-color: #1a1a1a;
    --light-background-color: #e6f4e9;
    --medium-background-color: #cce9d5;
    --primary-button-text-color: #ffffff;
    --secondary-button-bg-color: #f2f2f2;
    --secondary-button-text-color: #004d26;
    --primary-button-hover-bg-color: #00391d;
    --primary-button-hover-text-color: #ffffff;
    --secondary-button-hover-bg-color: #e6e6e6;
    --secondary-button-hover-text-color: #004d26;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    color: var(--dark-text-color);
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ===== CONTACT FORM STYLES ===== */

/* Field group */
.form-field-group {
    position: relative;
}

/* Field hints */
.field-hint {
    font-size: 0.75rem;
    color: var(--accent3-color);
    margin-top: 6px;
    padding-left: 4px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.25s ease;
    font-family: var(--font-family-body);
}

.field-hint.visible {
    opacity: 0.85;
    max-height: 30px;
}

/* Field errors */
.field-error {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 6px;
    padding-left: 4px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.25s ease;
    font-family: var(--font-family-body);
}

.field-error.visible {
    opacity: 1;
    max-height: 30px;
}

/* Error border on invalid fields */
.form-input.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px #ef4444;
}

/* Phone code selector */
.phone-code-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2392d050' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 28px;
    cursor: pointer;
    font-size: 0.9rem;
}

.phone-code-select option {
    background: #2a2a2a;
    color: #ffffff;
    padding: 8px;
}

/* Custom Dropdown for service selection */
.custom-dropdown {
    position: relative;
}

.custom-dropdown-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-dropdown-trigger:hover {
    border-color: var(--accent3-color) !important;
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(146, 208, 80, 0.3);
    border-radius: 0.75rem;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: dropdownSlide 0.25s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-dropdown-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    font-family: var(--font-family-body);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-dropdown-option:last-child {
    border-bottom: none;
}

.custom-dropdown-option:hover {
    background: rgba(146, 208, 80, 0.12);
    padding-left: 24px;
}

.custom-dropdown-option.active {
    background: rgba(146, 208, 80, 0.18);
    border-left: 3px solid var(--accent3-color);
}

.custom-dropdown-option.active span {
    font-weight: 600;
}

#dropdown-arrow.open {
    transform: rotate(180deg);
}

/* Form Overlay & Modal */
.form-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    opacity: 0;
    animation: overlayFadeIn 0.35s ease forwards;
}

.form-overlay.hidden {
    display: none;
    opacity: 0;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-modal {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border: 1px solid rgba(146, 208, 80, 0.3);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.35s ease;
    color: #ffffff;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.form-modal-icon.success {
    color: var(--accent3-color);
}

.form-modal-icon.error {
    color: #ef4444;
}