<!DOCTYPE html>
<html lang="bn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>প্রজেক্ট অর্ডার ফর্ম - CodexioBD</title>
    <link href="https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;600;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --primary-color: #ff4d6d;
            --bg-color: #f0f2f5;
            --text-color: #4a4e69;
            --input-bg: #f0f2f5;
            --shadow-light: #ffffff;
            --shadow-dark: #d1d9e6;
        }

        body {
            font-family: 'Hind Siliguri', sans-serif;
            background-color: var(--bg-color);
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
        }

        .container {
            background: var(--bg-color);
            width: 100%;
            max-width: 900px;
            padding: 40px;
            border-radius: 30px;
            box-shadow: 20px 20px 60px var(--shadow-dark), -20px -20px 60px var(--shadow-light);
        }

        /* Header Area */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .logo {
            font-weight: 800;
            font-size: 26px;
            color: #333;
            letter-spacing: 1px;
        }

        .logo span { color: var(--primary-color); }

        .back-home {
            background: var(--bg-color);
            padding: 10px 20px;
            border-radius: 12px;
            text-decoration: none;
            color: #555;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
            transition: 0.3s;
        }

        .back-home:hover {
            box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
        }

        h1 {
            text-align: center;
            color: var(--text-color);
            font-size: 32px;
            margin-bottom: 50px;
        }

        /* Form Sections */
        .section-header {
            color: var(--primary-color);
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid #d1d9e6;
            padding-bottom: 10px;
        }

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

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

        label {
            margin-bottom: 10px;
            font-weight: 600;
            font-size: 14px;
            color: #555;
        }

        label span { color: var(--primary-color); }

        input, textarea, select {
            padding: 15px 20px;
            border: none;
            border-radius: 15px;
            background: var(--input-bg);
            box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
            outline: none;
            font-family: inherit;
            color: #333;
        }

        textarea { height: 100px; resize: none; }

        /* Full width for specific fields */
        .full-width { grid-column: span 2; }

        /* Responsive Mobile Layout */
        @media (max-width: 768px) {
            .form-grid { grid-template-columns: 1fr; }
            .full-width { grid-column: span 1; }
            .container { padding: 20px; border-radius: 20px; }
            header { flex-direction: column; gap: 20px; }
        }

        /* Submit Button */
        .submit-btn {
            width: 100%;
            padding: 18px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 15px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 10px 10px 20px #ff4d6d44;
            transition: 0.3s;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            opacity: 0.9;
        }

        .success-msg {
            background: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 20px;
        }
    </style>
</head>
<body>

<div class="container">
    <header>
        <div class="logo">CODEXIO<span>BD</span></div>
        <a href="#" class="back-home">← হোমে ফিরে যান</a>
    </header>

    <h1>প্রজেক্ট অর্ডার ফর্ম</h1>

    <?php
    if ($_SERVER["REQUEST_METHOD"] == "POST") {
        // ডাটা রিসিভ এবং সিকিউরিটি চেক
        $name = htmlspecialchars($_POST['client_name']);
        echo "<div class='success-msg'>ধন্যবাদ <b>$name</b>! আপনার অর্ডারটি সফলভাবে জমা হয়েছে।</div>";
    }
    ?>

    <form action="" method="POST" enctype="multipart/form-data">
        
        <!-- সেকশন ১: যোগাযোগের বিস্তারিত -->
        <div class="section-header">
            👤 যোগাযোগের বিস্তারিত
        </div>
        
        <div class="form-grid">
            <div class="form-group">
                <label>ক্লায়েন্টের নাম <span>*</span></label>
                <input type="text" name="client_name" placeholder="আপনার পূর্ণ নাম" required>
            </div>
            <div class="form-group">
                <label>মোবাইল নম্বর <span>*</span></label>
                <input type="tel" name="mobile" placeholder="০১৭XXXXXXXX" required>
            </div>
            <div class="form-group">
                <label>ইমেইল ঠিকানা <span>*</span></label>
                <input type="email" name="email" placeholder="yourname@example.com" required>
            </div>
            <div class="form-group">
                <label>যোগাযোগের ঠিকানা <span>*</span></label>
                <textarea name="address" placeholder="আপনার বর্তমান ঠিকানা" required></textarea>
            </div>
        </div>

        <!-- সেকশন ২: প্রজেক্টের তথ্য -->
        <div class="section-header">
            📰 প্রজেক্টের তথ্য
        </div>

        <div class="form-grid">
            <div class="form-group">
                <label>ওয়েবসাইটের নাম <span>*</span></label>
                <input type="text" name="site_name" placeholder="আমার স্বপ্নের ওয়েবসাইট" required>
            </div>
            <div class="form-group">
                <label>রিকোয়ারমেন্ট ডেমো (URL)</label>
                <input type="url" name="demo_url" placeholder="https://example.com">
            </div>
            <div class="form-group">
                <label>প্রজেক্ট শুরু করার তারিখ <span>*</span></label>
                <input type="date" name="start_date" required>
            </div>
            <div class="form-group">
                <label>লোগো আপলোড (যদি থাকে)</label>
                <input type="file" name="logo" style="box-shadow: none; padding: 5px 0;">
            </div>
        </div>

        <!-- সেকশন ৩: মূল্য ও অতিরিক্ত তথ্য -->
        <div class="section-header">
            💵 মূল্য ও অতিরিক্ত তথ্য
        </div>
        <div class="form-grid">
            <div class="form-group full-width">
                <label>প্রজেক্টের বিস্তারিত বর্ণনা</label>
                <textarea name="project_desc" placeholder="আপনার প্রজেক্ট সম্পর্কে বিস্তারিত লিখুন..."></textarea>
            </div>
        </div>

        <button type="submit" class="submit-btn">অর্ডার কনফার্ম করুন</button>
    </form>
</div>

</body>
</html>