/* --- Mobile First Modern Design (Updated Logic) --- */

body {
    background-color: #f4f6f9;
}

.register-container {
    max-width: 500px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.form-header {
    background: #35424a;
    padding: 25px 20px;
    text-align: center;
    color: white;
}

.form-header h2 { margin: 0; font-size: 24px; font-weight: 600; }
.form-header p { margin: 5px 0 0; font-size: 14px; opacity: 0.8; }

/* Form Body */
.modern-form { padding: 25px 20px; }
.input-group { margin-bottom: 20px; }
.input-group label { 
    display: block; 
    font-weight: 600; 
    color: #444; 
    margin-bottom: 8px; 
    font-size: 15px; 
}
.req { color: #e74c3c; }

/* Input Fields */
.input-wrapper { position: relative; }
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 16px;
    pointer-events: none; 
}
.red-icon { color: #e74c3c; }

input[type="text"], input[type="tel"], input[type="date"], select {
    width: 100%;
    padding: 12px 15px 12px 45px; 
    border: 2px solid #eef2f7;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: #fdfdfd;
    box-sizing: border-box;
    transition: all 0.3s ease;
    height: 50px; 
}

input:focus, select:focus {
    border-color: #35424a;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(53, 66, 74, 0.1);
}

.hint-text { font-size: 12px; color: #888; margin-top: 5px; display: block; }

/* --- Package Selection (লজিক ফিক্স) --- */
.plan-grid {
    display: flex;
    flex-direction: column; 
    gap: 12px;
}

.plan-card { cursor: pointer; position: relative; display: block; -webkit-tap-highlight-color: transparent; }
.plan-card input[type="radio"] { display: none; }

.card-content {
    border: 2px solid #eef2f7;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    transition: all 0.2s;
}

.plan-info h4 { margin: 0; font-size: 18px; color: #333; font-weight: 700; }
.plan-info .price { font-size: 15px; color: #666; font-weight: 500; display: block; margin-top: 4px; }

/* --- সিলেকশন বৃত্ত ডিজাইন (খালি ও পূর্ণ) --- */
.selection-circle {
    width: 26px;
    height: 26px;
    border: 2px solid #ccc; /* শুরুতে ধূসর বর্ডার */
    border-radius: 50%;     /* পুরোপুরি গোল */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* শুরুতে খালি */
    color: white; 
    transition: all 0.2s ease-in-out;
}

/* শুরুতে টিক চিহ্নটি লুকিয়ে রাখা হবে */
.selection-circle i {
    opacity: 0; 
    transform: scale(0);
    transition: all 0.2s;
    font-size: 14px;
}

/* --- যখন সিলেক্ট (Checked) করা হবে --- */
.plan-card input:checked + .card-content {
    border-color: #e8491d; /* বর্ডার কালার */
    background-color: #fffaf9; /* হালকা ব্যাকগ্রাউন্ড */
}

.plan-card input:checked + .card-content .selection-circle {
    background-color: #e8491d; /* বৃত্ত পূর্ণ হবে */
    border-color: #e8491d;
    box-shadow: 0 0 0 3px rgba(232, 73, 29, 0.2); /* গ্লো এফেক্ট */
}

.plan-card input:checked + .card-content .selection-circle i {
    opacity: 1; /* টিক চিহ্ন ভেসে উঠবে */
    transform: scale(1);
}

/* --- File Upload Design --- */
.file-upload-box {
    position: relative;
    width: 100%;
}
.file-upload-box input[type="file"] {
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    background: #f8f9fa;
    color: #7f8c8d;
    transition: 0.3s;
    text-align: center;
    height: 50px; /* ইনপুটের সমান হাইট */
    box-sizing: border-box;
}
.file-label i { font-size: 20px; margin-bottom: 2px; color: #35424a; }
.file-label span { font-size: 12px; font-weight: 600; }

.file-upload-box input:focus + .file-label,
.file-upload-box:hover .file-label {
    border-color: #35424a;
    background: #ecf0f1;
}

/* --- Layout Helpers --- */
.flex-row { 
    display: flex; 
    gap: 15px; 
}
.half { flex: 1; }

/* --- Terms Section --- */
.terms-section { margin-top: 25px; }
.info-box {
    background: #eef2f5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #35424a;
}
.info-box h4 { margin: 0 0 10px 0; color: #333; font-size: 15px; }
.info-box ul { padding: 0; margin: 0; list-style: none; }
.info-box li { 
    margin-bottom: 6px; 
    font-size: 13px; 
    color: #555; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.info-box li i { color: #e8491d; font-size: 12px; }

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-top: 15px;
    cursor: pointer;
    background: #fff;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    user-select: none;
}
.checkbox-wrapper input { 
    width: 20px; 
    height: 20px; 
    margin-right: 12px; 
    accent-color: #35424a; 
}
.label-text { font-size: 14px; font-weight: 500; color: #333; }

/* --- Submit Button --- */
.submit-btn {
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    background: #35424a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.submit-btn:hover {
    background: #e8491d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(232, 73, 29, 0.2);
}

/* --- Mobile Specific Fixes --- */
@media (max-width: 600px) {
    .register-container {
        margin: 0; /* মোবাইলে ফুল উইডথ */
        border-radius: 0;
        box-shadow: none;
    }
    
    .flex-row {
        flex-direction: column; /* পাশাপাশি ফিল্ড নিচে নিচে চলে আসবে */
        gap: 15px;
    }
    
    .plan-grid {
        grid-template-columns: 1fr; /* প্যাকেজ কার্ড সবসময় একটি কলামে */
    }

    .form-header h2 { font-size: 22px; }
    
    .file-label {
        flex-direction: row; /* মোবাইলে আইকন ও টেক্সট পাশাপাশি */
        gap: 10px;
    }
    .file-label i { margin-bottom: 0; }
}