/**
 * Member Form Styles
 * 
 * @package myTheme
 */

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans Bengali', Arial, sans-serif;
}

/* Add space from content body */
.container > *:first-child {
    margin-top: 20px;
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 60px 20px 20px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.org-info h1 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.org-subtitle {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #666;
}

.org-details {
    margin: 0;
    font-size: 14px;
    color: #888;
}

.serial-section {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.serial-label {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #dc3545;
}

.serial-number {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.photo-box {
    text-align: center;
}

.photo-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.photo-upload-container {
    position: relative;
    width: 150px;
    height: 150px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-upload-container:hover {
    border-color: #28a745;
    transform: scale(1.02);
}

.photo-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.photo-placeholder {
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.photo-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Header Banner */
.main-header-banner {
    background: #000000;
    color: white;
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.main-header-banner h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* Organization Information Section */
.org-info-section {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.org-details {
    margin-bottom: 15px;
}

.org-details p {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

.org-details .recipient {
    font-weight: 500;
}

.org-details .chairman {
    font-weight: 600;
}

.org-details .org-name {
    font-weight: bold;
    font-size: 18px;
    color: #28a745;
}

.org-details .org-tagline {
    font-style: italic;
    color: #666;
}

.subject-line {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.subject-line p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Application Letter */
.application-letter {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.salutation {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.letter-content {
    margin-bottom: 20px;
}

.letter-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.closing {
    margin: 20px 0 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: right;
}

/* Personal Information Banner */
.personal-info-banner {
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.personal-info-banner h2 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.banner-subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Declaration Section */
.declaration-section {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.declaration-banner {
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 12px 20px;
    margin: -20px -20px 15px -20px;
    border-radius: 8px 8px 0 0;
}

.declaration-banner h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.declaration-content {
    text-align: center;
}

.declaration-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

/* Section Styles */
.section {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.section-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #28a745;
}

.section-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.section-subtitle {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Form Row and Group Styles */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

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

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Style for optional fields */
.form-group label.optional {
    color: #666;
    font-weight: 500;
}

.form-group label.optional::after {
    content: " (optional)";
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
    transform: translateY(-1px);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 3px;
    min-height: 15px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-message.show {
    opacity: 1;
}

.form-text {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.text-muted {
    color: #6c757d;
}

/* Checkbox Grid Styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.checkbox-item label {
    margin: 0;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

/* Attachments List */
.attachments-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.attachments-list p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.attachments-list p:last-child {
    margin-bottom: 0;
}

/* Signature Section */
.signature-section {
    margin-top: 30px;
}

.signature-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.signature-item {
    flex: 1;
    text-align: center;
}

.signature-line {
    height: 2px;
    background: #333;
    margin-bottom: 10px;
}

.signature-item label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-top: 5px;
}

/* Office Use Section */
.office-use {
    background: #f8f9fa;
    border: 2px solid #28a745;
}

.office-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.office-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.office-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.office-org-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.office-org-subtitle {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.office-org-details {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.office-photo-section {
    text-align: center;
}

.office-photo-box {
    text-align: center;
}

.office-photo-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.office-photo-upload-container {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.office-photo-upload-container:hover {
    border-color: #28a745;
    transform: scale(1.02);
}

.office-photo-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.office-photo-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.office-photo-placeholder {
    color: #666;
    font-size: 12px;
    text-align: center;
    padding: 15px;
}

.office-photo-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.office-section-title {
    text-align: center;
    margin-bottom: 20px;
}

.office-section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.office-form-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.office-form-row {
    display: flex;
    gap: 20px;
}

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

.office-form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.office-form-group label.optional {
    color: #666;
    font-weight: 500;
}

.office-form-group label.optional::after {
    content: " (optional)";
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

.office-form-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.office-form-group input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Submit Button */
.submit-section {
    text-align: center;
    margin: 20px 0;
}

.submit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.qr-section {
    text-align: center;
}

.qr-code img {
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.head-office h4,
.branch h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.head-office p,
.branch p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.branch-offices {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Member Form Specific Styles */
.member-form {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.member-form .section {
    border-left: 4px solid #28a745;
}

.member-form .section-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #28a745;
}

.member-form .section-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.member-form .section-header .section-subtitle {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .org-info-section {
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .signature-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .office-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .application-letter {
        text-align: center;
    }
    
    .declaration-content {
        text-align: center;
    }
    
    .office-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .section {
        padding: 15px;
    }
    
    .main-header-banner h1 {
        font-size: 20px;
    }
    
    .personal-info-banner h2 {
        font-size: 18px;
    }
    
    .declaration-banner h2 {
        font-size: 16px;
    }
}
