<style>
    .container {
        background-color: #f8f8f8;

        margin-bottom: 50px;
        min-height: 100vh;
        position: relative;
        max-width: 1400px;
        align-items: center;
        align-self: center;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }


    /* Header Section */
    .request-info-header {
        padding: 80px 70px 40px 70px;
        /* background-color: #fff; */
        font-family: 'Poppins', Arial, sans-serif;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .request-info-header .title {
        color: #004675;
        margin-bottom: 10px;
        text-transform: uppercase;
        font-family: Mallanna;
        font-weight: 400;
        font-size: 42px;
        line-height: 100%;
        letter-spacing: 2%;
        text-align: center;
    }

    .request-info-header .subtitle {

        font-weight: 400;
        font-size: 24px;
        line-height: 38px;
        letter-spacing: 0px;
        text-align: center;
        vertical-align: middle;
        color: #36384E;

    }

    /* Main Content Section: Form & Map */
    .contact-content-section {
        display: flex;
        justify-content: space-between;
        padding: 40px 70px 70px 70px;
        /* background-color: #fff; */
        box-sizing: border-box;
        gap: 40px;

        /* Space between form and map */
    }

    .contact-form-column {
        flex: 1.5;
        /* Form takes more space */
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .form-group {
        margin-bottom: 15px;
        /* Space between form rows */
    }

    .form-label {
        display: block;
        font-size: 0.95rem;
        color: #333;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .form-row {
        display: flex;
        gap: 20px;
        /* Space between name fields */
    }

    .form-field-wrapper {
        flex: 1;
        /* Each field takes equal space in a row */
    }

    .form-input,

    .form-textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 1rem;
        box-sizing: border-box;
        font-family: Arial, sans-serif;
        /* Ensure consistent font */
    }
  .form-select{

    width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 1rem;
        box-sizing: border-box;
        font-family: Arial, sans-serif;
}
    .form-input::placeholder,
    .form-textarea::placeholder {
        color: #999;
    }

    .form-textarea {
        min-height: 120px;
        resize: vertical;
        /* Allow vertical resizing */
    }

    /* Specific styling for address and phone number fields with icons/dropdowns */
    .input-with-icon {
        position: relative;
        display: flex;
        align-items: center;
    }

    .input-with-icon i {
        position: absolute;
        left: 10px;
        color: #888;
        font-size: 1.1rem;
        z-index: 1;
        /* Ensure icon is above input */
    }

    .input-with-icon .form-input,
    .input-with-icon .form-select {
        padding-left: 30px;
        /* Make space for icon */
    }

    .phone-input-group {
        display: flex;
        gap: 10px;

    }

    .country-code-select {
        width: 100px;
        /* Fixed width for country code dropdown */
        flex-shrink: 0;

    }

    .phone-number-field {
        flex: 1.5;
        width: 10px;
    }

    .submit-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 30px;
        background-color: #004675;
        color: #fff;
        border: none;
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s ease;
        text-decoration: none;
        margin-top: 20px;
        width: fit-content;
        margin-left: 40%;
        /* Adjust width to content */
    }

    .submit-btn:hover {
        background-color: #01395b;
    }

    /* Map Column */
    .map-column {
        flex: 1;
        /* Map takes less space, creating the visible layout */
        min-height: 500px;
        /* Minimum height for the map */
        border-radius: 8px;
        overflow: hidden;
        /* Ensures map corners are rounded */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    #google-map {
        width: 100%;
        height: 100%;
        border-radius: 8px;
        /* Apply border-radius directly to map div */
    }

      /* Enhanced responsive styles */
      @media (max-width: 1200px) {
        .container {
            margin-bottom: 40px;
        }
        .request-info-header {
            padding: 70px 60px 35px 60px;
        }
        .request-info-header .title {
            font-size: 36px;
        }
        .request-info-header .subtitle {
            font-size: 20px;
            line-height: 32px;
        }
        .contact-content-section {
            padding: 35px 60px 60px 60px;
            gap: 35px;
        }
        .form-label {
            font-size: 0.9rem;
        }
        .form-input,
        .form-textarea,
        .form-select {
            padding: 11px 14px;
            font-size: 0.95rem;
        }
        .submit-btn {
            margin-left: 35%;
            padding: 11px 28px;
            font-size: 0.95rem;
        }
    }

    @media (max-width: 1024px) {
        .request-info-header,
        .contact-content-section {
            padding-left: 40px;
            padding-right: 40px;
        }
        .request-info-header {
            padding: 60px 40px 30px 40px;
        }
        .request-info-header .title {
            font-size: 32px;
        }
        .request-info-header .subtitle {
            font-size: 18px;
            line-height: 28px;
        }
        .contact-content-section {
            flex-direction: column;
            gap: 30px;
            padding: 30px 40px 50px 40px;
        }
        .contact-form-column,
        .map-column {
            flex: none;
            width: 100%;
        }
        .map-column {
            min-height: 400px;
        }
        .submit-btn {
            margin-left: 30%;
        }
    }

    @media (max-width: 900px) {
        .container {
            margin-bottom: 30px;
        }
        .request-info-header {
            padding: 50px 30px 25px 30px;
        }
        .request-info-header .title {
            font-size: 28px;
        }
        .request-info-header .subtitle {
            font-size: 16px;
            line-height: 24px;
        }
        .contact-content-section {
            padding: 25px 30px 40px 30px;
            gap: 25px;
        }
        .form-group {
            margin-bottom: 12px;
        }
        .form-label {
            font-size: 0.85rem;
            margin-bottom: 6px;
        }
        .form-input,
        .form-textarea,
        .form-select {
            padding: 10px 12px;
            font-size: 0.9rem;
        }
        .form-textarea {
            min-height: 100px;
        }
        .submit-btn {
            margin-left: 25%;
            padding: 10px 25px;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 768px) {
        .request-info-header,
        .contact-content-section {
            padding-left: 20px;
            padding-right: 20px;
        }
        .request-info-header {
            padding: 40px 20px 20px 20px;
        }
        .request-info-header .title {
            font-size: 24px;
        }
        .request-info-header .subtitle {
            font-size: 15px;
            line-height: 22px;
        }
        .contact-content-section {
            padding: 20px 20px 30px 20px;
            gap: 20px;
        }
        .form-row {
            flex-direction: column;
            gap: 15px;
        }
        .phone-input-group {
            gap: 8px;
        }
        .country-code-select {
            width: 80px;
        }
        .map-column {
            min-height: 300px;
        }
        .submit-btn {
            margin-left: 20%;
            padding: 9px 22px;
            font-size: 0.85rem;
        }
    }

    @media (max-width: 600px) {
        .container {
            margin-bottom: 25px;
        }
        .request-info-header {
            padding: 30px 15px 15px 15px;
        }
        .request-info-header .title {
            font-size: 20px;
        }
        .request-info-header .subtitle {
            font-size: 14px;
            line-height: 20px;
        }
        .contact-content-section {
            padding: 15px 15px 25px 15px;
            gap: 18px;
        }
        .form-group {
            margin-bottom: 10px;
        }
        .form-label {
            font-size: 0.8rem;
            margin-bottom: 5px;
        }
        .form-input,
        .form-textarea,
        .form-select {
            padding: 8px 10px;
            font-size: 0.85rem;
        }
        .form-textarea {
            min-height: 80px;
        }
        .input-with-icon i {
            font-size: 1rem;
            left: 8px;
        }
        .input-with-icon .form-input,
        .input-with-icon .form-select {
            padding-left: 25px;
        }
        .phone-input-group {
            gap: 6px;
        }
        .country-code-select {
            width: 70px;
            font-size: 0.8rem;
        }
        .submit-btn {
            margin-left: 15%;
            padding: 8px 20px;
            font-size: 0.8rem;
        }
    }

    @media (max-width: 480px) {
        .container {
            margin-bottom: 20px;
        }
        .request-info-header {
            padding: 25px 10px 12px 10px;
        }
        .request-info-header .title {
            font-size: 18px;
        }
        .request-info-header .subtitle {
            font-size: 13px;
            line-height: 18px;
        }
        .contact-content-section {
            padding: 12px 10px 20px 10px;
            gap: 15px;
        }
        .form-group {
            margin-bottom: 8px;
        }
        .form-label {
            font-size: 0.75rem;
            margin-bottom: 4px;
        }
        .form-input,
        .form-textarea,
        .form-select {
            padding: 7px 8px;
            font-size: 0.8rem;
        }
        .form-textarea {
            min-height: 70px;
        }
        .input-with-icon i {
            font-size: 0.9rem;
            left: 6px;
        }
        .input-with-icon .form-input,
        .input-with-icon .form-select {
            padding-left: 22px;
        }
        .phone-input-group {
            gap: 5px;
        }
        .country-code-select {
            width: 60px;
            font-size: 0.75rem;
        }
        .submit-btn {
            margin-left: 10%;
            padding: 7px 18px;
            font-size: 0.75rem;
        }
    }

    @media (max-width: 360px) {
        .container {
            margin-bottom: 15px;
        }
        .request-info-header {
            padding: 20px 8px 10px 8px;
        }
        .request-info-header .title {
            font-size: 16px;
        }
        .request-info-header .subtitle {
            font-size: 12px;
            line-height: 16px;
        }
        .contact-content-section {
            padding: 10px 8px 15px 8px;
            gap: 12px;
        }
        .form-group {
            margin-bottom: 6px;
        }
        .form-label {
            font-size: 0.7rem;
            margin-bottom: 3px;
        }
        .form-input,
        .form-textarea,
        .form-select {
            padding: 6px 7px;
            font-size: 0.75rem;
        }
        .form-textarea {
            min-height: 60px;
        }
        .input-with-icon i {
            font-size: 0.8rem;
            left: 5px;
        }
        .input-with-icon .form-input,
        .input-with-icon .form-select {
            padding-left: 20px;
        }
        .phone-input-group {
            gap: 4px;
        }
        .country-code-select {
            width: 55px;
            font-size: 0.7rem;
        }
        .submit-btn {
            margin-left: 5%;
            padding: 6px 15px;
            font-size: 0.7rem;
        }
    }


    .title .blue { color: #2196F3; }
    .title .orange { color: #FF9800; }
    .title .dark { color: #36384E; }
</style>

<div class="container">

    <!-- Header Section -->
    <div class="request-info-header">
        <div class="title">
            <span class="blue">JOIN</span>
            <span class="dark">OUR</span>
            <span class="orange">TEAM</span>
        </div>
    </div>

    <!-- Main Content Section: Form & Map -->
    <div class="contact-content-section">
        <div class="contact-form-column">
            <form action="{{ route('jointeamForm') }}" method="POST">
                @csrf
                <div class="form-group">
                    <label for="first_name" class="form-label">Name</label>
                    <div class="form-row">
                        <div class="form-field-wrapper">
                            <input type="text" id="first_name" name="name" class="form-input"
                                placeholder="First Name">
                        </div>
                        <div class="form-field-wrapper">
                            <input type="text" id="lastName" name="surname" class="form-input"
                                placeholder="Last Name">
                        </div>
                    </div>
                </div>

                <!-- NEW: Country Selection Field -->
                <div class="form-group">
                    <label for="country" class="form-label">Grade & Section</label>
                    <div class="form-row">
                        <div class="form-field-wrapper">
                            <input type="text" id="grade" name="grade" class="form-input"
                                placeholder="Grade">
                        </div>
                        <div class="form-field-wrapper">
                            <input type="text" id="section" name="section" class="form-input"
                                placeholder="Section">
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label for="phone" class="form-label">Phone number</label>
                    <div class="phone-input-group">
                        <!-- Updated: id="country-code" for JS to target -->
                        <div class="input-with-icon">
                            <i class="fas fa-phone"></i> <!-- Phone icon for country code -->
                            <select id="country-code" class="form-input form-select country-code-select">
                                <option value="">+00</option>
                                <option value="+977">+977 </option>
                                <option value="+91">+91 </option>
                                <option value="+880">+880 </option>
                                <option value="+92">+92 </option>
                                <option value="+94">+94 </option>
                                <option value="+975">+975 </option>
                                <option value="+960">+960 </option>
                                <option value="+93">+93 </option>
                            </select>
                        </div>
                        <div class="form-field-wrapper phone-number-field">
                            <input type="text" id="phone" name="phone_number" class="form-input"
                                placeholder="Phone number">
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label for="email" class="form-label">Mail</label>
                    <input type="email" id="email" name="email" class="form-input" placeholder="email">
                </div>

                <div class="form-group">
                    <label for="message" class="form-label">Your message</label>
                    <textarea id="message" name="message" class="form-textarea" placeholder="Write a..."></textarea>
                </div>
                <input type="hidden" name="game_id" value="{{ $game->id }}">
                <button type="submit" class="submit-btn">
                   Submit <img src="{{ asset('images/arrow.svg') }}" alt=""></i>
                </button>
            </form>
        </div>


    </div>
</div>



