:root {
    --primary-green: #407336;
    --secondary-orange: #f99e11;
    --bg-color: #e9e6e4;
    --text-color: #292929;
    --white: #ffffff;
    --error-color: #d32f2f;
    --border-radius-pill: 144px;
    --border-radius-card: 20px;
    --border-radius-input: 8px;
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.freshflow-layout {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    /* Reset default margin */
}

.freshflow-container {
    width: 100%;
    max-width: 900px;
    font-family: var(--font-family);
    /* Ensure font inherits if not in body */
    color: var(--text-color);
}

.form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    color: var(--primary-green);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

.contact-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.full-width-group {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.required {
    color: var(--error-color);
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-input);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(64, 115, 54, 0.1);
    background-color: var(--white);
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    padding-top: 5px;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    padding-left: 28px;
    user-select: none;
}

.radio-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
    transition: all 0.2s;
}

.radio-item:hover input~.radio-mark {
    background-color: #ccc;
}

.radio-item input:checked~.radio-mark {
    background-color: var(--white);
    border: 6px solid var(--primary-green);
}


/* Section Label */
.form-section {
    margin-bottom: 30px;
}

.section-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 10px;
}

/* Product Category Styles */
.product-categories-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.product-category-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius-input);
    border: 1px solid #eee;
    transition: border-color 0.3s;
}

.product-category-item:hover {
    border-color: #ddd;
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 30px;
    color: var(--text-color);
}

.checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-item:hover input~.checkmark {
    background-color: #ccc;
}

.checkbox-item input:checked~.checkmark {
    background-color: var(--primary-green);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-item input:checked~.checkmark:after {
    display: block;
}

.checkbox-item .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.category-details {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-input);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
}

.category-details.hidden {
    display: none;
}

.error-text {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
}

.error-text.hidden {
    display: none;
}

/* Buttons */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background-color: var(--secondary-orange);
    color: var(--white);
    border: none;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-family);
    display: inline-block;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 158, 17, 0.3);
    background-color: #e6900f;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-out;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-green);
    color: white;
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.success-message h2 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    margin-top: 20px;
    font-family: var(--font-family);
    transition: all 0.2s;
}

.secondary-btn:hover {
    background-color: var(--primary-green);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}