/* --- GRAVITY FORMS STYLING (Form ID 49) --- */

/* 1. Form Container (Card Look) */
#gw-outing-wrapper .gw-form-wrapper {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 700px; /* Restrict width for better readability */
    margin: 40px auto;
    text-align: left; /* Reset alignment */
}

/* 2. Progress Bar */
#gw-outing-wrapper .gf_progressbar_wrapper {
    margin-bottom: 30px !important;
}
#gw-outing-wrapper .gf_progressbar_title {
    color: var(--gw-blue);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#gw-outing-wrapper .gf_progressbar {
    background-color: #E5E7EB !important;
    border-radius: 100px;
    height: 6px !important;
    box-shadow: none !important;
}
#gw-outing-wrapper .gf_progressbar_percentage {
    background: var(--gw-blue) !important;
    border-radius: 100px;
    height: 6px !important;
}
#gw-outing-wrapper .gf_progressbar_percentage span {
    display: none; /* Hide the percentage text inside the bar */
}

/* 3. Typography & Headings */
#gw-outing-wrapper .gform_heading {
    margin-bottom: 30px;
    text-align: left;
}
#gw-outing-wrapper .gform_title {
    font-size: 28px !important;
    color: #1F2937;
    margin-bottom: 12px;
    font-weight: 700;
}
#gw-outing-wrapper .gform_description {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.5;
}
#gw-outing-wrapper .gfield_label {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #374151;
    margin-bottom: 12px !important;
}

/* 4. Radio Buttons (Custom Design) */
#gw-outing-wrapper .gfield_radio {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Space between choices */
}
#gw-outing-wrapper .gchoice {
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
}
/* Hide default radio and create custom one */
#gw-outing-wrapper .gfield_radio input[type=radio] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid #9CA3AF;
    border-radius: 50%;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
/* Checked State Container */
#gw-outing-wrapper .gfield_radio input[type=radio]:checked {
    border-color: var(--gw-blue);
    border-width: 2px;
}
/* Checked State Dot */
#gw-outing-wrapper .gfield_radio input[type=radio]:checked::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--gw-blue);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#gw-outing-wrapper .gfield_radio label {
    font-size: 18px;
    color: #4B5563;
    cursor: pointer;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
    max-width: none !important;
}

/* 5. Text Inputs (Name, Email, Phone) */
#gw-outing-wrapper input[type=text],
#gw-outing-wrapper input[type=email],
#gw-outing-wrapper input[type=tel],
#gw-outing-wrapper input[type=number],
#gw-outing-wrapper select {
    padding: 12px 16px !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    width: 100% !important;
    color: #374151;
    transition: border-color 0.2s;
}
#gw-outing-wrapper input:focus,
#gw-outing-wrapper select:focus {
    border-color: var(--gw-blue) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 83, 159, 0.1);
}

/* 6. Footer & Buttons */
#gw-outing-wrapper .gform_page_footer {
    border-top: none !important;
    padding-top: 30px !important;
    margin-top: 30px !important;
    text-align: center !important; /* Center buttons */
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

#gw-outing-wrapper .gform_next_button,
#gw-outing-wrapper .gform_button {
    background-color: var(--gw-blue) !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 12px 48px !important;
    border-radius: 100px !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s;
    width: auto !important;
    min-width: 200px;
}
#gw-outing-wrapper .gform_next_button:hover,
#gw-outing-wrapper .gform_button:hover {
    background-color: var(--gw-blue-dark) !important;
}

/* Previous Button (Secondary Style) */
#gw-outing-wrapper .gform_previous_button {
    background-color: transparent !important;
    color: var(--gw-gray-dark) !important;
    border: 1px solid #D1D5DB !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 12px 32px !important;
    border-radius: 100px !important;
    cursor: pointer;
    margin-right: 0 !important; /* Reset GF margin */
}
#gw-outing-wrapper .gform_previous_button:hover {
    background-color: #F3F4F6 !important;
}

/* 7. Hide Elements */
#gw-outing-wrapper .gform_required_legend { display: none; } /* Hide "* indicates required" text */
#gw-outing-wrapper .gfield_description { font-size: 14px; color: #6B7280; margin-top: 8px; }

/* 8. Mobile Responsiveness for Form */
@media (max-width: 640px) {
    #gw-outing-wrapper .gw-form-wrapper {
        padding: 24px 20px;
        margin: 20px 0;
        border-radius: 12px;
    }
    #gw-outing-wrapper .gform_title {
        font-size: 24px !important;
    }
    #gw-outing-wrapper .gfield_radio label {
        font-size: 16px;
    }
    #gw-outing-wrapper .gform_next_button,
    #gw-outing-wrapper .gform_button,
    #gw-outing-wrapper .gform_previous_button {
        width: 100% !important; /* Full width buttons on mobile */
        min-width: auto;
    }
    #gw-outing-wrapper .gform_page_footer {
        flex-direction: column-reverse; /* Put "Next" on top if stacked */
    }
}