/* NCP Membership Form Styles */
.ncp-membership-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ncp-form-header {
    background-color: #de127b;
    padding: 15px;
    border-radius: 5px;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.ncp-form-header h1,
.ncp-form-header h2 {
    background-color: white;
    color: #de127b;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
    margin: 5px;
}

.ncp-form-header h2 {
    font-size: 24px;
    font-weight: bold;
}

.ncp-form-header h3 {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

.ncp-membership-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ncp-form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.ncp-form-section h4 {
    margin: 0 0 20px 0;
    color: #1e3c72;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 8px;
}

.ncp-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ncp-form-row .ncp-form-group {
    flex: 1;
}

.ncp-form-group {
    margin-bottom: 20px;
}

.ncp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.ncp-form-group .required {
    color: #e74c3c;
    font-weight: bold;
}

.ncp-form-group input,
.ncp-form-group select,
.ncp-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.ncp-form-group input:focus,
.ncp-form-group select:focus,
.ncp-form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 5px rgba(30, 60, 114, 0.3);
}

.ncp-form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    background: #f9f9f9;
    cursor: pointer;
}

.ncp-form-group input[type="file"]:hover {
    border-color: #1e3c72;
    background: #f0f4ff;
}

.ncp-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.ncp-declaration-text {
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    min-height: 120px;
    color: #333;
}

.ncp-declaration-text #declaration_name {
    color: #de127b;
    font-weight: bold;
    text-decoration: underline;
}

.ncp-form-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.ncp-submit-button {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ncp-submit-button:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.ncp-submit-button:active {
    transform: translateY(0);
}

.ncp-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ncp-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.ncp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ncp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ncp-message.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ncp-membership-form-container {
        margin: 10px;
        padding: 10px;
    }
    
    .ncp-membership-form {
        padding: 20px;
    }
    
    .ncp-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .ncp-form-header h2 {
        font-size: 20px;
    }
    
    .ncp-form-header h3 {
        font-size: 16px;
    }
    
    .ncp-form-section h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ncp-form-header h2 {
        font-size: 18px;
    }
    
    .ncp-form-header h3 {
        font-size: 14px;
    }
    
    .ncp-submit-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Loading Animation */
.ncp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e3c72;
    border-radius: 50%;
    animation: ncp-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes ncp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation Styles */
.ncp-form-group input.error,
.ncp-form-group select.error,
.ncp-form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.ncp-form-group .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Photo Preview */
.ncp-photo-preview {
    margin-top: 10px;
    text-align: center;
}

.ncp-photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ID Card Styles */
.ncp-id-card {
    background: #f9f9f9;
    border: 2px solid #de127b;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(222, 18, 123, 0.2);
    display: none !important; /* Initially hidden */
}

.ncp-id-card.show {
    display: block !important;
}

.ncp-id-card-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ncp-id-card-header {
    background: #de127b;
    color: white;
    padding: 15px;
    text-align: center;
}

.ncp-id-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.ncp-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.ncp-id-card-body {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.ncp-id-card-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border: 2px solid #de127b;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.ncp-id-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ncp-id-card-details {
    flex: 1;
}

.ncp-id-card-field {
    display: flex;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ncp-id-card-field:last-child {
    border-bottom: none;
}

.ncp-id-card-field label {
    font-weight: bold;
    color: #de127b;
    min-width: 120px;
    margin-right: 10px;
}

.ncp-id-card-field span {
    color: #333;
    flex: 1;
}

.ncp-id-card-footer {
    background: #f8f8f8;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.ncp-id-card-footer .button {
    margin: 0 5px;
}

/* Print Styles for ID Card */
@media print {
    .ncp-id-card {
        background: white !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 10px !important;
    }
    
    .ncp-id-card-footer {
        display: none !important;
    }
    
    .ncp-id-card-body {
        padding: 10px !important;
    }
    
    .ncp-id-card-photo {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Success Message Styles */
.ncp-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.ncp-success-content h3 {
    color: #155724;
    margin-bottom: 10px;
}

.ncp-success-content p {
    color: #155724;
    margin-bottom: 15px;
}

.ncp-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #de127b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
